@univerjs/design 0.10.2 → 0.10.3
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/index.js +40 -40
- package/lib/es/index.js +3516 -3512
- package/lib/index.css +1 -1
- package/lib/index.js +3516 -3512
- package/lib/types/components/dropdown-legacy/DropdownLegacy.d.ts +5 -2
- package/lib/umd/index.js +40 -40
- package/package.json +5 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionType, AlignType } from '@rc-component/trigger';
|
|
2
1
|
import { default as Placements } from 'rc-dropdown/lib/placements';
|
|
3
2
|
import { ReactElement } from 'react';
|
|
4
3
|
import './index.css';
|
|
4
|
+
type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
|
|
5
5
|
export interface IDropdownLegacyProps {
|
|
6
6
|
/** Semantic DOM class */
|
|
7
7
|
className?: string;
|
|
@@ -39,7 +39,9 @@ export interface IDropdownLegacyProps {
|
|
|
39
39
|
/**
|
|
40
40
|
* The align of the dropdown
|
|
41
41
|
*/
|
|
42
|
-
align?:
|
|
42
|
+
align?: {
|
|
43
|
+
offset?: number[];
|
|
44
|
+
};
|
|
43
45
|
/**
|
|
44
46
|
* Triggered after the dropdown visibility changes
|
|
45
47
|
* @param visible
|
|
@@ -50,3 +52,4 @@ export interface IDropdownLegacyProps {
|
|
|
50
52
|
}
|
|
51
53
|
/** @deprecated */
|
|
52
54
|
export declare function DropdownLegacy(props: IDropdownLegacyProps): import("react/jsx-runtime").JSX.Element | null;
|
|
55
|
+
export {};
|