diff --git a/.changeset/lemon-toes-end.md b/.changeset/lemon-toes-end.md new file mode 100644 index 00000000..6c0ecb35 --- /dev/null +++ b/.changeset/lemon-toes-end.md @@ -0,0 +1,5 @@ +--- +"@chakra-ui/vue-layout": patch +--- + +fix(components): Add missing `as` prop on some layout components diff --git a/@types/components.d.ts b/@types/components.d.ts index 86c53590..31bed42b 100755 --- a/@types/components.d.ts +++ b/@types/components.d.ts @@ -6,7 +6,7 @@ * * This is a generated file. Do not edit it's contents. * - * This file was generated on 2023-05-20T11:19:16.919Z + * This file was generated on 2023-09-11T16:17:50.573Z */ import { ChakraProps, chakra } from "@chakra-ui/vue-system" diff --git a/components.d.ts b/components.d.ts index 86c53590..31bed42b 100755 --- a/components.d.ts +++ b/components.d.ts @@ -6,7 +6,7 @@ * * This is a generated file. Do not edit it's contents. * - * This file was generated on 2023-05-20T11:19:16.919Z + * This file was generated on 2023-09-11T16:17:50.573Z */ import { ChakraProps, chakra } from "@chakra-ui/vue-system" diff --git a/packages/layout/examples/base-container.vue b/packages/layout/examples/base-container.vue index e15e7fb4..2692c0e8 100644 --- a/packages/layout/examples/base-container.vue +++ b/packages/layout/examples/base-container.vue @@ -1,17 +1,16 @@ - diff --git a/packages/layout/examples/base-stack.vue b/packages/layout/examples/base-stack.vue index 65811349..158cefb4 100644 --- a/packages/layout/examples/base-stack.vue +++ b/packages/layout/examples/base-stack.vue @@ -2,34 +2,43 @@ Stack Default - + 1 2 3 - + Horizontal - + 1 2 3 - + Vertical - + 1 2 3 - + + + + + As prop UL + + 1 + 2 + 3 + - diff --git a/packages/layout/examples/base-text.vue b/packages/layout/examples/base-text.vue index 744e5309..74a1509d 100644 --- a/packages/layout/examples/base-text.vue +++ b/packages/layout/examples/base-text.vue @@ -1,27 +1,30 @@ diff --git a/packages/layout/src/container.tsx b/packages/layout/src/container.tsx index 0d4157ab..68333fa1 100644 --- a/packages/layout/src/container.tsx +++ b/packages/layout/src/container.tsx @@ -12,7 +12,7 @@ import type * as CSS from "csstype" export interface ContainerProps extends HTMLChakraProps<"div">, - ThemingProps<"Container"> { + ThemingProps<"Container"> { /** * If `true`, container will center its children * regardless of their width. @@ -54,6 +54,7 @@ export const CContainer = defineComponent({ return () => ( , - default: "h2", + default: "kbd", }, ...vueThemingProps, }, @@ -47,6 +47,7 @@ export const CKbd = defineComponent({ return () => ( diff --git a/packages/layout/src/link.tsx b/packages/layout/src/link.tsx index aabca8ec..72004f9a 100644 --- a/packages/layout/src/link.tsx +++ b/packages/layout/src/link.tsx @@ -1,11 +1,7 @@ import { vueThemingProps } from "@chakra-ui/vue-utils" import { HTMLChakraProps } from "@chakra-ui/vue-system" import { h, defineComponent, PropType, computed } from "vue" -import { - chakra, - DOMElements, - useStyleConfig, -} from "@chakra-ui/vue-system" +import { chakra, DOMElements, useStyleConfig } from "@chakra-ui/vue-system" import { ThemingProps } from "@chakra-ui/styled-system" import { filterUndefined } from "@chakra-ui/utils" import type * as CSS from "csstype" diff --git a/packages/layout/src/stack.tsx b/packages/layout/src/stack.tsx index fe2b68f1..1afcd8aa 100644 --- a/packages/layout/src/stack.tsx +++ b/packages/layout/src/stack.tsx @@ -180,6 +180,7 @@ export const CStack = defineComponent({ return ( { return (