Skip to content

Commit

Permalink
chore: keep list sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 1, 2024
1 parent c145885 commit cafeb48
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
7 changes: 4 additions & 3 deletions src/core/resolvers/bootstrap-vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,29 @@ export interface BootstrapVueResolverOptions {
directives?: boolean
}

// @keep-sorted
const COMPONENT_ALIASES: Record<string, string> = {
BBtn: 'BButton',
BBtnClose: 'BButtonClose',
BBtnGroup: 'BButtonGroup',
BBtnToolbar: 'BButtonToolbar',
BCheck: 'BFormCheckbox',
BCheckGroup: 'BFormCheckboxGroup',
BCheckbox: 'BFormCheckbox',
BCheckboxGroup: 'BFormCheckboxGroup',
BCheckGroup: 'BFormCheckboxGroup',
BDatalist: 'BFormDatalist',
BDatepicker: 'BFormDatepicker',
BDd: 'BDropdown',
BDdDivider: 'BDropdownDivider',
BDdForm: 'BDropdownForm',
BDdGroup: 'BDropdownGroup',
BDdHeader: 'BDropdownHeader',
BDdItem: 'BDropdownItem',
BDdItemButton: 'BDropdownItemButton',
BDdItemBtn: 'BDropdownItemButton',
BDdItemButton: 'BDropdownItemButton',
BDdText: 'BDropdownText',
BDropdownItemBtn: 'BDropdownItemButton',
BFile: 'BFormFile',
BDatepicker: 'BFormDatepicker',
BInput: 'BFormInput',
BNavDd: 'BNavItemDropdown',
BNavDropdown: 'BNavItemDropdown',
Expand Down
11 changes: 6 additions & 5 deletions src/core/resolvers/headless-ui.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ComponentResolver } from '../../types'

// @keep-sorted
const components = [
'Combobox',
'ComboboxButton',
Expand All @@ -10,8 +11,8 @@ const components = [
'Dialog',
'DialogDescription',
'DialogOverlay',
'DialogTitle',
'DialogPanel',
'DialogTitle',
'Disclosure',
'DisclosureButton',
'DisclosurePanel',
Expand Down Expand Up @@ -40,13 +41,13 @@ const components = [
'SwitchDescription',
'SwitchGroup',
'SwitchLabel',
'TransitionChild',
'TransitionRoot',
'Tab',
'TabGroup',
'TabList',
'Tab',
'TabPanels',
'TabPanel',
'TabPanels',
'TransitionChild',
'TransitionRoot',
]

export interface HeadlessUiResolverOptions {
Expand Down
13 changes: 7 additions & 6 deletions src/core/resolvers/idux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,27 @@ import { compare } from 'compare-versions'
import type { ComponentResolver } from '../../types'
import { getPkgVersion, kebabCase } from '../utils'

// @keep-sorted
const specialComponents: Record<string, string> = {
CdkVirtualScroll: 'scroll',
CdkClickOutside: 'click-outside',
CdkDraggable: 'drag-drop',
CdkResizable: 'resize',
CdkResizableHandle: 'resize',
CdkResizeObserver: 'resize',
CdkVirtualScroll: 'scroll',
IxAutoComplete: 'auto-complete',
IxBackTop: 'back-top',
IxCol: 'grid',
IxDatePicker: 'date-picker',
IxDateRangePicker: 'date-picker',
IxCol: 'grid',
IxRow: 'grid',
IxInputNumber: 'input-number',
IxLoadingBar: 'loading-bar',
IxLoadingBarProvider: 'loading-bar',
IxRow: 'grid',
IxTab: 'tabs',
IxTreeSelect: 'tree-select',
IxTimePicker: 'time-picker',
IxTimeRangePicker: 'time-picker',
IxLoadingBar: 'loading-bar',
IxLoadingBarProvider: 'loading-bar',
IxTreeSelect: 'tree-select',
}

export interface IduxResolverOptions {
Expand Down
1 change: 1 addition & 0 deletions src/core/resolvers/ionic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { ComponentResolver } from '../../types'
* source: https://github.com/nuxt-modules/ionic/blob/main/src/imports.ts
* @author @danielroe
*/
// @keep-sorted
export const IonicBuiltInComponents = [
'IonAccordion',
'IonAccordionGroup',
Expand Down
3 changes: 2 additions & 1 deletion src/core/resolvers/prime-vue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ComponentResolver, SideEffectsInfo } from '../../types'

// @keep-sorted
const components = [
'Accordion',
'AccordionTab',
Expand Down Expand Up @@ -40,8 +41,8 @@ const components = [
'FullCalendar',
'Galleria',
'IconField',
'Image',
'IconField',
'Image',
'InlineMessage',
'Inplace',
'InputGroup',
Expand Down

0 comments on commit cafeb48

Please sign in to comment.