Files
headlessui/packages/@headlessui-vue/src/index.test.ts
T
Robin Malfait b4a4e0b307 Add Dialog.Backdrop and Dialog.Panel components (#1333)
* implement `Dialog.Backdrop` and `Dialog.Panel`

* cleanup TypeScript warnings

* update changelog
2022-04-14 17:15:43 +02:00

81 lines
1.4 KiB
TypeScript

import * as HeadlessUI from './index'
/**
* Looks a bit of a silly test, however this ensures that we don't accidentally expose something to
* the outside world that we didn't want!
*/
it('should expose the correct components', () => {
expect(Object.keys(HeadlessUI)).toEqual([
// Combobox
'Combobox',
'ComboboxLabel',
'ComboboxButton',
'ComboboxInput',
'ComboboxOptions',
'ComboboxOption',
// Dialog
'Dialog',
'DialogOverlay',
'DialogBackdrop',
'DialogPanel',
'DialogTitle',
'DialogDescription',
// Disclosure
'Disclosure',
'DisclosureButton',
'DisclosurePanel',
// FocusTrap
'FocusTrap',
// Listbox
'Listbox',
'ListboxLabel',
'ListboxButton',
'ListboxOptions',
'ListboxOption',
// Menu
'Menu',
'MenuButton',
'MenuItems',
'MenuItem',
// Popover
'Popover',
'PopoverButton',
'PopoverOverlay',
'PopoverPanel',
'PopoverGroup',
// Portal
'Portal',
'PortalGroup',
// RadioGroup
'RadioGroup',
'RadioGroupOption',
'RadioGroupLabel',
'RadioGroupDescription',
// Switch
'SwitchGroup',
'Switch',
'SwitchLabel',
'SwitchDescription',
// Tabs
'TabGroup',
'TabList',
'Tab',
'TabPanels',
'TabPanel',
// Transition
'TransitionChild',
'TransitionRoot',
])
})