import { defineSlotRecipe } from '@pandacss/dev' export const listRecipe = defineSlotRecipe({ className : 'list', slots: ['list', 'row', 'col'], base: { list: { display: 'flex', flexDirection: 'column', fontSize: 'token(fontSizes.md)', '& > li:not(:last-child)': { position: 'relative', '&:after': { content: '""', position: 'absolute', // Separator across the full width of the list. It used to use // insetInline: var(--radius-box), which left 8px without a border on each // side and made each row look like a separate pill. insetInline: '0', bottom: '0', borderBottom: 'var(--border, 1px) solid color-mix(in oklab, token(colors.base-content) 5%, transparent)', }, }, // Sortable mode (wraps SortableJS, see src/components/List/sortable.js): // SortableJS applies ghost/chosen/drag to the row during the drag and the // bridge marks the