|
2 | 2 | * Global component types for @@chakra-ui/vue-next1.0.0-alpha.4
|
3 | 3 | * This is a generated file. Do not edit it's contents.
|
4 | 4 | *
|
5 |
| - * This file was generated on 2021-06-22T09:21:16.557Z |
| 5 | + * This file was generated on 2021-06-22T10:04:03.124Z |
6 | 6 | */
|
7 |
| -declare module 'vue' { |
8 |
| - export interface GlobalComponents { |
9 |
| - CAlert: typeof import('@chakra-ui/vue-next')['CAlert'] |
10 |
| - CAlertTitle: typeof import('@chakra-ui/vue-next')['CAlertTitle'] |
11 |
| - CAlertDescription: typeof import('@chakra-ui/vue-next')['CAlertDescription'] |
12 |
| - CAlertIcon: typeof import('@chakra-ui/vue-next')['CAlertIcon'] |
13 |
| - CButton: typeof import('@chakra-ui/vue-next')['CButton'] |
14 |
| - CButtonGroup: typeof import('@chakra-ui/vue-next')['CButtonGroup'] |
15 |
| - CIconButton: typeof import('@chakra-ui/vue-next')['CIconButton'] |
16 |
| - CFocusLock: typeof import('@chakra-ui/vue-next')['CFocusLock'] |
17 |
| - CAspectRatio: typeof import('@chakra-ui/vue-next')['CAspectRatio'] |
18 |
| - CBadge: typeof import('@chakra-ui/vue-next')['CBadge'] |
19 |
| - CBox: typeof import('@chakra-ui/vue-next')['CBox'] |
20 |
| - CSquare: typeof import('@chakra-ui/vue-next')['CSquare'] |
21 |
| - CCircle: typeof import('@chakra-ui/vue-next')['CCircle'] |
22 |
| - CCenter: typeof import('@chakra-ui/vue-next')['CCenter'] |
23 |
| - CContainer: typeof import('@chakra-ui/vue-next')['CContainer'] |
24 |
| - CDivider: typeof import('@chakra-ui/vue-next')['CDivider'] |
25 |
| - CGrid: typeof import('@chakra-ui/vue-next')['CGrid'] |
26 |
| - CGridItem: typeof import('@chakra-ui/vue-next')['CGridItem'] |
27 |
| - CHeading: typeof import('@chakra-ui/vue-next')['CHeading'] |
28 |
| - CLink: typeof import('@chakra-ui/vue-next')['CLink'] |
29 |
| - CLinkOverlay: typeof import('@chakra-ui/vue-next')['CLinkOverlay'] |
30 |
| - CLinkBox: typeof import('@chakra-ui/vue-next')['CLinkBox'] |
31 |
| - CList: typeof import('@chakra-ui/vue-next')['CList'] |
32 |
| - COrderedList: typeof import('@chakra-ui/vue-next')['COrderedList'] |
33 |
| - CUnorderedList: typeof import('@chakra-ui/vue-next')['CUnorderedList'] |
34 |
| - CListItem: typeof import('@chakra-ui/vue-next')['CListItem'] |
35 |
| - CListIcon: typeof import('@chakra-ui/vue-next')['CListIcon'] |
36 |
| - CKbd: typeof import('@chakra-ui/vue-next')['CKbd'] |
37 |
| - CSimpleGrid: typeof import('@chakra-ui/vue-next')['CSimpleGrid'] |
38 |
| - CSpacer: typeof import('@chakra-ui/vue-next')['CSpacer'] |
39 |
| - CStackDivider: typeof import('@chakra-ui/vue-next')['CStackDivider'] |
40 |
| - CStackItem: typeof import('@chakra-ui/vue-next')['CStackItem'] |
41 |
| - CStack: typeof import('@chakra-ui/vue-next')['CStack'] |
42 |
| - CHStack: typeof import('@chakra-ui/vue-next')['CHStack'] |
43 |
| - CVStack: typeof import('@chakra-ui/vue-next')['CVStack'] |
44 |
| - CText: typeof import('@chakra-ui/vue-next')['CText'] |
45 |
| - CModal: typeof import('@chakra-ui/vue-next')['CModal'] |
46 |
| - CModalContent: typeof import('@chakra-ui/vue-next')['CModalContent'] |
47 |
| - CModalOverlay: typeof import('@chakra-ui/vue-next')['CModalOverlay'] |
48 |
| - CModalHeader: typeof import('@chakra-ui/vue-next')['CModalHeader'] |
49 |
| - CModalBody: typeof import('@chakra-ui/vue-next')['CModalBody'] |
50 |
| - CModalFooter: typeof import('@chakra-ui/vue-next')['CModalFooter'] |
51 |
| - CModalCloseButton: typeof import('@chakra-ui/vue-next')['CModalCloseButton'] |
52 |
| - CMotion: typeof import('@chakra-ui/vue-next')['CMotion'] |
53 |
| - CPortal: typeof import('@chakra-ui/vue-next')['CPortal'] |
54 |
| - CScrollLock: typeof import('@chakra-ui/vue-next')['CScrollLock'] |
55 |
| - CVisuallyHidden: typeof import('@chakra-ui/vue-next')['CVisuallyHidden'] |
56 |
| - CVisuallyHiddenInput: typeof import('@chakra-ui/vue-next')['CVisuallyHiddenInput'] |
57 |
| - 'chakra.a': typeof import('@chakra-ui/vue-next')['CBox'] |
58 |
| - 'chakra.b': typeof import('@chakra-ui/vue-next')['CBox'] |
59 |
| - 'chakra.article': typeof import('@chakra-ui/vue-next')['CBox'] |
60 |
| - 'chakra.aside': typeof import('@chakra-ui/vue-next')['CBox'] |
61 |
| - 'chakra.blockquote': typeof import('@chakra-ui/vue-next')['CBox'] |
62 |
| - 'chakra.button': typeof import('@chakra-ui/vue-next')['CBox'] |
63 |
| - 'chakra.caption': typeof import('@chakra-ui/vue-next')['CBox'] |
64 |
| - 'chakra.cite': typeof import('@chakra-ui/vue-next')['CBox'] |
65 |
| - 'chakra.circle': typeof import('@chakra-ui/vue-next')['CBox'] |
66 |
| - 'chakra.code': typeof import('@chakra-ui/vue-next')['CBox'] |
67 |
| - 'chakra.dd': typeof import('@chakra-ui/vue-next')['CBox'] |
68 |
| - 'chakra.div': typeof import('@chakra-ui/vue-next')['CBox'] |
69 |
| - 'chakra.dl': typeof import('@chakra-ui/vue-next')['CBox'] |
70 |
| - 'chakra.dt': typeof import('@chakra-ui/vue-next')['CBox'] |
71 |
| - 'chakra.fieldset': typeof import('@chakra-ui/vue-next')['CBox'] |
72 |
| - 'chakra.figcaption': typeof import('@chakra-ui/vue-next')['CBox'] |
73 |
| - 'chakra.figure': typeof import('@chakra-ui/vue-next')['CBox'] |
74 |
| - 'chakra.footer': typeof import('@chakra-ui/vue-next')['CBox'] |
75 |
| - 'chakra.form': typeof import('@chakra-ui/vue-next')['CBox'] |
76 |
| - 'chakra.h1': typeof import('@chakra-ui/vue-next')['CBox'] |
77 |
| - 'chakra.h2': typeof import('@chakra-ui/vue-next')['CBox'] |
78 |
| - 'chakra.h3': typeof import('@chakra-ui/vue-next')['CBox'] |
79 |
| - 'chakra.h4': typeof import('@chakra-ui/vue-next')['CBox'] |
80 |
| - 'chakra.h5': typeof import('@chakra-ui/vue-next')['CBox'] |
81 |
| - 'chakra.h6': typeof import('@chakra-ui/vue-next')['CBox'] |
82 |
| - 'chakra.header': typeof import('@chakra-ui/vue-next')['CBox'] |
83 |
| - 'chakra.hr': typeof import('@chakra-ui/vue-next')['CBox'] |
84 |
| - 'chakra.iframe': typeof import('@chakra-ui/vue-next')['CBox'] |
85 |
| - 'chakra.img': typeof import('@chakra-ui/vue-next')['CBox'] |
86 |
| - 'chakra.input': typeof import('@chakra-ui/vue-next')['CBox'] |
87 |
| - 'chakra.kbd': typeof import('@chakra-ui/vue-next')['CBox'] |
88 |
| - 'chakra.label': typeof import('@chakra-ui/vue-next')['CBox'] |
89 |
| - 'chakra.li': typeof import('@chakra-ui/vue-next')['CBox'] |
90 |
| - 'chakra.mark': typeof import('@chakra-ui/vue-next')['CBox'] |
91 |
| - 'chakra.main': typeof import('@chakra-ui/vue-next')['CBox'] |
92 |
| - 'chakra.nav': typeof import('@chakra-ui/vue-next')['CBox'] |
93 |
| - 'chakra.ol': typeof import('@chakra-ui/vue-next')['CBox'] |
94 |
| - 'chakra.p': typeof import('@chakra-ui/vue-next')['CBox'] |
95 |
| - 'chakra.path': typeof import('@chakra-ui/vue-next')['CBox'] |
96 |
| - 'chakra.pre': typeof import('@chakra-ui/vue-next')['CBox'] |
97 |
| - 'chakra.q': typeof import('@chakra-ui/vue-next')['CBox'] |
98 |
| - 'chakra.rect': typeof import('@chakra-ui/vue-next')['CBox'] |
99 |
| - 'chakra.s': typeof import('@chakra-ui/vue-next')['CBox'] |
100 |
| - 'chakra.svg': typeof import('@chakra-ui/vue-next')['CBox'] |
101 |
| - 'chakra.section': typeof import('@chakra-ui/vue-next')['CBox'] |
102 |
| - 'chakra.select': typeof import('@chakra-ui/vue-next')['CBox'] |
103 |
| - 'chakra.strong': typeof import('@chakra-ui/vue-next')['CBox'] |
104 |
| - 'chakra.small': typeof import('@chakra-ui/vue-next')['CBox'] |
105 |
| - 'chakra.span': typeof import('@chakra-ui/vue-next')['CBox'] |
106 |
| - 'chakra.sub': typeof import('@chakra-ui/vue-next')['CBox'] |
107 |
| - 'chakra.sup': typeof import('@chakra-ui/vue-next')['CBox'] |
108 |
| - 'chakra.table': typeof import('@chakra-ui/vue-next')['CBox'] |
109 |
| - 'chakra.tbody': typeof import('@chakra-ui/vue-next')['CBox'] |
110 |
| - 'chakra.td': typeof import('@chakra-ui/vue-next')['CBox'] |
111 |
| - 'chakra.textarea': typeof import('@chakra-ui/vue-next')['CBox'] |
112 |
| - 'chakra.tfoot': typeof import('@chakra-ui/vue-next')['CBox'] |
113 |
| - 'chakra.th': typeof import('@chakra-ui/vue-next')['CBox'] |
114 |
| - 'chakra.thead': typeof import('@chakra-ui/vue-next')['CBox'] |
115 |
| - 'chakra.tr': typeof import('@chakra-ui/vue-next')['CBox'] |
116 |
| - 'chakra.ul': typeof import('@chakra-ui/vue-next')['CBox'] |
117 |
| - } |
| 7 | + |
| 8 | +import { ChakraProps } from '@chakra-ui/vue-system' |
| 9 | +import { HTMLChakraProps } from '@chakra-ui/vue-system' |
| 10 | +import { VNodeChild, HTMLAttributes } from 'vue' |
| 11 | + |
| 12 | +export type JsxNode = VNodeChild | JSX.Element |
| 13 | + |
| 14 | +export interface SlotDirective { |
| 15 | + [name: string]: () => JsxNode |
118 | 16 | }
|
119 | 17 |
|
120 |
| -/** |
121 |
| - * Global component types for @@chakra-ui/vue-next1.0.0-alpha.4 |
122 |
| - * This is a generated file. Do not edit it's contents. |
123 |
| - * |
124 |
| - * This file was generated on 2021-06-22T09:21:16.557Z |
125 |
| - */ |
| 18 | +type JsxComponentCustomProps = { |
| 19 | + vModel?: unknown |
| 20 | + vModels?: unknown[] |
| 21 | + vCustom?: unknown[] |
| 22 | + vShow?: boolean |
| 23 | + vHtml?: JsxNode |
| 24 | + vSlots?: SlotDirective |
| 25 | +} & Omit<HTMLAttributes, 'innerHTML'> & { |
| 26 | + innerHTML?: JsxNode |
| 27 | + } & {} |
| 28 | + |
126 | 29 | declare module 'vue' {
|
| 30 | + /* Global component types for Volar auto-complete */ |
127 | 31 | export interface GlobalComponents {
|
128 | 32 | CAlert: typeof import('@chakra-ui/vue-next')['CAlert']
|
129 | 33 | CAlertTitle: typeof import('@chakra-ui/vue-next')['CAlertTitle']
|
@@ -234,4 +138,14 @@ declare module 'vue' {
|
234 | 138 | 'chakra.tr': typeof import('@chakra-ui/vue-next')['CBox']
|
235 | 139 | 'chakra.ul': typeof import('@chakra-ui/vue-next')['CBox']
|
236 | 140 | }
|
| 141 | + |
| 142 | + /* Component custom props types for JSX and TSX auto complete */ |
| 143 | + export interface ComponentCustomProps |
| 144 | + extends JsxComponentCustomProps, |
| 145 | + ChakraProps { |
| 146 | + onClick?: () => any |
| 147 | + vSlots?: { |
| 148 | + [eleName: string]: JSX.Element |
| 149 | + } |
| 150 | + } |
237 | 151 | }
|
0 commit comments