Skip to content

Commit b06221e

Browse files
authored
Merge branch 'main' into bug-fix/8686/table-cell-incorrectly-returns-focus-to-button
2 parents 22b6e5f + b1af29c commit b06221e

309 files changed

Lines changed: 4483 additions & 2200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.oxlintrc.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
{
77
"name": "monorepo",
88
"specifier": "@jdb8/eslint-plugin-monorepo"
9-
},
10-
{
11-
"name": "react-hooks-js",
12-
"specifier": "eslint-plugin-react-hooks"
139
}
1410
],
1511
"categories": {
@@ -169,19 +165,7 @@
169165
"react/rules-of-hooks": "error",
170166
"react/exhaustive-deps": "warn",
171167

172-
// React Compiler rules
173-
"react-hooks-js/config": "error",
174-
"react-hooks-js/error-boundaries": "error",
175-
"react-hooks-js/component-hook-factories": "error",
176-
"react-hooks-js/gating": "error",
177-
"react-hooks-js/globals": "error",
178-
"react-hooks-js/purity": "error",
179-
"react-hooks-js/set-state-in-effect": "warn",
180-
"react-hooks-js/set-state-in-render": "error",
181-
"react-hooks-js/static-components": "error",
182-
"react-hooks-js/unsupported-syntax": "warn",
183-
"react-hooks-js/use-memo": "error",
184-
"react-hooks-js/incompatible-library": "warn",
168+
"react/react-compiler": "error",
185169

186170
"rsp-rules/no-react-key": ["error"],
187171
"rsp-rules/sort-imports": ["error"],
22.4 KB
Binary file not shown.

examples/rac-spectrum-tailwind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react-dom": "^18.2.0",
2020
"react-stately": "latest",
2121
"tailwindcss": "^4.0.0",
22-
"tailwindcss-animate": "^1.0.5"
22+
"tw-animate-css": "^1.4.0"
2323
},
2424
"devDependencies": {
2525
"process": "^0.11.10"

examples/rac-spectrum-tailwind/src/spectrum-preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,5 +547,5 @@ module.exports = {
547547
4: 'var(--spectrum-global-color-opacity-4)'
548548
}
549549
},
550-
plugins: [require('tailwindcss-animate')]
550+
plugins: []
551551
};

examples/rac-spectrum-tailwind/src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import 'tailwindcss' source('./');
22
33
@config '../tailwind.config.js';
4+
@import 'tw-animate-css';
45

