This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +72
-9
lines changed Expand file tree Collapse file tree 6 files changed +72
-9
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Typescript support for @chakra-ui/vue-next2.1.0-beta.7 auto-imported
2
+ * Typescript support for @chakra-ui/vue-next2.1.0-beta.9 auto-imported
3
3
* components using `unplugin-vue-components,`
4
4
*
5
5
* @see : https://github.com/antfu/unplugin-vue-components/#typescript
6
6
*
7
7
* This is a generated file. Do not edit it's contents.
8
8
*
9
- * This file was generated on 2023-03-19T12:50:09.916Z
9
+ * This file was generated on 2023-03-28T13:35:59.574Z
10
10
*/
11
11
12
12
import { ChakraProps , chakra } from "@chakra-ui/vue-system"
@@ -77,6 +77,7 @@ declare module "@vue/runtime-core" {
77
77
CAspectRatio : typeof import ( "@chakra-ui/vue-next" ) [ "CAspectRatio" ]
78
78
CAvatar : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatar" ]
79
79
CAvatarBadge : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatarBadge" ]
80
+ CAvatarGroup : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatarGroup" ]
80
81
CBadge : typeof import ( "@chakra-ui/vue-next" ) [ "CBadge" ]
81
82
CBox : typeof import ( "@chakra-ui/vue-next" ) [ "CBox" ]
82
83
CBreadcrumb : typeof import ( "@chakra-ui/vue-next" ) [ "CBreadcrumb" ]
Original file line number Diff line number Diff line change 1
1
/**
2
- * Typescript support for @chakra-ui/vue-next2.1.0-beta.7 auto-imported
2
+ * Typescript support for @chakra-ui/vue-next2.1.0-beta.9 auto-imported
3
3
* components using `unplugin-vue-components,`
4
4
*
5
5
* @see : https://github.com/antfu/unplugin-vue-components/#typescript
6
6
*
7
7
* This is a generated file. Do not edit it's contents.
8
8
*
9
- * This file was generated on 2023-03-19T12:50:09.916Z
9
+ * This file was generated on 2023-03-28T13:35:59.574Z
10
10
*/
11
11
12
12
import { ChakraProps , chakra } from "@chakra-ui/vue-system"
@@ -77,6 +77,7 @@ declare module "@vue/runtime-core" {
77
77
CAspectRatio : typeof import ( "@chakra-ui/vue-next" ) [ "CAspectRatio" ]
78
78
CAvatar : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatar" ]
79
79
CAvatarBadge : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatarBadge" ]
80
+ CAvatarGroup : typeof import ( "@chakra-ui/vue-next" ) [ "CAvatarGroup" ]
80
81
CBadge : typeof import ( "@chakra-ui/vue-next" ) [ "CBadge" ]
81
82
CBox : typeof import ( "@chakra-ui/vue-next" ) [ "CBox" ]
82
83
CBreadcrumb : typeof import ( "@chakra-ui/vue-next" ) [ "CBreadcrumb" ]
Original file line number Diff line number Diff line change 120
120
<DiscordIcon />
121
121
</c-icon-button >
122
122
</c-button-group >
123
+ <c-stack >
124
+ <c-heading as =" h3" size =" md" > Avatars </c-heading >
125
+ <c-avatar-group :max =" 3" size =" md" >
126
+ <c-avatar
127
+ name =" Sarah Drasner"
128
+ src =" https://avatars.githubusercontent.com/u/2281088?v=4"
129
+ alt =" Sarah Drasner"
130
+ :border-color ="
131
+ useColorModeValue(
132
+ `${selectedColor.color}.50`,
133
+ `${selectedColor.color}.900`
134
+ ).value
135
+ "
136
+ >
137
+ <c-avatar-badge
138
+ bg =" green.400"
139
+ border-width =" 2px"
140
+ box-size =" 0.8em"
141
+ />
142
+ </c-avatar >
143
+ <c-avatar
144
+ name =" Evan You"
145
+ alt =" Evan You"
146
+ src =" https://www.github.com/yyx990803.png"
147
+ :border-color ="
148
+ useColorModeValue(
149
+ `${selectedColor.color}.50`,
150
+ `${selectedColor.color}.900`
151
+ ).value
152
+ "
153
+ >
154
+ <c-avatar-badge
155
+ bg =" green.400"
156
+ border-width =" 2px"
157
+ box-size =" 0.8em"
158
+ />
159
+ </c-avatar >
160
+ <c-avatar
161
+ name =" Anthony Fu"
162
+ src =" https://avatars.githubusercontent.com/u/11247099?v=4"
163
+ alt =" Anthony Fu"
164
+ :border-color ="
165
+ useColorModeValue(
166
+ `${selectedColor.color}.50`,
167
+ `${selectedColor.color}.900`
168
+ ).value
169
+ "
170
+ >
171
+ <c-avatar-badge
172
+ bg =" green.400"
173
+ border-width =" 2px"
174
+ box-size =" 0.8em"
175
+ />
176
+ </c-avatar >
177
+ <c-avatar
178
+ name =" Maya Shavin"
179
+ src =" https://avatars.githubusercontent.com/u/6650139?v=4"
180
+ alt =" Maya Shavin"
181
+ ></c-avatar >
182
+ </c-avatar-group >
183
+ </c-stack >
123
184
</c-stack >
124
185
</chakra .div >
125
186
</template >
Original file line number Diff line number Diff line change 1
1
/* eslint vue/no-side-effects-in-computed-properties: 0 */
2
- import {
3
- useMultiStyleConfig ,
4
- chakra ,
5
- } from "@chakra-ui/vue-system"
2
+ import { useMultiStyleConfig , chakra } from "@chakra-ui/vue-system"
6
3
import { SystemStyleObject } from "@chakra-ui/styled-system"
7
4
import {
8
5
getValidChildren ,
@@ -45,6 +42,7 @@ export const avatarGroupProps = {
45
42
* CAvatarGroup displays a number of avatars grouped together in a stack.
46
43
*/
47
44
export const CAvatarGroup = defineComponent ( {
45
+ name : "CAvatarGroup" ,
48
46
props : avatarGroupProps ,
49
47
setup ( props , { slots, attrs } ) {
50
48
const mergedProps = computed ( ( ) => mergeWith ( { } , props , attrs ) )
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ interface ImageOptions extends NativeImageOptions {
73
73
referrerPolicy ?: ReferrerPolicy
74
74
}
75
75
76
- export interface CImageProps extends UseImageProps , ImageOptions { }
76
+ export interface CImageProps extends UseImageProps , ImageOptions { }
77
77
78
78
export const CImage = defineComponent ( {
79
79
name : "CImage" ,
Original file line number Diff line number Diff line change
1
+ import { canUseDOM } from "@chakra-ui/utils"
1
2
import {
2
3
computed ,
3
4
unref ,
@@ -84,6 +85,7 @@ export function useImage(props: UseImageProps) {
84
85
}
85
86
86
87
watchPostEffect ( ( ) => {
88
+ if ( ! canUseDOM ( ) ) return
87
89
/**
88
90
* If user opts out of the fallback/placeholder
89
91
* logic, let's bail out.
You can’t perform that action at this time.
0 commit comments