File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { ComponentResolver } from '../types'
2
+
3
+ const components = [
4
+ 'Dialog' ,
5
+ 'DialogDescription' ,
6
+ 'DialogOverlay' ,
7
+ 'DialogTitle' ,
8
+ 'Disclosure' ,
9
+ 'DisclosureButton' ,
10
+ 'DisclosurePanel' ,
11
+ 'FocusTrap' ,
12
+ 'Listbox' ,
13
+ 'ListboxButton' ,
14
+ 'ListboxLabel' ,
15
+ 'ListboxOption' ,
16
+ 'ListboxOptions' ,
17
+ 'Menu' ,
18
+ 'MenuButton' ,
19
+ 'MenuItem' ,
20
+ 'MenuItems' ,
21
+ 'Popover' ,
22
+ 'PopoverButton' ,
23
+ 'PopoverGroup' ,
24
+ 'PopoverOverlay' ,
25
+ 'PopoverPanel' ,
26
+ 'Portal' ,
27
+ 'PortalGroup' ,
28
+ 'RadioGroup' ,
29
+ 'RadioGroupDescription' ,
30
+ 'RadioGroupLabel' ,
31
+ 'RadioGroupOption' ,
32
+ 'Switch' ,
33
+ 'SwitchDescription' ,
34
+ 'SwitchGroup' ,
35
+ 'SwitchLabel' ,
36
+ 'TransitionChild' ,
37
+ 'TransitionRoot' ,
38
+ ]
39
+
40
+ /**
41
+ * Resolver for headlessui
42
+ *
43
+ * @link https://github.com/tailwindlabs/headlessui
44
+ */
45
+ export const HeadlessUiResolver = ( ) : ComponentResolver => ( name : string ) => {
46
+ if ( components . includes ( name ) )
47
+ return { importName : name , path : '@headlessui/vue' }
48
+ }
Original file line number Diff line number Diff line change 1
1
export * from './antdv'
2
2
export * from './element-plus'
3
+ export * from './headlessUi'
3
4
export * from './vant'
4
5
export * from './vuetify'
You can’t perform that action at this time.
0 commit comments