112270d206
* 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
71 lines
1.2 KiB
TypeScript
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',
|
|
])
|
|
})
|