56
* {
67
-webkit-tap-highlight-color: transparent;

examples/rac-spectrum-tailwind/yarn.lock

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6065,7 +6065,7 @@ __metadata:
60656065
react-dom: "npm:^18.2.0"
60666066
react-stately: "npm:latest"
60676067
tailwindcss: "npm:^4.0.0"
6068-
tailwindcss-animate: "npm:^1.0.5"
6068+
tw-animate-css: "npm:^1.4.0"
60696069
languageName: unknown
60706070
linkType: soft
60716071

@@ -6410,15 +6410,6 @@ __metadata:
64106410
languageName: node
64116411
linkType: hard
64126412

6413-
"tailwindcss-animate@npm:^1.0.5":
6414-
version: 1.0.7
6415-
resolution: "tailwindcss-animate@npm:1.0.7"
6416-
peerDependencies:
6417-
tailwindcss: "*"
6418-
checksum: 10c0/ec7dbd1631076b97d66a1fbaaa06e0725fccfa63119221e8d87a997b02dcede98ad88bb1ef6665b968f5d260fcefb10592e0299ca70208d365b37761edf5e19a
6419-
languageName: node
6420-
linkType: hard
6421-
64226413
"tailwindcss@npm:4.1.13, tailwindcss@npm:^4.0.0":
64236414
version: 4.1.13
64246415
resolution: "tailwindcss@npm:4.1.13"
@@ -6479,6 +6470,13 @@ __metadata:
64796470
languageName: node
64806471
linkType: hard
64816472

6473+
"tw-animate-css@npm:^1.4.0":
6474+
version: 1.4.0
6475+
resolution: "tw-animate-css@npm:1.4.0"
6476+
checksum: 10c0/6cfbc19ccc73883ec80ef1f9147f43e736cb01ee99c8172968b37eb81b720523d30e38b1a96aef92db3c586d864204db5510b51744ddacbbf0ad8e3c7fb56ec7
6477+
languageName: node
6478+
linkType: hard
6479+
64826480
"type-fest@npm:^0.20.2":
64836481
version: 0.20.2
64846482
resolution: "type-fest@npm:0.20.2"

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@
153153
"diff": "^5.1.0",
154154
"eslint-import-resolver-node": "^0.3.10",
155155
"eslint-plugin-jest": "29.15.2",
156-
"eslint-plugin-react-hooks": "^7.0.0",
157156
"exceljs": "^4.4.0",
158157
"fast-check": "^2.19.0",
159158
"fast-glob": "^3.1.0",
@@ -175,7 +174,7 @@
175174
"motion": "^12.23.6",
176175
"npm-cli-login": "^1.0.0",
177176
"oxfmt": "^0.48.0",
178-
"oxlint": "^1.63.0",
177+
"oxlint": "^1.71.0",
179178
"parcel": "^2.16.3",
180179
"parcel-optimizer-strict-mode": "workspace:^",
181180
"patch-package": "^6.2.0",
@@ -199,8 +198,8 @@
199198
"storybook-react-parcel": "workspace:^",
200199
"tailwind-variants": "patch:tailwind-variants@npm%3A0.3.1#~/.yarn/patches/tailwind-variants-npm-0.3.1-48888516de.patch",
201200
"tailwindcss": "^4.0.0",
202-
"tailwindcss-animate": "^1.0.7",
203201
"tempy": "^0.5.0",
202+
"tw-animate-css": "^1.4.0",
204203
"typescript": "^5.8.2",
205204
"unplugin-parcel-macros": "^0.1.1",
206205
"verdaccio": "^6.0.0",

packages/@adobe/react-spectrum/chromatic/provider/Provider.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ const ResponsiveStyleTemplate = (props: ProviderProps): JSX.Element => (
127127

128128
const CustomResponsivStylePropsTemplate = (props: ProviderProps): JSX.Element => {
129129
let Breakpoint = () => {
130+
// oxlint-disable-next-line react/react-compiler
130131
let {matchedBreakpoints} = useBreakpoint()!;
131132
let breakpoint = matchedBreakpoints[0];
132133
let width = {
@@ -149,13 +150,15 @@ const CustomResponsivStylePropsTemplate = (props: ProviderProps): JSX.Element =>
149150
};
150151
return (
151152
<Provider breakpoints={{S: 480, M: 640, L: 1024}} UNSAFE_style={{padding: 50}} {...props}>
153+
{/* oxlint-disable-next-line react/react-compiler */}
152154
<Breakpoint />
153155
</Provider>
154156
);
155157
};
156158

157159
const BreakpointOmittedTemplate = (props: ProviderProps): JSX.Element => {
158160
let Breakpoint = () => {
161+
// oxlint-disable-next-line react/react-compiler
159162
let {matchedBreakpoints} = useBreakpoint()!;
160163
let breakpoint = matchedBreakpoints[0];
161164
let width = {base: 'size-1600', S: 'size-2400', L: 'size-3400'};
@@ -170,6 +173,7 @@ const BreakpointOmittedTemplate = (props: ProviderProps): JSX.Element => {
170173
};
171174
return (
172175
<Provider UNSAFE_style={{padding: 50}} {...props}>
176+
{/* oxlint-disable-next-line react/react-compiler */}
173177
<Breakpoint />
174178
</Provider>
175179
);

packages/@adobe/react-spectrum/src/actionbar/ActionBar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ function ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElemen
110110
}
111111

112112
let {keyboardProps} = useKeyboard({
113-
onKeyDown(e) {
114-
if (e.key === 'Escape') {
115-
e.preventDefault();
113+
shortcuts: {
114+
Escape: () => {
116115
onClearSelection();
117116
}
118117
}

packages/@adobe/react-spectrum/src/actiongroup/ActionGroup.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export const ActionGroup = forwardRef(function ActionGroup<T extends object>(
260260
return wrapperRef.current?.parentElement;
261261
}
262262
}),
263+
// oxlint-disable-next-line react/react-compiler
263264
[wrapperRef]
264265
);
265266
useResizeObserver({
@@ -484,8 +485,11 @@ function ActionGroupMenu<T>({
484485
let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/actiongroup');
485486

486487
// The menu button shouldn't act like an actual action group item.
488+
// oxlint-disable-next-line react/react-compiler
487489
delete buttonProps.onPress;
490+
// oxlint-disable-next-line react/react-compiler
488491
delete buttonProps.role;
492+
// oxlint-disable-next-line react/react-compiler
489493
delete buttonProps['aria-checked'];
490494

491495
let {hoverProps, isHovered} = useHover({isDisabled});

0 commit comments

Comments
 (0)