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

Commit 88df0d5

Browse files
committed
refactor: use shared package for chakra-ui/utils
1 parent eae605c commit 88df0d5

Some content is hidden

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

49 files changed

+120
-1062
lines changed

packages/c-accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types"
2020
},
2121
"dependencies": {
22-
"@chakra-ui/vue-system": "^0.0.1-alpha.0"
22+
"@chakra-ui/vue-system": "0.0.1-alpha.0"
2323
}
2424
}

packages/c-alert/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
2424
},
2525
"dependencies": {
26-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
27-
"@chakra-ui/vue-utils": "^0.0.1-alpha.0",
28-
"@chakra-ui/c-icon": "^0.0.1-alpha.0"
26+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
27+
"@chakra-ui/vue-utils": "0.0.1-alpha.0",
28+
"@chakra-ui/c-icon": "0.0.1-alpha.0"
2929
},
3030
"devDependencies": {
31-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
31+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
3232
"vue": "^3.0.5"
3333
},
3434
"peerDependencies": {
35-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
35+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
3636
"vue": "^3.0.5"
3737
}
3838
}

packages/c-badge/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
3535
},
3636
"dependencies": {
37-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
38-
"@chakra-ui/vue-utils": "^0.0.1-alpha.0"
37+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
38+
"@chakra-ui/utils": "1.4.0"
3939
},
4040
"devDependencies": {
41-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
41+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
4242
"vue": "^3.0.5"
4343
},
4444
"peerDependencies": {
45-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
45+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
4646
"vue": "^3.0.5"
4747
}
4848
}

packages/c-badge/src/badge.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ThemingProps,
66
useStyleConfig,
77
} from '@chakra-ui/vue-system'
8-
import { filterUndefined } from '@chakra-ui/vue-utils'
8+
import { filterUndefined } from '@chakra-ui/utils'
99

1010
const CBadge = defineComponent({
1111
props: {
@@ -19,8 +19,8 @@ const CBadge = defineComponent({
1919
styleConfig: String as PropType<ThemingProps['styleConfig']>,
2020
},
2121
setup(props, { slots, attrs }) {
22-
const themingProps = computed(() =>
23-
filterUndefined<ThemingProps>({
22+
const themingProps = computed<ThemingProps>(() =>
23+
filterUndefined({
2424
colorScheme: props.colorScheme,
2525
variant: props.variant,
2626
size: props.size,

packages/c-button/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@
2323
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
2424
},
2525
"dependencies": {
26-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
27-
"@chakra-ui/vue-utils": "^0.0.1-alpha.0",
28-
"@chakra-ui/c-icon": "^0.0.1-alpha.0",
29-
"@chakra-ui/c-spinner": "^0.0.1-alpha.0"
26+
"@chakra-ui/c-icon": "0.0.1-alpha.0",
27+
"@chakra-ui/c-spinner": "0.0.1-alpha.0",
28+
"@chakra-ui/utils": "1.4.0",
29+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
30+
"@chakra-ui/vue-utils": "0.0.1-alpha.0"
3031
},
3132
"devDependencies": {
32-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
33+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
3334
"vue": "^3.0.5"
3435
},
3536
"peerDependencies": {
36-
"@chakra-ui/vue-system": "^0.0.1-alpha.0",
37+
"@chakra-ui/vue-system": "0.0.1-alpha.0",
3738
"vue": "^3.0.5"
3839
}
3940
}

packages/c-button/src/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ThemingProps,
66
SystemStyleObject,
77
} from '@chakra-ui/vue-system'
8-
import { dataAttr, filterUndefined, mergeWith } from '@chakra-ui/vue-utils'
8+
import { dataAttr, filterUndefined, mergeWith } from '@chakra-ui/utils'
99
import { useButtonGroup } from './button-group'
1010
import { CIcon } from '@chakra-ui/c-icon'
1111
import { CSpinner } from '@chakra-ui/c-spinner'

packages/c-color-mode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
3434
},
3535
"dependencies": {
36-
"@chakra-ui/vue-utils": "^0.0.1-alpha.0"
36+
"@chakra-ui/utils": "1.4.0"
3737
},
3838
"peerDependencies": {
3939
"vue": ">=3.0.5"

packages/c-color-mode/src/color-mode-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { __DEV__ } from '@chakra-ui/vue-utils'
1+
import { __DEV__ } from '@chakra-ui/utils'
22
import { inject, ref } from 'vue'
33
import { ColorMode } from './color-mode.utils'
44

packages/c-color-mode/src/color-mode.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isBrowser, noop } from '@chakra-ui/vue-utils'
1+
import { isBrowser, noop } from '@chakra-ui/utils'
22

33
const classNames = {
44
light: 'chakra-ui-light',

packages/c-color-mode/src/storage-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { __DEV__ } from '@chakra-ui/vue-utils'
1+
import { __DEV__ } from '@chakra-ui/utils'
22
import { ColorMode } from './color-mode.utils'
33

44
const hasSupport = () => typeof Storage !== 'undefined'

0 commit comments

Comments
 (0)