mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
feat: bump more deps (#14079)
This commit is contained in:
+1
-2
@@ -7,8 +7,7 @@ import { type HTMLAttributes, useContext } from 'react';
|
||||
import { levelIndent } from '../tree/node.css';
|
||||
import * as styles from './add-item-placeholder.css';
|
||||
|
||||
export interface AddItemPlaceholderProps
|
||||
extends HTMLAttributes<HTMLDivElement> {
|
||||
export interface AddItemPlaceholderProps extends HTMLAttributes<HTMLDivElement> {
|
||||
onClick?: () => void;
|
||||
label?: string;
|
||||
icon?: React.ReactNode;
|
||||
|
||||
+1
-2
@@ -28,8 +28,7 @@ interface CollapsibleSectionProps extends HTMLAttributes<HTMLDivElement> {
|
||||
contentClassName?: string;
|
||||
}
|
||||
|
||||
interface CollapsibleSectionTriggerProps
|
||||
extends HTMLAttributes<HTMLDivElement> {
|
||||
interface CollapsibleSectionTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
||||
label: string;
|
||||
collapsed?: boolean;
|
||||
actions?: ReactNode;
|
||||
|
||||
@@ -20,8 +20,7 @@ import {
|
||||
import { SwipeMenu } from '../../swipe-menu';
|
||||
import * as styles from './node.css';
|
||||
|
||||
interface NavigationPanelTreeNodeProps
|
||||
extends BaseNavigationPanelTreeNodeProps {}
|
||||
interface NavigationPanelTreeNodeProps extends BaseNavigationPanelTreeNodeProps {}
|
||||
|
||||
export const NavigationPanelTreeNode = ({
|
||||
children,
|
||||
|
||||
@@ -11,8 +11,10 @@ import { forwardRef } from 'react';
|
||||
import { NavigationBackButton } from '../navigation-back';
|
||||
import * as styles from './styles.css';
|
||||
|
||||
export interface PageHeaderProps
|
||||
extends Omit<HtmlHTMLAttributes<HTMLHeadElement>, 'prefix'> {
|
||||
export interface PageHeaderProps extends Omit<
|
||||
HtmlHTMLAttributes<HTMLHeadElement>,
|
||||
'prefix'
|
||||
> {
|
||||
/**
|
||||
* whether to show back button
|
||||
*/
|
||||
|
||||
@@ -19,8 +19,7 @@ export interface RenameContentProps extends RenameBaseProps {
|
||||
inputBelowRenderer?: (props: { input: string }) => ReactNode;
|
||||
}
|
||||
|
||||
export interface RenameSubMenuProps
|
||||
extends PropsWithChildren<RenameContentProps> {
|
||||
export interface RenameSubMenuProps extends PropsWithChildren<RenameContentProps> {
|
||||
/** Submenu's title */
|
||||
title?: string;
|
||||
/** MenuItem.icon */
|
||||
@@ -31,8 +30,7 @@ export interface RenameSubMenuProps
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export interface RenameDialogProps
|
||||
extends PropsWithChildren<RenameContentProps> {
|
||||
export interface RenameDialogProps extends PropsWithChildren<RenameContentProps> {
|
||||
open?: boolean;
|
||||
onOpenChange?: (open: boolean) => void;
|
||||
title?: string;
|
||||
|
||||
@@ -16,8 +16,10 @@ import {
|
||||
|
||||
import * as styles from './style.css';
|
||||
|
||||
export interface SearchInputProps
|
||||
extends Omit<HTMLProps<HTMLInputElement>, 'onInput'> {
|
||||
export interface SearchInputProps extends Omit<
|
||||
HTMLProps<HTMLInputElement>,
|
||||
'onInput'
|
||||
> {
|
||||
value?: string;
|
||||
height?: number;
|
||||
cornerRadius?: number;
|
||||
|
||||
@@ -10,8 +10,7 @@ import { forwardRef, type HTMLAttributes } from 'react';
|
||||
|
||||
import { card, dropdownIcon, label } from './card.css';
|
||||
|
||||
export interface CurrentWorkspaceCardProps
|
||||
extends HTMLAttributes<HTMLDivElement> {}
|
||||
export interface CurrentWorkspaceCardProps extends HTMLAttributes<HTMLDivElement> {}
|
||||
|
||||
export const CurrentWorkspaceCard = forwardRef<
|
||||
HTMLDivElement,
|
||||
|
||||
@@ -9,8 +9,10 @@ import {
|
||||
|
||||
import * as styles from './group.css';
|
||||
|
||||
export interface SettingGroupProps
|
||||
extends Omit<HTMLProps<HTMLDivElement>, 'title'> {
|
||||
export interface SettingGroupProps extends Omit<
|
||||
HTMLProps<HTMLDivElement>,
|
||||
'title'
|
||||
> {
|
||||
title?: ReactNode;
|
||||
contentClassName?: string;
|
||||
contentStyle?: CSSProperties;
|
||||
|
||||
+4
-2
@@ -3,8 +3,10 @@ import { type HTMLAttributes, useCallback, useEffect, useState } from 'react';
|
||||
import { JournalDatePickerContext } from './context';
|
||||
import { ResizeViewport } from './viewport';
|
||||
|
||||
export interface JournalDatePickerProps
|
||||
extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
||||
export interface JournalDatePickerProps extends Omit<
|
||||
HTMLAttributes<HTMLDivElement>,
|
||||
'onChange'
|
||||
> {
|
||||
date: string;
|
||||
onChange: (date: string) => void;
|
||||
withDotDates: Set<string | null | undefined>;
|
||||
|
||||
Reference in New Issue
Block a user