Skip to content

Commit 2cd061c

Browse files
committed
refactor: circular deps in theme-panel
1 parent 2a0e253 commit 2cd061c

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

packages/radix-ui-themes/src/components/theme-panel.tsx

+13-15
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
import * as React from 'react';
44
import { useCallbackRef } from 'radix-ui/internal';
55

6-
import {
7-
AccessibleIcon,
8-
Box,
9-
Button,
10-
Flex,
11-
Grid,
12-
Heading,
13-
IconButton,
14-
Kbd,
15-
Popover,
16-
ScrollArea,
17-
Text,
18-
Tooltip,
19-
} from '../index.js';
6+
import { AccessibleIcon } from './accessible-icon.js';
7+
import { Box } from './box.js';
8+
import { Button } from './button.js';
9+
import { Flex } from './flex.js';
10+
import { Grid } from './grid.js';
11+
import { Heading } from './heading.js';
12+
import { IconButton } from './icon-button.js';
13+
import { Kbd } from './kbd.js';
14+
import * as Popover from './popover.js';
15+
import { ScrollArea } from './scroll-area.js';
16+
import { Text } from './text.js';
17+
import { Tooltip } from './tooltip.js';
2018
import { Theme, useThemeContext } from './theme.js';
2119
import { inert } from '../helpers/inert.js';
2220
import { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';
@@ -475,7 +473,7 @@ const ThemePanelImpl = React.forwardRef<ThemePanelImplElement, ThemePanelImplPro
475473

476474
<Popover.Content size="1" style={{ maxWidth: 220 }} side="top" align="center">
477475
<Text as="p" size="2">
478-
Whether Card and Table panels are translucent, showing some of the background
476+
Whether Card and Table panels are translucent, showing some of the background
479477
behind them.
480478
</Text>
481479
</Popover.Content>

0 commit comments

Comments
 (0)