@univerjs/ui 0.25.0 → 1.0.0-alpha.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/lib/cjs/facade.js +6 -6
- package/lib/cjs/index.js +4546 -3688
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +5820 -4942
- package/lib/facade.js +6 -6
- package/lib/index.css +172 -46
- package/lib/index.js +5820 -4942
- package/lib/types/common/component-manager.d.ts +3 -4
- package/lib/types/common/icon-manager.d.ts +86 -0
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/controllers/components.controller.d.ts +24 -0
- package/lib/types/controllers/menus/menus.d.ts +3 -2
- package/lib/types/controllers/shortcut-display/menu.d.ts +2 -1
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +2 -3
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +0 -1
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +0 -1
- package/lib/types/index.d.ts +41 -29
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/services/menu/menu-manager.service.d.ts +8 -0
- package/lib/types/services/menu/menu.d.ts +25 -31
- package/lib/types/services/notification/desktop-notification.service.d.ts +1 -1
- package/lib/types/services/notification/notification.service.d.ts +1 -1
- package/lib/types/services/shortcut/keycode.d.ts +2 -0
- package/lib/types/utils/storage-driver.d.ts +26 -0
- package/lib/types/{components/common-label/index.d.ts → views/CommonLabel.d.ts} +1 -1
- package/lib/types/{components/heading-item/index.d.ts → views/HeadingItem.d.ts} +1 -1
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +1 -1
- package/lib/types/views/components/confirm-part/interface.d.ts +1 -1
- package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +1 -1
- package/lib/types/views/components/context-menu/ContextMenu.d.ts +1 -1
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +19 -1
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +1 -1
- package/lib/types/views/components/dialog-part/interface.d.ts +1 -1
- package/lib/types/views/components/dom/FloatDom.d.ts +2 -2
- package/lib/types/views/components/dom/Print.d.ts +1 -1
- package/lib/types/views/components/gallery-part/GalleryPart.d.ts +1 -1
- package/lib/types/views/components/popup/CanvasPopup.d.ts +2 -2
- package/lib/types/views/components/popup/RectPopup.d.ts +1 -1
- package/lib/types/views/components/ribbon/MobileRibbon.d.ts +1 -1
- package/lib/types/views/components/ribbon/Ribbon.d.ts +1 -1
- package/lib/types/views/components/ribbon/ToolbarButton.d.ts +5 -1
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +9 -3
- package/lib/types/views/components/ribbon/hook.d.ts +1 -0
- package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +1 -1
- package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +1 -1
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +1 -1
- package/lib/types/views/components/sidebar/Sidebar.d.ts +2 -2
- package/lib/types/{components → views}/custom-label/CustomLabel.d.ts +2 -2
- package/lib/types/{components → views}/font-family/FontFamily.d.ts +1 -1
- package/lib/types/{components → views}/font-family/FontFamilyItem.d.ts +1 -1
- package/lib/types/{components → views}/font-size/FontSize.d.ts +1 -1
- package/lib/types/{components → views}/hooks/layout.d.ts +1 -1
- package/lib/types/{components → views}/index.d.ts +4 -4
- package/lib/types/{components → views}/menu/desktop/DesignTinyMenuGroup.d.ts +11 -7
- package/lib/types/{components → views}/menu/desktop/TinyMenuGroup.d.ts +7 -2
- package/lib/types/{components → views}/menu/mobile/MobileMenu.d.ts +1 -1
- package/lib/types/{components → views}/menu/mobile/MobileMenu.stories.d.ts +1 -1
- package/lib/types/views/{components/zen-zone/ZenZone.d.ts → message/MessageContainer.d.ts} +1 -1
- package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +3 -1
- package/lib/types/{components → views}/notification/Notification.d.ts +1 -1
- package/lib/types/{components → views}/notification/Notification.stories.d.ts +5 -5
- package/lib/types/{components → views}/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/types/{components → views}/slider/Slider.d.ts +1 -1
- package/lib/types/{components → views}/slider/Slider.stories.d.ts +1 -1
- package/lib/types/views/workbench/Workbench.d.ts +4 -2
- package/lib/umd/index.js +25 -131
- package/package.json +9 -10
- package/lib/types/components/message/MessageContainer.d.ts +0 -16
- package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +0 -37
- package/lib/types/services/zen-zone/zen-zone.service.d.ts +0 -37
- /package/lib/types/services/message/{__testing__ → __tests__}/mock-message.service.d.ts +0 -0
- /package/lib/types/{components → views}/color-picker/interface.d.ts +0 -0
- /package/lib/types/{components → views}/custom-label/index.d.ts +0 -0
- /package/lib/types/{components → views}/font-family/index.d.ts +0 -0
- /package/lib/types/{components → views}/font-family/interface.d.ts +0 -0
- /package/lib/types/{components → views}/font-size/interface.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/event.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/index.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/update-effect.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/use-click-out-side.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/use-debounce.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/virtual-list.d.ts +0 -0
- /package/lib/types/{components → views}/menu/common/hook.d.ts +0 -0
- /package/lib/types/{components → views}/menu/types.d.ts +0 -0
- /package/lib/types/{components → views}/slider/index.d.ts +0 -0
|
@@ -15,16 +15,34 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IValueOption } from '../../../services/menu/menu';
|
|
17
17
|
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
|
|
18
|
+
type ContextMenuSizeVariant = 'default' | 'paragraph-t';
|
|
19
|
+
type ContextMenuAutoFocusTarget = 'first-item' | 'container';
|
|
18
20
|
interface IContextMenuPanelProps {
|
|
19
21
|
menuType: string;
|
|
20
22
|
menuSessionVersion?: number;
|
|
21
23
|
className?: string;
|
|
22
24
|
activeItemIds?: string[];
|
|
23
25
|
hiddenItemIds?: string[];
|
|
26
|
+
sizeVariant?: ContextMenuSizeVariant;
|
|
27
|
+
autoFocus?: boolean;
|
|
28
|
+
autoFocusTarget?: ContextMenuAutoFocusTarget;
|
|
29
|
+
suppressHoverUntilPointerMove?: boolean;
|
|
30
|
+
onCancel?: () => void;
|
|
31
|
+
onMenuPointerEnter?: () => void;
|
|
32
|
+
onMenuPointerLeave?: () => void;
|
|
24
33
|
onOptionSelect?: (option: IValueOption) => void;
|
|
25
34
|
}
|
|
35
|
+
interface IContextMenuSchemaRenderGroup {
|
|
36
|
+
startIndex: number;
|
|
37
|
+
endIndex: number;
|
|
38
|
+
menuSchemas: IMenuSchema[];
|
|
39
|
+
}
|
|
26
40
|
export declare const CONTEXT_MENU_SUBMENU_CLOSE_DELAY = 500;
|
|
27
41
|
export declare const CONTEXT_MENU_SUBMENU_PORTAL_ATTR = "data-u-context-menu-submenu";
|
|
28
42
|
export declare function hasRenderableContextMenuSchema(menuSchema: IMenuSchema): boolean;
|
|
29
|
-
export declare function
|
|
43
|
+
export declare function shouldShowContextMenuGroupSeparator(visibleSchemas: IMenuSchema[], index: number): boolean;
|
|
44
|
+
export declare function getContextMenuQuickGroupColumns(menuSchema: IMenuSchema): number | undefined;
|
|
45
|
+
export declare function getNextMenuButtonByDirection(buttons: HTMLButtonElement[], activeIndex: number, key: string): HTMLButtonElement;
|
|
46
|
+
export declare function getContextMenuSchemaRenderGroups(visibleSchemas: IMenuSchema[], sizeVariant: ContextMenuSizeVariant): IContextMenuSchemaRenderGroup[];
|
|
47
|
+
export declare function ContextMenuPanel(props: IContextMenuPanelProps): import("react").JSX.Element | null;
|
|
30
48
|
export {};
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function DialogPart(): import("react
|
|
16
|
+
export declare function DialogPart(): import("react").JSX.Element[];
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDialogProps } from '@univerjs/design';
|
|
17
|
-
import type { ICustomLabelProps } from '
|
|
17
|
+
import type { ICustomLabelProps } from '../../custom-label/CustomLabel';
|
|
18
18
|
export type IDialogPartMethodOptions = {
|
|
19
19
|
id: string;
|
|
20
20
|
children?: ICustomLabelProps;
|
|
@@ -17,7 +17,7 @@ import type { IFloatDom } from '../../../services/dom/canvas-dom-layer.service';
|
|
|
17
17
|
export declare const FloatDomSingle: import("react").MemoExoticComponent<(props: {
|
|
18
18
|
layer: IFloatDom;
|
|
19
19
|
id: string;
|
|
20
|
-
}) => import("react
|
|
20
|
+
}) => import("react").JSX.Element | null>;
|
|
21
21
|
export declare const FloatDom: ({ unitId }: {
|
|
22
22
|
unitId?: string;
|
|
23
|
-
}) => import("react
|
|
23
|
+
}) => import("react").JSX.Element[] | undefined;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function GalleryPart(): import("react
|
|
16
|
+
export declare function GalleryPart(): import("react").JSX.Element | null;
|
|
@@ -19,6 +19,6 @@ interface ISingleCanvasPopupProps {
|
|
|
19
19
|
popup: IPopup;
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
}
|
|
22
|
-
export declare const SingleCanvasPopup: ({ popup, children }: ISingleCanvasPopupProps) => import("react
|
|
23
|
-
export declare function CanvasPopup(): import("react
|
|
22
|
+
export declare const SingleCanvasPopup: ({ popup, children }: ISingleCanvasPopupProps) => import("react").JSX.Element | null;
|
|
23
|
+
export declare function CanvasPopup(): import("react").JSX.Element[];
|
|
24
24
|
export {};
|
|
@@ -54,7 +54,7 @@ export interface IPopupLayoutInfo extends Pick<IRectPopupProps, 'direction'> {
|
|
|
54
54
|
containerHeight: number;
|
|
55
55
|
noPushMinimumGap?: boolean;
|
|
56
56
|
}
|
|
57
|
-
declare function RectPopup(props: IRectPopupProps): import("react
|
|
57
|
+
declare function RectPopup(props: IRectPopupProps): import("react").JSX.Element | null;
|
|
58
58
|
declare namespace RectPopup {
|
|
59
59
|
var calcPopupPosition: (layout: IPopupLayoutInfo) => {
|
|
60
60
|
top: number;
|
|
@@ -18,5 +18,5 @@ interface IMobileRibbonProps {
|
|
|
18
18
|
headerMenuComponents?: Set<ComponentType>;
|
|
19
19
|
headerMenu?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare function MobileRibbon(props: IMobileRibbonProps): import("react
|
|
21
|
+
export declare function MobileRibbon(props: IMobileRibbonProps): import("react").JSX.Element | null;
|
|
22
22
|
export {};
|
|
@@ -20,5 +20,5 @@ interface IRibbonProps {
|
|
|
20
20
|
headerMenuComponents?: Set<ComponentType>;
|
|
21
21
|
headerMenu?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare function Ribbon(props: IRibbonProps): import("react
|
|
23
|
+
export declare function Ribbon(props: IRibbonProps): import("react").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -40,7 +40,11 @@ export interface IBaseToolbarButtonProps {
|
|
|
40
40
|
onMouseLeave?: React.MouseEventHandler;
|
|
41
41
|
}
|
|
42
42
|
export declare const toolbarButtonClassName = "\nuniver-box-border univer-flex univer-h-6 univer-min-w-6 univer-cursor-pointer univer-items-center\nuniver-justify-center univer-rounded univer-border-none univer-bg-transparent univer-p-0\nuniver-text-gray-900 univer-outline-none univer-transition-colors univer-animate-in univer-fade-in\ndark:!univer-text-white dark:hover:!univer-bg-gray-700 dark:disabled:!univer-text-gray-600\ndisabled:univer-cursor-not-allowed disabled:univer-text-gray-300 disabled:hover:univer-bg-transparent\nhover:univer-bg-gray-100 whitespace-nowrap univer-w-max\n";
|
|
43
|
+
export declare const toolbarButtonVariants: (props?: ({
|
|
44
|
+
noIcon?: boolean | null | undefined;
|
|
45
|
+
active?: boolean | null | undefined;
|
|
46
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
43
47
|
/**
|
|
44
48
|
* Button Component
|
|
45
49
|
*/
|
|
46
|
-
export declare function ToolbarButton(props: IBaseToolbarButtonProps): import("react
|
|
50
|
+
export declare function ToolbarButton(props: IBaseToolbarButtonProps): import("react").JSX.Element;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IDropdownProps, ITooltipProps } from '@univerjs/design';
|
|
17
17
|
import type { ReactNode } from 'react';
|
|
18
|
-
import type { IValueOption } from '../../../services/menu/menu';
|
|
18
|
+
import type { IMenuItem, IValueOption } from '../../../services/menu/menu';
|
|
19
19
|
export interface ITooltipWrapperRef {
|
|
20
20
|
el: HTMLSpanElement | null;
|
|
21
21
|
}
|
|
@@ -23,7 +23,13 @@ export declare const TooltipWrapper: import("react").ForwardRefExoticComponent<I
|
|
|
23
23
|
export declare function DropdownWrapper(props: Omit<Partial<IDropdownProps>, 'overlay'> & {
|
|
24
24
|
overlay: ReactNode;
|
|
25
25
|
align?: 'start' | 'end' | 'center';
|
|
26
|
-
}): import("react
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
|
+
export declare function DropdownMenuLabel({ icon, value, option, onOptionSelect }: {
|
|
28
|
+
icon?: IMenuItem['icon'];
|
|
29
|
+
value?: string | number;
|
|
30
|
+
option: IValueOption;
|
|
31
|
+
onOptionSelect?: (option: IValueOption) => void;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
27
33
|
export declare function DropdownMenuWrapper({ menuId, slot, value, options, children, disabled, onOptionSelect, }: {
|
|
28
34
|
menuId: string;
|
|
29
35
|
slot?: boolean;
|
|
@@ -32,4 +38,4 @@ export declare function DropdownMenuWrapper({ menuId, slot, value, options, chil
|
|
|
32
38
|
children: ReactNode;
|
|
33
39
|
disabled?: boolean;
|
|
34
40
|
onOptionSelect: (option: IValueOption) => void;
|
|
35
|
-
}): import("react
|
|
41
|
+
}): import("react").JSX.Element;
|
|
@@ -27,3 +27,4 @@ export interface IToolbarItemStatus {
|
|
|
27
27
|
* @returns The menu item's status
|
|
28
28
|
*/
|
|
29
29
|
export declare function useToolbarItemStatus(menuItem: IDisplayMenuItem<IMenuItem>): IToolbarItemStatus;
|
|
30
|
+
export declare function useToolbarShortcutDisplay({ id, commandId, shortcut, }: Pick<IDisplayMenuItem<IMenuItem>, 'id' | 'commandId' | 'shortcut'>): string | null;
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* This component is responsible for rendering the shortcut panel on the desktop version of the app.
|
|
18
18
|
*/
|
|
19
|
-
export declare function ShortcutPanel(): import("react
|
|
19
|
+
export declare function ShortcutPanel(): import("react").JSX.Element;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { CSSProperties } from 'react';
|
|
17
|
-
import type { ICustomLabelProps } from '
|
|
17
|
+
import type { ICustomLabelProps } from '../../custom-label/CustomLabel';
|
|
18
18
|
export interface ISidebarMethodOptions {
|
|
19
19
|
id?: string;
|
|
20
20
|
header?: ICustomLabelProps;
|
|
@@ -26,4 +26,4 @@ export interface ISidebarMethodOptions {
|
|
|
26
26
|
onClose?: (id?: string) => void;
|
|
27
27
|
onOpen?: () => void;
|
|
28
28
|
}
|
|
29
|
-
export declare function Sidebar(): import("react
|
|
29
|
+
export declare function Sidebar(): import("react").JSX.Element;
|
|
@@ -22,9 +22,9 @@ export type ICustomLabelProps<T = undefined> = {
|
|
|
22
22
|
value$?: Observable<T>;
|
|
23
23
|
onChange?(v: string | number): void;
|
|
24
24
|
title?: ReactNode;
|
|
25
|
-
} & Pick<IMenuSelectorItem<unknown>, 'label' | 'icon'>;
|
|
25
|
+
} & Pick<IMenuSelectorItem<string, unknown>, 'label' | 'icon'>;
|
|
26
26
|
/**
|
|
27
27
|
* The component to render toolbar item label and menu item label.
|
|
28
28
|
* @param props
|
|
29
29
|
*/
|
|
30
|
-
export declare function CustomLabel(props: ICustomLabelProps): import("react
|
|
30
|
+
export declare function CustomLabel(props: ICustomLabelProps): import("react").JSX.Element;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IFontFamilyProps } from './interface';
|
|
17
|
-
export declare const FontFamily: ({ id, value, disabled$ }: IFontFamilyProps) => import("react
|
|
17
|
+
export declare const FontFamily: ({ id, value, disabled$ }: IFontFamilyProps) => import("react").JSX.Element;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IFontSizeProps } from './interface';
|
|
17
|
-
export declare const FontSize: (props: IFontSizeProps) => import("react
|
|
17
|
+
export declare const FontSize: (props: IFontSizeProps) => import("react").JSX.Element;
|
|
@@ -26,4 +26,4 @@ import type { Nullable } from '@univerjs/core';
|
|
|
26
26
|
* @param container
|
|
27
27
|
*/
|
|
28
28
|
export declare function useScrollYOverContainer(element: Nullable<HTMLElement>, container: Nullable<HTMLElement>): void;
|
|
29
|
-
export declare function useConfigValue<T>(configKey: string):
|
|
29
|
+
export declare function useConfigValue<T>(configKey: string): T;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './custom-label';
|
|
18
|
-
export * from './
|
|
16
|
+
export * from './CommonLabel';
|
|
17
|
+
export * from './custom-label/index';
|
|
18
|
+
export * from './HeadingItem';
|
|
19
19
|
export { useScrollYOverContainer } from './hooks/layout';
|
|
20
|
-
export { type ISliderProps, Slider } from './slider';
|
|
20
|
+
export { type ISliderProps, Slider } from './slider/index';
|
|
@@ -13,19 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
export type TinyMenuSizeVariant = 'default' | 'paragraph-t';
|
|
17
|
+
export type TinyMenuLayoutVariant = 'default' | 'compact';
|
|
18
|
+
interface ITinyMenuItem {
|
|
18
19
|
onClick: () => void;
|
|
19
20
|
className: string;
|
|
20
|
-
Icon:
|
|
21
|
-
className?: string;
|
|
22
|
-
}>;
|
|
21
|
+
Icon: any;
|
|
23
22
|
iconClassName?: string;
|
|
24
23
|
key: string;
|
|
25
24
|
active?: boolean;
|
|
26
25
|
tooltip?: string;
|
|
27
26
|
}
|
|
28
|
-
|
|
27
|
+
interface ITinyMenuGroupProps {
|
|
29
28
|
items: ITinyMenuItem[];
|
|
29
|
+
columns?: number;
|
|
30
|
+
sizeVariant?: TinyMenuSizeVariant;
|
|
31
|
+
layoutVariant?: TinyMenuLayoutVariant;
|
|
32
|
+
hoverSuppressed?: boolean;
|
|
30
33
|
}
|
|
31
|
-
export declare function DesignTinyMenuGroup({ items }: ITinyMenuGroupProps): import("react
|
|
34
|
+
export declare function DesignTinyMenuGroup({ items, columns, sizeVariant, layoutVariant, hoverSuppressed, }: ITinyMenuGroupProps): import("react").JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -15,14 +15,19 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IValueOption } from '../../../services/menu/menu';
|
|
17
17
|
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
|
|
18
|
+
import type { TinyMenuLayoutVariant, TinyMenuSizeVariant } from './DesignTinyMenuGroup';
|
|
18
19
|
interface IUIQuickMenuGroupProps {
|
|
19
20
|
item: IMenuSchema;
|
|
20
21
|
activeItemIds?: string[];
|
|
21
22
|
hiddenItemIds?: string[];
|
|
23
|
+
hoverSuppressed?: boolean;
|
|
24
|
+
columns?: number;
|
|
25
|
+
sizeVariant?: TinyMenuSizeVariant;
|
|
26
|
+
layoutVariant?: TinyMenuLayoutVariant;
|
|
22
27
|
onOptionSelect?: (option: IValueOption) => void;
|
|
23
28
|
}
|
|
24
29
|
export declare function resolveMenuItemActiveState(itemId: string | undefined, observableActive: boolean, activeItemIds?: string[]): boolean;
|
|
25
30
|
export declare function getVisibleTinyMenuChildren(children: IMenuSchema[], hiddenItemKeys: string[]): IMenuSchema[];
|
|
26
|
-
export declare function UITinyMenuGroup(props: IUIQuickMenuGroupProps): import("react
|
|
27
|
-
export declare function UIQuickTileMenuGroup(props: IUIQuickMenuGroupProps): import("react
|
|
31
|
+
export declare function UITinyMenuGroup(props: IUIQuickMenuGroupProps): import("react").JSX.Element | null;
|
|
32
|
+
export declare function UIQuickTileMenuGroup(props: IUIQuickMenuGroupProps): import("react").JSX.Element | null;
|
|
28
33
|
export {};
|
|
@@ -18,5 +18,5 @@ import type { IBaseMenuProps } from '../types';
|
|
|
18
18
|
interface IMobileMenuProps extends IBaseMenuProps {
|
|
19
19
|
schemas?: IMenuSchema[];
|
|
20
20
|
}
|
|
21
|
-
export declare function MobileMenu(props: IMobileMenuProps): import("react
|
|
21
|
+
export declare function MobileMenu(props: IMobileMenuProps): import("react").JSX.Element | null;
|
|
22
22
|
export {};
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function MessageContainer(): import("react").JSX.Element;
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { Injector } from '@univerjs/core';
|
|
16
17
|
import type { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
|
|
17
18
|
export interface IUniverAppProps extends IWorkbenchOptions {
|
|
18
19
|
mountContainer: HTMLElement;
|
|
19
20
|
onRendered?: (container: HTMLElement) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function
|
|
22
|
+
export declare function mountMobileWorkbench(injector: Injector, options: IWorkbenchOptions, mountContainer: HTMLElement, onRendered: (contentElement: HTMLElement) => void): void;
|
|
23
|
+
export declare function MobileWorkbench(props: IUniverAppProps): import("react").JSX.Element;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IToasterProps } from '@univerjs/design';
|
|
17
17
|
import { toast } from '@univerjs/design';
|
|
18
|
-
export declare function Notification(): import("react
|
|
18
|
+
export declare function Notification(): import("react").JSX.Element;
|
|
19
19
|
export interface INotificationOptions {
|
|
20
20
|
/** The title of the notification */
|
|
21
21
|
title: Parameters<typeof toast>[0];
|
|
@@ -18,17 +18,17 @@ import { Notification } from './Notification';
|
|
|
18
18
|
declare const meta: Meta<typeof Notification>;
|
|
19
19
|
export default meta;
|
|
20
20
|
export declare const InteractivePlayground: {
|
|
21
|
-
render: () => import("react
|
|
21
|
+
render: () => import("react").JSX.Element;
|
|
22
22
|
};
|
|
23
23
|
export declare const VisualRegressionLight: {
|
|
24
|
-
render: () => import("react
|
|
24
|
+
render: () => import("react").JSX.Element;
|
|
25
25
|
};
|
|
26
26
|
export declare const VisualRegressionDark: {
|
|
27
|
-
render: () => import("react
|
|
27
|
+
render: () => import("react").JSX.Element;
|
|
28
28
|
};
|
|
29
29
|
export declare const PlacementMatrix: {
|
|
30
|
-
render: () => import("react
|
|
30
|
+
render: () => import("react").JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
export declare const LongContentAndLoading: {
|
|
33
|
-
render: () => import("react
|
|
33
|
+
render: () => import("react").JSX.Element;
|
|
34
34
|
};
|
|
@@ -23,4 +23,4 @@ export interface IProgressBarProps {
|
|
|
23
23
|
onTerminate?: () => void;
|
|
24
24
|
onClearProgress?: () => void;
|
|
25
25
|
}
|
|
26
|
-
export declare function ProgressBar(props: IProgressBarProps): import("react
|
|
26
|
+
export declare function ProgressBar(props: IProgressBarProps): import("react").JSX.Element;
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { Injector } from '@univerjs/core';
|
|
16
17
|
import type { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
|
|
17
18
|
export interface IUniverWorkbenchProps extends IWorkbenchOptions {
|
|
18
19
|
mountContainer: HTMLElement;
|
|
19
20
|
onRendered?: (containerElement: HTMLElement) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function DesktopWorkbench(props: IUniverWorkbenchProps): import("react
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function DesktopWorkbench(props: IUniverWorkbenchProps): import("react").JSX.Element;
|
|
23
|
+
export declare function mountDesktopWorkbench(injector: Injector, options: IWorkbenchOptions, mountContainer: HTMLElement, onRendered: (contentElement: HTMLElement) => void): void;
|
|
24
|
+
export declare function DesktopWorkbenchContent(props: IUniverWorkbenchProps): import("react").JSX.Element;
|