mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
chore: upgrade dependencies (#1906)
* upgrade dependencies * downgrade fast-average-color
This commit is contained in:
@@ -7,8 +7,10 @@ import styles from './accordion.module.css';
|
||||
|
||||
import { Icon } from '/@/shared/components/icon/icon';
|
||||
|
||||
export interface AccordionProps
|
||||
extends Omit<MantineAccordionProps, 'defaultValue' | 'multiple' | 'onChange'> {
|
||||
export interface AccordionProps extends Omit<
|
||||
MantineAccordionProps,
|
||||
'defaultValue' | 'multiple' | 'onChange'
|
||||
> {
|
||||
defaultValue?: string | string[];
|
||||
multiple?: boolean;
|
||||
onChange?: (value: null | string | string[]) => void;
|
||||
|
||||
@@ -18,8 +18,7 @@ const isCompactSize = (size: number | string | undefined): boolean => {
|
||||
};
|
||||
|
||||
export interface ActionIconProps
|
||||
extends ElementProps<'button', keyof MantineActionIconProps>,
|
||||
MantineActionIconProps {
|
||||
extends ElementProps<'button', keyof MantineActionIconProps>, MantineActionIconProps {
|
||||
icon?: keyof typeof AppIcon;
|
||||
iconProps?: Omit<IconProps, 'icon'>;
|
||||
stopsPropagation?: boolean;
|
||||
|
||||
@@ -10,8 +10,7 @@ import styles from './badge.module.css';
|
||||
import { createPolymorphicComponent } from '/@/shared/utils/create-polymorphic-component';
|
||||
|
||||
export interface BadgeProps
|
||||
extends ElementProps<'div', keyof MantineBadgeProps>,
|
||||
MantineBadgeProps {}
|
||||
extends ElementProps<'div', keyof MantineBadgeProps>, MantineBadgeProps {}
|
||||
|
||||
const BaseBadge = ({ children, classNames, variant = 'default', ...props }: BadgeProps) => {
|
||||
const memoizedClassNames = useMemo(
|
||||
|
||||
@@ -11,7 +11,8 @@ import { useTimeout } from '/@/shared/hooks/use-timeout';
|
||||
import { createPolymorphicComponent } from '/@/shared/utils/create-polymorphic-component';
|
||||
|
||||
export interface ButtonProps
|
||||
extends ElementProps<'button', keyof MantineButtonProps>,
|
||||
extends
|
||||
ElementProps<'button', keyof MantineButtonProps>,
|
||||
MantineButtonProps,
|
||||
MantineButtonProps {
|
||||
tooltip?: Omit<TooltipProps, 'children'>;
|
||||
|
||||
@@ -97,7 +97,7 @@ export function BaseImage({
|
||||
|
||||
const shouldLoadImage = Boolean(
|
||||
effectiveImageRequest &&
|
||||
(!enableViewport || isInSessionCache || inViewport || hasLoadedInInstance),
|
||||
(!enableViewport || isInSessionCache || inViewport || hasLoadedInInstance),
|
||||
);
|
||||
|
||||
const nativeImage = useNativeImage({
|
||||
|
||||
@@ -62,8 +62,7 @@ const PillGroup = ({ children, classNames, gap = 'sm', ...props }: PillGroupProp
|
||||
Pill.Group = PillGroup;
|
||||
|
||||
interface PillLinkProps
|
||||
extends Omit<React.ComponentPropsWithoutRef<typeof Link>, keyof PillProps>,
|
||||
PillProps {}
|
||||
extends Omit<React.ComponentPropsWithoutRef<typeof Link>, keyof PillProps>, PillProps {}
|
||||
|
||||
export const PillLink = forwardRef<HTMLDivElement, PillLinkProps>(({ children, ...props }, ref) => {
|
||||
const { classNames, radius = 'md', size = 'md', ...rest } = props;
|
||||
|
||||
Reference in New Issue
Block a user