mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
chore(presets): remove nuxt
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
import defu from 'defu'
|
||||
import preset from './default'
|
||||
|
||||
const badge = {
|
||||
variant: {
|
||||
primary: 'u-bg-gray-800 u-text-white',
|
||||
secondary: 'u-bg-white u-text-gray-700'
|
||||
}
|
||||
}
|
||||
|
||||
const button = {
|
||||
variant: {
|
||||
primary: 'border border-transparent u-text-white u-bg-gray-800 hover:u-bg-gray-900 disabled:u-bg-gray-800 focus:ring-2 focus:ring-offset-2 focus:u-ring-gray-900',
|
||||
secondary: 'border u-border-gray-300 u-text-gray-700 u-bg-white hover:u-bg-gray-50 disabled:u-bg-white focus:ring-2 focus:ring-offset-2 focus:u-ring-gray-900',
|
||||
link: 'border border-transparent u-text-gray-900 hover:underline focus:underline'
|
||||
}
|
||||
}
|
||||
|
||||
const input = {
|
||||
appearance: {
|
||||
default: 'focus:ring-1 focus:u-ring-gray-900 focus:u-border-gray-900 border u-border-gray-300 rounded-md shadow-sm'
|
||||
}
|
||||
}
|
||||
|
||||
const textarea = {
|
||||
...input
|
||||
}
|
||||
|
||||
const select = {
|
||||
...input
|
||||
}
|
||||
|
||||
const selectCustom = {
|
||||
...input
|
||||
}
|
||||
|
||||
const radio = {
|
||||
base: 'h-4 w-4 u-text-gray-900 focus:ring-2 focus:ring-offset-2 focus:u-ring-gray-900 focus:ring-offset-white dark:focus:ring-offset-black u-border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed'
|
||||
}
|
||||
|
||||
const checkbox = {
|
||||
base: `${radio.base} rounded`
|
||||
}
|
||||
|
||||
const toggle = {
|
||||
base: 'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:u-ring-gray-900 focus:ring-offset-white dark:focus:ring-offset-black',
|
||||
active: 'u-bg-gray-800'
|
||||
}
|
||||
|
||||
const container = {
|
||||
constrained: 'max-w-6xl'
|
||||
}
|
||||
|
||||
export default defu({
|
||||
badge,
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
selectCustom,
|
||||
radio,
|
||||
checkbox,
|
||||
toggle,
|
||||
container
|
||||
}, preset)
|
||||
Reference in New Issue
Block a user