A local-first personal finance app
⬆️ @types/react (#7223)
Matt Fiddaman0e1fc07bf3d0
diff --git a/packages/component-library/package.json b/packages/component-library/package.jsonindex ced0284587..c37cde75fe 100644--- a/packages/component-library/package.json+++ b/packages/component-library/package.json@@ -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",diff --git a/packages/component-library/src/Block.tsx b/packages/component-library/src/Block.tsxindex 52c6a01865..ebafd3fc57 100644--- a/packages/component-library/src/Block.tsx+++ b/packages/component-library/src/Block.tsx@@ -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;};diff --git a/packages/component-library/src/Paragraph.tsx b/packages/component-library/src/Paragraph.tsxindex 22f3e5e993..c4b0580ce2 100644--- a/packages/component-library/src/Paragraph.tsx+++ b/packages/component-library/src/Paragraph.tsx@@ -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;};diff --git a/packages/component-library/src/Text.tsx b/packages/component-library/src/Text.tsxindex cfaff66a5e..c2eb79adb3 100644--- a/packages/component-library/src/Text.tsx+++ b/packages/component-library/src/Text.tsx@@ -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;diff --git a/packages/component-library/src/View.tsx b/packages/component-library/src/View.tsxindex 67b2e96bc5..d82db8515a 100644--- a/packages/component-library/src/View.tsx+++ b/packages/component-library/src/View.tsx@@ -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;diff --git a/packages/desktop-client/package.json b/packages/desktop-client/package.jsonindex bb88e1b0a7..8404f29490 100644--- a/packages/desktop-client/package.json+++ b/packages/desktop-client/package.json@@ -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",diff --git a/packages/desktop-client/src/components/NotesButton.tsx b/packages/desktop-client/src/components/NotesButton.tsxindex 907756e011..754dcccaba 100644--- a/packages/desktop-client/src/components/NotesButton.tsx+++ b/packages/desktop-client/src/components/NotesButton.tsx@@ -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';diff --git a/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx b/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsxindex f56e73e1cf..d0b72fce65 100644--- a/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx+++ b/packages/desktop-client/src/components/budget/goals/CategoryAutomationButton.tsx@@ -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';diff --git a/packages/desktop-client/src/components/budget/util.ts b/packages/desktop-client/src/components/budget/util.tsindex d4a16b940e..8aa9471e41 100644--- a/packages/desktop-client/src/components/budget/util.ts+++ b/packages/desktop-client/src/components/budget/util.ts@@ -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';diff --git a/packages/desktop-client/src/components/common/Link.tsx b/packages/desktop-client/src/components/common/Link.tsxindex 6844aef780..a947b786ea 100644--- a/packages/desktop-client/src/components/common/Link.tsx+++ b/packages/desktop-client/src/components/common/Link.tsx@@ -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;};diff --git a/packages/desktop-client/src/components/forms/index.tsx b/packages/desktop-client/src/components/forms/index.tsxindex ba0f9c9e56..1f0b84a6c2 100644--- a/packages/desktop-client/src/components/forms/index.tsx+++ b/packages/desktop-client/src/components/forms/index.tsx@@ -86,7 +86,7 @@ export const FormField = ({ style, children }: FormFieldProps) => {// Custom inputs-type CheckboxProps = ComponentProps<'input'> & {+type CheckboxProps = Omit<ComponentProps<'input'>, 'style'> & {style?: CSSProperties;};diff --git a/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx b/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsxindex 266621bb40..03ce946d65 100644--- a/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx+++ b/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx@@ -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;};diff --git a/packages/desktop-client/src/components/reports/ModeButton.tsx b/packages/desktop-client/src/components/reports/ModeButton.tsxindex 61392240b4..a12360850d 100644--- a/packages/desktop-client/src/components/reports/ModeButton.tsx+++ b/packages/desktop-client/src/components/reports/ModeButton.tsx@@ -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';diff --git a/packages/desktop-client/src/components/tags/TagCreationRow.tsx b/packages/desktop-client/src/components/tags/TagCreationRow.tsxindex 4823ee0a14..d034834629 100644--- a/packages/desktop-client/src/components/tags/TagCreationRow.tsx+++ b/packages/desktop-client/src/components/tags/TagCreationRow.tsx@@ -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,}}diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex b538332f24..d6382959c2 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -30,7 +30,7 @@},"devDependencies": {"@docusaurus/module-type-aliases": "^3.9.2",- "@types/react": "^19.2.5"+ "@types/react": "^19.2.14"},"browserslist": {"production": [diff --git a/upcoming-release-notes/7223.md b/upcoming-release-notes/7223.mdnew file mode 100644index 0000000000..1ab50c2901--- /dev/null+++ b/upcoming-release-notes/7223.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [matt-fidd]+---++Bump react typesdiff --git a/yarn.lock b/yarn.lockindex d3a3fde871..66feebcf7e 100644--- a/yarn.lock+++ b/yarn.lock@@ -59,7 +59,7 @@ __metadata:"@storybook/addon-docs": "npm:^10.2.7""@storybook/react-vite": "npm:^10.2.7""@svgr/cli": "npm:^8.1.0"- "@types/react": "npm:^19.2.5"+ "@types/react": "npm:^19.2.14""@typescript/native-preview": "npm:^7.0.0-dev.20260309.1""@vitejs/plugin-react": "npm:^6.0.0"eslint-plugin-storybook: "npm:^10.2.7"@@ -238,7 +238,7 @@ __metadata:"@types/lodash": "npm:^4""@types/pikaday": "npm:^1.7.10""@types/promise-retry": "npm:^1.1.6"- "@types/react": "npm:^19.2.5"+ "@types/react": "npm:^19.2.14""@types/react-dom": "npm:^19.2.3""@types/react-modal": "npm:^3.16.3""@typescript/native-preview": "npm:^7.0.0-dev.20260309.1"@@ -10197,7 +10197,7 @@ __metadata:languageName: nodelinkType: hard-"@types/react@npm:*, @types/react@npm:^19.2.5":+"@types/react@npm:*":version: 19.2.5resolution: "@types/react@npm:19.2.5"dependencies:@@ -10206,6 +10206,15 @@ __metadata:languageName: nodelinkType: hard+"@types/react@npm:^19.2.14":+ version: 19.2.14+ resolution: "@types/react@npm:19.2.14"+ dependencies:+ csstype: "npm:^3.2.2"+ checksum: 10/fbff239089ee64b6bd9b00543594db498278b06de527ef1b0f71bb0eb09cc4445a71b5dd3c0d3d0257255c4eed94406be40a74ad4a987ade8a8d5dd65c82bc5f+ languageName: node+ linkType: hard+"@types/resolve@npm:1.20.2":version: 1.20.2resolution: "@types/resolve@npm:1.20.2"@@ -14273,6 +14282,13 @@ __metadata:languageName: nodelinkType: hard+"csstype@npm:^3.2.2":+ version: 3.2.3+ resolution: "csstype@npm:3.2.3"+ checksum: 10/ad41baf7e2ffac65ab544d79107bf7cd1a4bb9bab9ac3302f59ab4ba655d5e30942a8ae46e10ba160c6f4ecea464cc95b975ca2fefbdeeacd6ac63f12f99fe1f+ languageName: node+ linkType: hard+"csv-parse@npm:^6.1.0":version: 6.1.0resolution: "csv-parse@npm:6.1.0"@@ -15180,7 +15196,7 @@ __metadata:"@easyops-cn/docusaurus-search-local": "npm:^0.52.3""@mdx-js/react": "npm:^3.1.1""@r74tech/docusaurus-plugin-panzoom": "npm:^2.4.0"- "@types/react": "npm:^19.2.5"+ "@types/react": "npm:^19.2.14"clsx: "npm:^2.1.1"prism-react-renderer: "npm:^2.4.1"react: "npm:^19.2.4"