mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
@@ -53,7 +53,7 @@
|
||||
"@storybook/addon-docs": "^10.2.7",
|
||||
"@storybook/react-vite": "^10.2.7",
|
||||
"@svgr/cli": "^8.1.0",
|
||||
"@types/react": "^19.2.5",
|
||||
"@types/react": "^19.2.14",
|
||||
"@typescript/native-preview": "^7.0.0-dev.20260309.1",
|
||||
"@vitejs/plugin-react": "^6.0.0",
|
||||
"eslint-plugin-storybook": "^10.2.7",
|
||||
|
||||
@@ -4,7 +4,7 @@ import { css, cx } from '@emotion/css';
|
||||
|
||||
import type { CSSProperties } from './styles';
|
||||
|
||||
type BlockProps = HTMLProps<HTMLDivElement> & {
|
||||
type BlockProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
|
||||
innerRef?: Ref<HTMLDivElement>;
|
||||
style?: CSSProperties;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@ import { css } from '@emotion/css';
|
||||
|
||||
import type { CSSProperties } from './styles';
|
||||
|
||||
type ParagraphProps = HTMLProps<HTMLDivElement> & {
|
||||
type ParagraphProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
|
||||
style?: CSSProperties;
|
||||
isLast?: boolean;
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@ import { css, cx } from '@emotion/css';
|
||||
|
||||
import type { CSSProperties } from './styles';
|
||||
|
||||
type TextProps = HTMLProps<HTMLSpanElement> & {
|
||||
type TextProps = Omit<HTMLProps<HTMLSpanElement>, 'style'> & {
|
||||
innerRef?: Ref<HTMLSpanElement>;
|
||||
className?: string;
|
||||
children?: ReactNode;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { css, cx } from '@emotion/css';
|
||||
|
||||
import type { CSSProperties } from './styles';
|
||||
|
||||
type ViewProps = HTMLProps<HTMLDivElement> & {
|
||||
type ViewProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
nativeStyle?: CSSProperties;
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"@types/lodash": "^4",
|
||||
"@types/pikaday": "^1.7.10",
|
||||
"@types/promise-retry": "^1.1.6",
|
||||
"@types/react": "^19.2.5",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react-modal": "^3.16.3",
|
||||
"@typescript/native-preview": "^7.0.0-dev.20260309.1",
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import type { ComponentProps, CSSProperties } from 'react';
|
||||
import type { ComponentProps } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { Button } from '@actual-app/components/button';
|
||||
import { SvgCustomNotesPaper } from '@actual-app/components/icons/v2';
|
||||
import { Popover } from '@actual-app/components/popover';
|
||||
import type { CSSProperties } from '@actual-app/components/styles';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
import { Tooltip } from '@actual-app/components/tooltip';
|
||||
import { View } from '@actual-app/components/view';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import type { CSSProperties } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { Button } from '@actual-app/components/button';
|
||||
import { SvgChartPie } from '@actual-app/components/icons/v1';
|
||||
import type { CSSProperties } from '@actual-app/components/styles';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
import { css, cx } from '@emotion/css';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// @ts-strict-ignore
|
||||
import type { CSSProperties } from 'react';
|
||||
|
||||
import { styles } from '@actual-app/components/styles';
|
||||
import type { CSSProperties } from '@actual-app/components/styles';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
import { t } from 'i18next';
|
||||
|
||||
|
||||
@@ -17,8 +17,12 @@ type TextLinkProps = {
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
type ButtonLinkProps = Omit<ComponentProps<typeof Button>, 'variant'> & {
|
||||
type ButtonLinkProps = Omit<
|
||||
ComponentProps<typeof Button>,
|
||||
'variant' | 'style'
|
||||
> & {
|
||||
buttonVariant?: ComponentProps<typeof Button>['variant'];
|
||||
style?: CSSProperties;
|
||||
to?: string;
|
||||
activeStyle?: CSSProperties;
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@ export const FormField = ({ style, children }: FormFieldProps) => {
|
||||
|
||||
// Custom inputs
|
||||
|
||||
type CheckboxProps = ComponentProps<'input'> & {
|
||||
type CheckboxProps = Omit<ComponentProps<'input'>, 'style'> & {
|
||||
style?: CSSProperties;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import type {
|
||||
} from 'react';
|
||||
|
||||
import { Button } from '@actual-app/components/button';
|
||||
import type { CSSProperties as EmotionCSSProperties } from '@actual-app/components/styles';
|
||||
import { Text } from '@actual-app/components/text';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
import { View } from '@actual-app/components/view';
|
||||
@@ -167,7 +168,9 @@ type FocusableAmountInputProps = Omit<AmountInputProps, 'onFocus'> & {
|
||||
focused?: boolean;
|
||||
disabled?: boolean;
|
||||
focusedStyle?: CSSProperties;
|
||||
buttonProps?: ComponentPropsWithRef<typeof Button>;
|
||||
buttonProps?: Omit<ComponentPropsWithRef<typeof Button>, 'style'> & {
|
||||
style?: EmotionCSSProperties;
|
||||
};
|
||||
onFocus?: () => void;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import type { CSSProperties, ReactNode } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
import { Button } from '@actual-app/components/button';
|
||||
import type { CSSProperties } from '@actual-app/components/styles';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
import { css } from '@emotion/css';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import type { ChangeEvent, KeyboardEvent } from 'react';
|
||||
import type { KeyboardEvent } from 'react';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
|
||||
import { Button } from '@actual-app/components/button';
|
||||
@@ -124,8 +124,7 @@ export const TagCreationRow = ({ onClose, tags }: TagCreationRowProps) => {
|
||||
}
|
||||
inputProps={{
|
||||
value: tag || '',
|
||||
onInput: ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>
|
||||
setTag(value.replace(/\s/g, '')),
|
||||
onChange: e => setTag(e.target.value.replace(/\s/g, '')),
|
||||
placeholder: t('New tag'),
|
||||
ref: tagInput,
|
||||
}}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "^3.9.2",
|
||||
"@types/react": "^19.2.5"
|
||||
"@types/react": "^19.2.14"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
Reference in New Issue
Block a user