Skip to content

Commit

Permalink
chore(ui.config): rename popperArrow
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 27, 2023
1 parent 53b26b8 commit 339eaf6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/runtime/ui.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Data

const _popperArrowPresets = {
const _popperArrow = {
base: 'before:w-2 before:h-2',
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-800',
rounded: 'before:rounded-sm',
Expand All @@ -9,6 +7,8 @@ const _popperArrowPresets = {
placement: 'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'
}

// Data

export const table = {
wrapper: 'relative overflow-x-auto',
base: 'min-w-full table-fixed',
Expand Down Expand Up @@ -302,7 +302,7 @@ export const dropdown = {
strategy: 'fixed'
},
arrow: {
..._popperArrowPresets,
..._popperArrow,
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
background: 'before:bg-white dark:before:bg-gray-700'
}
Expand Down Expand Up @@ -756,7 +756,7 @@ export const selectMenu = {
selectedIcon: 'i-heroicons-check-20-solid'
},
arrow: {
..._popperArrowPresets,
..._popperArrow,
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
background: 'before:bg-white dark:before:bg-gray-700'
}
Expand Down Expand Up @@ -1216,7 +1216,7 @@ export const tooltip = {
popper: {
strategy: 'fixed'
},
arrow: _popperArrowPresets
arrow: _popperArrow
}

export const popover = {
Expand All @@ -1240,7 +1240,7 @@ export const popover = {
popper: {
strategy: 'fixed'
},
arrow: _popperArrowPresets
arrow: _popperArrow
}

export const contextMenu = {
Expand All @@ -1265,7 +1265,7 @@ export const contextMenu = {
placement: 'bottom-start',
scroll: false
},
arrow: _popperArrowPresets
arrow: _popperArrow
}

export const notification = {
Expand Down

1 comment on commit 339eaf6

@vercel
Copy link

@vercel vercel bot commented on 339eaf6 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.