init: the first public commit for AFFiNE

This commit is contained in:
DarkSky
2022-07-22 15:49:21 +08:00
commit e3e3741393
1451 changed files with 108124 additions and 0 deletions
@@ -0,0 +1,23 @@
import type { ReactNode, CSSProperties } from 'react';
import { PopperProps } from '../popper';
export type PopoverDirection =
| 'none'
| 'left-top'
| 'left-bottom'
| 'right-top'
| 'right-bottom';
export interface PopoverContainerProps {
children?: ReactNode;
/**
* The pop-up window points to. The pop-up window has three rounded corners, one is a right angle, and the right angle is the direction of the pop-up window.
*/
direction?: PopoverDirection;
style?: CSSProperties;
}
export type PopoverProps = {
// Popover border-radius style will auto set by placement, popoverDirection can custom set it
popoverDirection?: PopoverDirection;
style?: CSSProperties;
} & PopperProps;