Files
headlessui/packages/@headlessui-vue/src/index.test.ts
T
Robin Malfait 112270d206 Change Tabs api (#698)
* Change Tabs API (React)

| Before        | After        |
| ------------- | ------------ |
| `Tabs`        | `Tab.Group`  |
| `Tabs.List`   | `Tab.List`   |
| `Tabs.Tab`    | `Tab`        |
| `Tabs.Panels` | `Tab.Panels` |
| `Tabs.Panel`  | `Tab.Panel`  |

* Change Tabs API (Vue)

| Before       | After       |
| ------------ | ----------- |
| `Tabs`       | `TabGroup`  |
| `TabsList`   | `TabList`   |
| `TabsTab`    | `Tab`       |
| `TabsPanels` | `TabPanels` |
| `TabsPanel`  | `TabPanel`  |

* change playground example for Tabs (React)

* update changelog
2021-07-28 11:30:34 +02:00

71 lines
1.2 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([
// Dialog
'Dialog',
'DialogOverlay',
'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',
])
})