Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 26f8649

Browse files
committed
chore: remove unused import types
1 parent bc0154d commit 26f8649

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

packages/c-alert/src/alert.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { h, defineComponent, PropType, computed } from 'vue'
22
import {
33
chakra,
4-
ColorScheme,
54
ThemingProps,
65
useMultiStyleConfig,
76
useStyles,
@@ -14,19 +13,19 @@ import { CIcon } from '@chakra-ui/c-icon'
1413

1514
const STATUSES = {
1615
info: {
17-
colorScheme: 'blue' as ColorScheme,
16+
colorScheme: 'blue',
1817
icon: 'info',
1918
},
2019
success: {
21-
colorScheme: 'green' as ColorScheme,
20+
colorScheme: 'green',
2221
icon: 'check-circle',
2322
},
2423
warning: {
25-
colorScheme: 'orange' as ColorScheme,
24+
colorScheme: 'orange',
2625
icon: 'warning-alt',
2726
},
2827
error: {
29-
colorScheme: 'red' as ColorScheme,
28+
colorScheme: 'red',
3029
icon: 'warning',
3130
},
3231
}
@@ -62,7 +61,7 @@ export const CAlert = defineComponent({
6261
default: 'info',
6362
},
6463
colorScheme: {
65-
type: [String] as PropType<ColorScheme>,
64+
type: [String] as PropType<string>,
6665
},
6766
styleConfig: {
6867
type: [Object] as PropType<any>,
@@ -73,7 +72,7 @@ export const CAlert = defineComponent({
7372
},
7473
},
7574
setup(props, { slots, attrs }) {
76-
const colorScheme: ColorScheme =
75+
const colorScheme: string =
7776
props.colorScheme || STATUSES[props.status].colorScheme
7877

7978
const themingProps: ThemingProps = {

packages/c-button/src/button-group.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
SystemStyleObject,
55
} from '@chakra-ui/styled-system'
66
import { chakra, ThemingProps } from '@chakra-ui/vue-system'
7-
import { ComponentThemeConfig } from '@chakra-ui/vue-theme'
87
import { createContext } from '@chakra-ui/vue-utils'
98

109
export interface ButtonGroupProps extends ThemingProps {
@@ -41,7 +40,7 @@ const props = {
4140
default: 'sm',
4241
},
4342
colorScheme: String as PropType<string>,
44-
styleConfig: String as PropType<ComponentThemeConfig>,
43+
styleConfig: String as PropType<any>,
4544
}
4645

4746
type ButtonGroupContext = () => ThemingProps & {

packages/c-spinner/src/spinner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
ThemingProps,
77
useStyleConfig,
88
} from '@chakra-ui/vue-system'
9-
import { ComponentThemeConfig } from '@chakra-ui/vue-theme'
109
import { CVisuallyHidden } from '@chakra-ui/c-visually-hidden'
1110

1211
const spin = keyframes({
@@ -84,7 +83,7 @@ const props = {
8483
type: String as PropType<string>,
8584
default: 'md',
8685
},
87-
styleConfig: String as PropType<ComponentThemeConfig>,
86+
styleConfig: String as PropType<any>,
8887
}
8988

9089
const CSpinner = defineComponent({

packages/system/src/system.types.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import { Component, Fragment, Suspense, Teleport } from 'vue'
22
import { SystemProps, ResponsiveValue } from '@chakra-ui/styled-system'
33

4-
import {
5-
ChakraColors,
6-
ChakraComponentName,
7-
ComponentThemeConfig,
8-
} from '@chakra-ui/vue-theme'
9-
104
export type Tag =
115
| string
126
| typeof Fragment
@@ -19,7 +13,7 @@ export interface ThemingProps {
1913
size?: string
2014
colorScheme?: string
2115
orientation?: 'vertical' | 'horizontal'
22-
styleConfig?: ComponentThemeConfig
16+
styleConfig?: any
2317
}
2418

2519
export interface ChakraProps extends SystemProps {
@@ -52,6 +46,4 @@ export interface ChakraProps extends SystemProps {
5246
noOfLines?: ResponsiveValue<number>
5347
}
5448

55-
export type ColorScheme = keyof ChakraColors
56-
export type ThemeComponents = ChakraComponentName
5749
export type { SystemStyleObject } from '@chakra-ui/styled-system'

0 commit comments

Comments
 (0)