chore(Dropdown): support preset

This commit is contained in:
Benjamin Canac
2022-02-02 12:15:01 +01:00
parent af566ab1fa
commit d724f87654
3 changed files with 30 additions and 14 deletions

View File

@@ -278,6 +278,19 @@ const alertDialog = {
description: 'text-sm text-gray-500'
}
const dropdown = {
wrapper: 'relative inline-block text-left',
container: 'w-48 z-20',
base: 'u-bg-white divide-y u-divide-gray-100 rounded-md ring-1 ring-black ring-opacity-5',
item: {
base: 'group flex items-center px-4 py-2 text-sm w-full',
active: 'u-bg-gray-100 u-text-gray-900',
inactive: 'u-text-gray-700',
disabled: 'cursor-not-allowed opacity-50',
icon: 'mr-3 h-5 w-5 u-text-gray-400 group-hover:u-text-gray-500'
}
}
export default {
card,
button,
@@ -291,5 +304,6 @@ export default {
container,
toggle,
verticalNavigation,
alertDialog
alertDialog,
dropdown
}