@univerjs/design 0.6.9 → 0.6.10-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.
@@ -1,6 +1,22 @@
1
1
  import { MenuItemGroupProps, MenuItemProps, MenuProps, MenuRef, SubMenuProps } from 'rc-menu';
2
2
  import { default as React } from 'react';
3
- export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuRef>>;
4
- export declare function MenuItem(props: MenuItemProps): React.FunctionComponentElement<any>;
5
- export declare function SubMenu(props: SubMenuProps): React.FunctionComponentElement<any>;
6
- export declare function MenuItemGroup(props: MenuItemGroupProps): React.FunctionComponentElement<any>;
3
+ export declare const Menu: React.ForwardRefExoticComponent<MenuProps & {
4
+ wrapperClass?: string;
5
+ } & React.RefAttributes<MenuRef>>;
6
+ export declare function MenuItem(props: MenuItemProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function SubMenu(props: SubMenuProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function MenuItemGroup(props: MenuItemGroupProps): import("react/jsx-runtime").JSX.Element;
9
+ export interface ITinyMenuItem {
10
+ onClick: () => void;
11
+ className: string;
12
+ Icon: React.ComponentType<{
13
+ className?: string;
14
+ }>;
15
+ key: string;
16
+ active?: boolean;
17
+ tooltip?: string;
18
+ }
19
+ export interface ITinyMenuGroupProps {
20
+ items: ITinyMenuItem[];
21
+ }
22
+ export declare function TinyMenuGroup({ items }: ITinyMenuGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { Menu, MenuItem, MenuItemGroup, SubMenu } from './Menu';
16
+ export { Menu, MenuItem, MenuItemGroup, SubMenu, TinyMenuGroup } from './Menu';
17
17
  export type { MenuRef } from 'rc-menu';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ declare const _default: {
17
+ title: string;
18
+ component: import('react').ForwardRefExoticComponent<import('rc-menu').MenuProps & {
19
+ wrapperClass?: string;
20
+ } & import('react').RefAttributes<import('rc-menu').MenuRef>>;
21
+ parameters: {
22
+ layout: string;
23
+ };
24
+ tags: string[];
25
+ };
26
+ export default _default;
27
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -29,7 +29,7 @@ export { Dropdown } from './components/dropdown';
29
29
  export { FormDualColumnLayout, FormLayout, type IFormDualColumnLayoutProps, type IFormLayoutProps } from './components/form-layout';
30
30
  export { type IInputProps, type IInputWithSlotProps, Input, InputWithSlot } from './components/input';
31
31
  export { type IInputNumberProps, InputNumber } from './components/input-number';
32
- export { Menu, MenuItem, MenuItemGroup, type MenuRef, SubMenu } from './components/menu';
32
+ export { Menu, MenuItem, MenuItemGroup, type MenuRef, SubMenu, TinyMenuGroup } from './components/menu';
33
33
  export { type IMessageProps, message, Messager, MessageType, removeMessage } from './components/message';
34
34
  export { type IPagerProps, Pager } from './components/pager';
35
35
  export { type IPopupProps, Popup } from './components/popup';