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

Commit 75b169b

Browse files
committed
fix: popover initial transition state
1 parent 3de8c75 commit 75b169b

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

@types/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-03-01T19:58:41.256Z
9+
* This file was generated on 2023-03-04T20:41:26.135Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-03-01T19:58:41.256Z
9+
* This file was generated on 2023-03-04T20:41:26.135Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

packages/c-close-button/src/c-close-button.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { h, defineComponent, PropType, computed } from "vue"
2-
import {
3-
chakra,
4-
DOMElements,
5-
useStyleConfig,
6-
} from "@chakra-ui/vue-system"
7-
import {
8-
SystemStyleObject,
9-
ThemingProps
10-
} from "@chakra-ui/styled-system"
2+
import { chakra, DOMElements, useStyleConfig } from "@chakra-ui/vue-system"
3+
import { SystemStyleObject, ThemingProps } from "@chakra-ui/styled-system"
114
import { filterUndefined } from "@chakra-ui/utils"
125
import { getValidChildren } from "@chakra-ui/vue-utils"
136

@@ -45,6 +38,10 @@ export const CCloseButton = defineComponent({
4538
},
4639
size: [String] as CloseButtonProps["size"],
4740
styleConfig: [String] as CloseButtonProps["styleConfig"],
41+
__css: {
42+
type: [Object] as PropType<SystemStyleObject>,
43+
default: () => ({}),
44+
},
4845
},
4946
setup(props, { slots, attrs }) {
5047
return () => {
@@ -72,7 +69,7 @@ export const CCloseButton = defineComponent({
7269
disabled={props.isDisabled}
7370
aria-label="Close"
7471
__label="icon-button"
75-
__css={{ ...baseStyles, ...styles.value }}
72+
__css={{ ...baseStyles, ...styles.value, ...props.__css }}
7673
{...attrs}
7774
>
7875
{() => (slots.default ? getValidChildren(slots) : <CCloseIcon />)}

pnpm-lock.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)