Skip to content

Commit 28eb8f2

Browse files
committed
Fix verbatimModuleSyntax errors
1 parent 5a05a9f commit 28eb8f2

File tree

26 files changed

+81
-40
lines changed

26 files changed

+81
-40
lines changed

src/avatar/avatar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as React from 'react'
22

33
import { Box } from '../box'
4-
import { getClassNames, ResponsiveProp } from '../utils/responsive-props'
4+
import { getClassNames } from '../utils/responsive-props'
55

66
import { emailToIndex, getInitials } from './utils'
77

88
import styles from './avatar.module.css'
99

1010
import type { ObfuscatedClassName } from '../utils/common-types'
11+
import type { ResponsiveProp } from '../utils/responsive-props'
1112

1213
const AVATAR_COLORS = [
1314
'#fcc652',

src/banner/banner.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { render, screen, within } from '@testing-library/react'
44
import userEvent from '@testing-library/user-event'
55
import { axe } from 'jest-axe'
66

7-
import { Banner, SystemBannerType } from './banner'
7+
import { Banner } from './banner'
8+
9+
import type { SystemBannerType } from './banner'
810

911
describe('Banner', () => {
1012
it('renders as a <div /> element', () => {

src/banner/banner.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import * as React from 'react'
22

33
import { Box } from '../box'
4-
import { Button, ButtonProps, IconButton } from '../button'
4+
import { Button, IconButton } from '../button'
55
import { BannerIcon } from '../icons/banner-icon'
66
import { CloseIcon } from '../icons/close-icon'
77
import { TextLink } from '../text-link'
88
import { useId } from '../utils/common-helpers'
99

1010
import styles from './banner.module.css'
1111

12+
import type { ButtonProps } from '../button'
13+
1214
/**
1315
* Represents the type of a banner.
1416
* 'neutral' accepts a custom icon, the rest do not.

src/base-field/base-field.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22

3-
import { Box, BoxProps } from '../box'
3+
import { Box } from '../box'
44
import { Column, Columns } from '../columns'
55
import { Spinner } from '../spinner'
66
import { Stack } from '../stack'
@@ -9,6 +9,7 @@ import { useId } from '../utils/common-helpers'
99

1010
import styles from './base-field.module.css'
1111

12+
import type { BoxProps } from '../box'
1213
import type { WithEnhancedClassName } from '../utils/common-types'
1314

1415
// Define the remaining characters before the character count turns red

src/box/box.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Inline } from '../inline'
55
import { Stack } from '../stack'
66
import { Text } from '../text'
77
import {
8-
PartialProps,
98
Placeholder,
109
ResponsiveWidthRef,
1110
reusableBoxProps,
@@ -15,9 +14,10 @@ import {
1514
Wrapper,
1615
} from '../utils/storybook-helper'
1716

18-
import { Box, BoxBorderRadius } from './box'
17+
import { Box } from './box'
1918

2019
import type { Space, SpaceWithNegatives } from '../utils/common-types'
20+
import type { PartialProps } from '../utils/storybook-helper'
2121
import type {
2222
BoxAlignItems,
2323
BoxBackground,
@@ -29,6 +29,7 @@ import type {
2929
BoxPaddingProps,
3030
BoxTextAlign,
3131
} from './'
32+
import type { BoxBorderRadius } from './box'
3233

3334
export default {
3435
title: 'Design system/Box',

src/box/box.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import * as React from 'react'
33
import { render, screen } from '@testing-library/react'
44
import { axe } from 'jest-axe'
55

6-
import { Box, BoxProps } from './'
6+
import { Box } from './'
7+
8+
import type { BoxProps } from './'
79

810
describe('Box', () => {
911
it('renders its children as its content', () => {

src/button/button.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import * as React from 'react'
22

3-
import { Role, RoleProps } from '@ariakit/react'
3+
import { Role } from '@ariakit/react'
44
import classNames from 'classnames'
55

66
import { Box, getBoxClassNames } from '../box'
77
import { Spinner } from '../spinner'
8-
import { Tooltip, TooltipProps } from '../tooltip'
8+
import { Tooltip } from '../tooltip'
99

1010
import styles from './button.module.css'
1111

12+
import type { RoleProps } from '@ariakit/react'
13+
import type { TooltipProps } from '../tooltip'
1214
import type { ObfuscatedClassName } from '../utils/common-types'
1315

1416
function preventDefault(event: React.SyntheticEvent) {

src/columns/columns.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Box } from '../box'
44
import { Stack } from '../stack'
55
import {
66
disableResponsiveProps,
7-
PartialProps,
87
Placeholder,
98
ResponsiveWidthRef,
109
reusableBoxProps,
@@ -16,6 +15,7 @@ import {
1615

1716
import { Column, Columns } from './columns'
1817

18+
import type { PartialProps } from '../utils/storybook-helper'
1919
import type {
2020
ColumnsCollapseBelow,
2121
ColumnsHorizontalAlignment,

src/columns/columns.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { axe } from 'jest-axe'
55

66
import { runSpaceTests } from '../utils/test-helpers'
77

8-
import { Column, Columns, ColumnWidth } from './'
8+
import { Column, Columns } from './'
9+
10+
import type { ColumnWidth } from './'
911

1012
const columnWidths: Array<ColumnWidth> = [
1113
'1/2',

src/components/time/time-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,5 @@ const TimeUtils = {
8787
},
8888
}
8989

90-
export { TimeConfig, TimeUtils }
90+
export type { TimeConfig }
91+
export { TimeUtils }

0 commit comments

Comments
 (0)