From 4a5efcfd1d04b1ce6bb8a3393b2bfa6a57104290 Mon Sep 17 00:00:00 2001
From: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Date: Wed, 20 Aug 2025 14:18:50 -0700
Subject: [PATCH 1/2] chore: delete RAC model stories
---
.../stories/Modal.stories.tsx | 123 ------------------
1 file changed, 123 deletions(-)
diff --git a/packages/react-aria-components/stories/Modal.stories.tsx b/packages/react-aria-components/stories/Modal.stories.tsx
index 7469403fd33..db49cc07aa6 100644
--- a/packages/react-aria-components/stories/Modal.stories.tsx
+++ b/packages/react-aria-components/stories/Modal.stories.tsx
@@ -69,129 +69,6 @@ export const ModalExample: ModalStory = () => (
);
-export const ModalInteractionOutsideExample: ModalStory = () => {
-
- useEffect(() => {
- let button = document.createElement('button');
- button.id = 'test-button';
- button.textContent = 'Click to close';
- button.style.position = 'fixed';
- button.style.top = '0';
- button.style.right = '0';
- button.style.zIndex = '200';
- document.body.appendChild(button);
-
- return () => {
- document.body.removeChild(button);
- };
- }, []);
-
- return (
-
-
- {
- if (el.id === 'test-button') {return true;}
- return false;
- }}
- style={{
- position: 'fixed',
- zIndex: 100,
- top: 0,
- left: 0,
- bottom: 0,
- right: 0,
- background: 'rgba(0, 0, 0, 0.5)',
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center'
- }}>
-
-
-
-
-
- );
-};
-
-export const ModalInteractionOutsideDefaultOverlayExample: ModalStory = () => {
-
- useEffect(() => {
- let button = document.createElement('button');
- button.id = 'test-button';
- button.textContent = 'Click to close';
- button.style.position = 'fixed';
- button.style.top = '0';
- button.style.right = '0';
- button.style.zIndex = '200';
- document.body.appendChild(button);
- return () => {
- document.body.removeChild(button);
- };
- }, []);
-
- return (
-
-
- {
- if (el.id === 'test-button') {return true;}
- return false;
- }}
- style={{
- position: 'fixed',
- top: '50%',
- left: '50%',
- transform: 'translate(-50%, -50%)',
- background: 'Canvas',
- color: 'CanvasText',
- border: '1px solid gray',
- padding: 30
- }}>
-
-
-
- );
-};
-
function InertTest() {
return (
From 3f6f3f15b6292fce26ba03ce5320fe6811ef2294 Mon Sep 17 00:00:00 2001
From: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Date: Wed, 20 Aug 2025 14:48:06 -0700
Subject: [PATCH 2/2] fix lint
---
packages/react-aria-components/stories/Modal.stories.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/react-aria-components/stories/Modal.stories.tsx b/packages/react-aria-components/stories/Modal.stories.tsx
index db49cc07aa6..36e8193359a 100644
--- a/packages/react-aria-components/stories/Modal.stories.tsx
+++ b/packages/react-aria-components/stories/Modal.stories.tsx
@@ -12,7 +12,7 @@
import {Button, ComboBox, Dialog, DialogTrigger, Heading, Input, Label, ListBox, Modal, ModalOverlay, Popover, TextField} from 'react-aria-components';
import {Meta, StoryFn} from '@storybook/react';
-import React, {useEffect} from 'react';
+import React from 'react';
import './styles.css';
import {MyListBoxItem} from './utils';
import styles from '../example/index.css';