Skip to content

Commit 24759da

Browse files
chore: rename modules
1 parent f3b8282 commit 24759da

File tree

116 files changed

+347
-347
lines changed

Some content is hidden

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

116 files changed

+347
-347
lines changed

src/core/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {box, root, type RootStyleProps} from '@sanity/ui/css'
22
import {useCallback, useImperativeHandle, useRef, useState} from 'react'
33

4-
import {Box, type BoxOwnProps} from './primitives/box/box'
4+
import {Box, type BoxOwnProps} from './primitives/box/Box'
55
import {RootProvider} from './RootProvider'
66
import type {Props} from './types'
77

src/core/RootProvider.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type {CardTone, ColorScheme} from '@sanity/ui/theme'
22
import type {ReactNode} from 'react'
33

4-
import {ToastProvider} from './components/toast/toastProvider'
5-
import {CardProvider} from './primitives/card/cardProvider'
6-
import {LayerProvider} from './primitives/layer/layerProvider'
7-
import {BoundaryElementProvider} from './utils/boundaryElement/boundaryElementProvider'
8-
import {PortalProvider} from './utils/portal/portalProvider'
4+
import {ToastProvider} from './components/toast/ToastProvider'
5+
import {CardProvider} from './primitives/card/CardProvider'
6+
import {LayerProvider} from './primitives/layer/LayerProvider'
7+
import {BoundaryElementProvider} from './utils/boundaryElement/BoundaryElementProvider'
8+
import {PortalProvider} from './utils/portal/PortalProvider'
99

1010
/** @public */
1111
export interface RootProviderProps {

src/core/__workshop__/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const scope: WorkshopScope = {
88
{
99
name: 'boundary',
1010
title: 'Boundary',
11-
component: lazy(() => import('./boundary')),
11+
component: lazy(() => import('./Boundary')),
1212
},
1313
],
1414
}

src/core/components/autocomplete/Autocomplete.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ import {EMPTY_ARRAY, EMPTY_RECORD} from '../../constants'
2222
import {_raf} from '../../helpers/animation'
2323
import {_hasFocus, focusFirstDescendant} from '../../helpers/focus'
2424
import {useResponsiveProp} from '../../hooks/useResponsiveProp'
25-
import {Box, type BoxOwnProps} from '../../primitives/box/box'
26-
import {Button} from '../../primitives/button/button'
27-
import {Popover, type PopoverProps} from '../../primitives/popover/popover'
28-
import {Selectable} from '../../primitives/selectable/selectable'
29-
import {AnimatedSpinnerIcon} from '../../primitives/spinner/animatedSpinnerIcon'
30-
import {Stack} from '../../primitives/stack/stack'
31-
import {Text} from '../../primitives/text/text'
32-
import {TextInput, type TextInputOwnProps} from '../../primitives/textInput/textInput'
25+
import {Box, type BoxOwnProps} from '../../primitives/box/Box'
26+
import {Button} from '../../primitives/button/Button'
27+
import {Popover, type PopoverProps} from '../../primitives/popover/Popover'
28+
import {Selectable} from '../../primitives/selectable/Selectable'
29+
import {AnimatedSpinnerIcon} from '../../primitives/spinner/AnimatedSpinnerIcon'
30+
import {Stack} from '../../primitives/stack/Stack'
31+
import {Text} from '../../primitives/text/Text'
32+
import {TextInput, type TextInputOwnProps} from '../../primitives/textInput/TextInput'
3333
import type {ComponentType, Props} from '../../types'
34-
import {AutocompleteOption} from './autocompleteOption'
34+
import {AutocompleteOption} from './AutocompleteOption'
3535
import {autocompleteReducer} from './autocompleteReducer'
3636
import {
3737
AUTOCOMPLETE_LISTBOX_IGNORE_KEYS,

src/core/components/autocomplete/__workshop__/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ const scope: WorkshopScope = {
88
{
99
name: 'example',
1010
title: 'Example',
11-
component: lazy(() => import('./example')),
11+
component: lazy(() => import('./Example')),
1212
},
1313
{
1414
name: 'custom',
1515
title: 'Custom',
16-
component: lazy(() => import('./custom')),
16+
component: lazy(() => import('./Custom')),
1717
},
1818
{
1919
name: 'async',
2020
title: 'Async',
21-
component: lazy(() => import('./async')),
21+
component: lazy(() => import('./Async')),
2222
},
2323
{
2424
name: 'constrained-height',
2525
title: 'Constrained height',
26-
component: lazy(() => import('./constrainedHeight')),
26+
component: lazy(() => import('./ConstrainedHeight')),
2727
},
2828
{
2929
name: 'focus-and-blur',
3030
title: 'Focus and blur',
31-
component: lazy(() => import('./focusAndBlur')),
31+
component: lazy(() => import('./FocusAndBlur')),
3232
},
3333
{
3434
name: 'fullscreen',
3535
title: 'Fullscreen',
36-
component: lazy(() => import('./fullscreen')),
36+
component: lazy(() => import('./Fullscreen')),
3737
},
3838
],
3939
}

