chore(ui.config): rename popperArrow

This commit is contained in:
Benjamin Canac
2023-10-27 20:43:37 +02:00
parent 53b26b8194
commit 339eaf69a5

View File

@@ -1,6 +1,4 @@
// Data const _popperArrow = {
const _popperArrowPresets = {
base: 'before:w-2 before:h-2', base: 'before:w-2 before:h-2',
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-800', ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-800',
rounded: 'before:rounded-sm', rounded: 'before:rounded-sm',
@@ -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' 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 = { export const table = {
wrapper: 'relative overflow-x-auto', wrapper: 'relative overflow-x-auto',
base: 'min-w-full table-fixed', base: 'min-w-full table-fixed',
@@ -302,7 +302,7 @@ export const dropdown = {
strategy: 'fixed' strategy: 'fixed'
}, },
arrow: { arrow: {
..._popperArrowPresets, ..._popperArrow,
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700', ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
background: 'before:bg-white dark:before:bg-gray-700' background: 'before:bg-white dark:before:bg-gray-700'
} }
@@ -756,7 +756,7 @@ export const selectMenu = {
selectedIcon: 'i-heroicons-check-20-solid' selectedIcon: 'i-heroicons-check-20-solid'
}, },
arrow: { arrow: {
..._popperArrowPresets, ..._popperArrow,
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700', ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
background: 'before:bg-white dark:before:bg-gray-700' background: 'before:bg-white dark:before:bg-gray-700'
} }
@@ -1216,7 +1216,7 @@ export const tooltip = {
popper: { popper: {
strategy: 'fixed' strategy: 'fixed'
}, },
arrow: _popperArrowPresets arrow: _popperArrow
} }
export const popover = { export const popover = {
@@ -1240,7 +1240,7 @@ export const popover = {
popper: { popper: {
strategy: 'fixed' strategy: 'fixed'
}, },
arrow: _popperArrowPresets arrow: _popperArrow
} }
export const contextMenu = { export const contextMenu = {
@@ -1265,7 +1265,7 @@ export const contextMenu = {
placement: 'bottom-start', placement: 'bottom-start',
scroll: false scroll: false
}, },
arrow: _popperArrowPresets arrow: _popperArrow
} }
export const notification = { export const notification = {