first commit
This commit is contained in:
83
resources/css/presets/aura/rating/index.js
Normal file
83
resources/css/presets/aura/rating/index.js
Normal file
@@ -0,0 +1,83 @@
|
||||
export default {
|
||||
root: ({ props }) => ({
|
||||
class: [
|
||||
'relative',
|
||||
|
||||
// Flex & Alignment
|
||||
'flex items-center',
|
||||
'gap-1',
|
||||
|
||||
// Misc
|
||||
{
|
||||
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
||||
}
|
||||
]
|
||||
}),
|
||||
cancelitem: ({ context }) => ({
|
||||
class: [
|
||||
// Flex & Alignment
|
||||
'inline-flex items-center',
|
||||
|
||||
//State
|
||||
{
|
||||
'outline-none ring-2 ring-primary-500 dark:ring-primary-400': context.focused
|
||||
},
|
||||
|
||||
// Misc
|
||||
'cursor-pointer'
|
||||
]
|
||||
}),
|
||||
cancelicon: {
|
||||
class: [
|
||||
// Size
|
||||
'w-5 h-5',
|
||||
|
||||
// Color
|
||||
'text-red-500 dark:text-red-400'
|
||||
]
|
||||
},
|
||||
item: ({ props, context }) => ({
|
||||
class: [
|
||||
// Flex & Alignment
|
||||
'inline-flex items-center',
|
||||
|
||||
// State
|
||||
{
|
||||
'outline-none ring-2 ring-primary-500 dark:ring-primary-400': context.focused
|
||||
},
|
||||
|
||||
// Misc
|
||||
{
|
||||
'cursor-pointer': !props.readonly,
|
||||
'cursor-default': props.readonly
|
||||
}
|
||||
]
|
||||
}),
|
||||
officon: ({ props }) => ({
|
||||
class: [
|
||||
// Size
|
||||
'w-5 h-5',
|
||||
|
||||
// Color
|
||||
'text-surface-700 dark:text-surface-0/70',
|
||||
|
||||
// State
|
||||
{ 'hover:text-primary-500 dark:hover:text-primary-400': !props.readonly },
|
||||
|
||||
// Transition
|
||||
'transition duration-200 ease-in'
|
||||
]
|
||||
}),
|
||||
onicon: ({ props }) => ({
|
||||
class: [
|
||||
// Size
|
||||
'w-5 h-5',
|
||||
|
||||
// Color
|
||||
'text-primary-500 dark:text-primary-400',
|
||||
|
||||
// Transition
|
||||
'transition duration-200 ease-in'
|
||||
]
|
||||
})
|
||||
};
|
Reference in New Issue
Block a user