src/core/components/autocomplete/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {ButtonProps} from '../../primitives/button/button'
1+
import type {ButtonProps} from '../../primitives/button/Button'
22

33
/** @public */
44
export type AutocompleteOpenButtonProps = Omit<ButtonProps<'button'>, 'as'>

src/core/components/breadcrumbs/Breadcrumbs.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
} from 'react'
1212

1313
import {useClickOutsideEvent} from '../../hooks/useClickOutsideEvent'
14-
import {Box} from '../../primitives/box/box'
15-
import {Button, type ButtonProps} from '../../primitives/button/button'
16-
import {Flex} from '../../primitives/flex/flex'
17-
import {Popover} from '../../primitives/popover/popover'
18-
import {Stack} from '../../primitives/stack/stack'
19-
import {Text} from '../../primitives/text/text'
14+
import {Box} from '../../primitives/box/Box'
15+
import {Button, type ButtonProps} from '../../primitives/button/Button'
16+
import {Flex} from '../../primitives/flex/Flex'
17+
import {Popover} from '../../primitives/popover/Popover'
18+
import {Stack} from '../../primitives/stack/Stack'
19+
import {Text} from '../../primitives/text/Text'
2020
import type {ComponentType, Props} from '../../types'
2121

2222
/** @beta */

src/core/components/breadcrumbs/__workshop__/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const scope: WorkshopScope = {
88
{
99
name: 'example',
1010
title: 'Example',
11-
component: lazy(() => import('./example')),
11+
component: lazy(() => import('./Example')),
1212
},
1313
],
1414
}

src/core/components/dialog/Dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import {isHTMLElement} from '../../helpers/element'
1212
import {focusFirstDescendant, focusLastDescendant} from '../../helpers/focus'
1313
import {usePrefersReducedMotion} from '../../hooks/usePrefersReducedMotion'
1414
import {useResponsiveProp} from '../../hooks/useResponsiveProp'
15-
import {Container} from '../../primitives/container/container'
16-
import {Layer, type LayerOwnProps, type LayerProps} from '../../primitives/layer/layer'
15+
import {Container} from '../../primitives/container/Container'
16+
import {Layer, type LayerOwnProps, type LayerProps} from '../../primitives/layer/Layer'
1717
import type {ComponentType, Props} from '../../types'
1818
import {useBoundaryElement} from '../../utils/boundaryElement/useBoundaryElement'
19-
import {Portal} from '../../utils/portal/portal'
19+
import {Portal} from '../../utils/portal/Portal'
2020
import {usePortal} from '../../utils/portal/usePortal'
21-
import {DialogCard} from './dialogCard'
21+
import {DialogCard} from './DialogCard'
2222
import {isTargetWithinScope} from './isTargetWithinScope'
2323
import type {DialogPosition} from './types'
2424
import {useDialog} from './useDialog'

src/core/components/dialog/DialogCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import {
2121
import {focusFirstDescendant} from '../../helpers/focus'
2222
import {useClickOutsideEvent} from '../../hooks/useClickOutsideEvent'
2323
import {useGlobalKeyDown} from '../../hooks/useGlobalKeyDown'
24-
import {Box} from '../../primitives/box/box'
25-
import {Button} from '../../primitives/button/button'
26-
import {Card, type CardElementType, type CardOwnProps} from '../../primitives/card/card'
27-
import {Flex} from '../../primitives/flex/flex'
24+
import {Box} from '../../primitives/box/Box'
25+
import {Button} from '../../primitives/button/Button'
26+
import {Card, type CardElementType, type CardOwnProps} from '../../primitives/card/Card'
27+
import {Flex} from '../../primitives/flex/Flex'
2828
import {useLayer} from '../../primitives/layer/useLayer'
29-
import {Text} from '../../primitives/text/text'
29+
import {Text} from '../../primitives/text/Text'
3030
import type {Props} from '../../types'
3131
import {useBoundaryElement} from '../../utils/boundaryElement/useBoundaryElement'
3232
import {usePortal} from '../../utils/portal/usePortal'

0 commit comments

Comments
 (0)