first commit
This commit is contained in:
70
resources/css/presets/aura/accordion/index.js
Normal file
70
resources/css/presets/aura/accordion/index.js
Normal file
@ -0,0 +1,70 @@
|
||||
export default {
|
||||
accordiontab: {
|
||||
header: ({ props }) => ({
|
||||
class: [
|
||||
// Sizing
|
||||
'pt-6 pb-0',
|
||||
'mt-6',
|
||||
|
||||
// Shape
|
||||
'border-x-0 border-b-0',
|
||||
|
||||
// Color
|
||||
'border border-surface-200 dark:border-surface-700',
|
||||
|
||||
// State
|
||||
{ 'select-none pointer-events-none cursor-default opacity-60': props?.disabled }
|
||||
]
|
||||
}),
|
||||
headerAction: ({ context }) => ({
|
||||
class: [
|
||||
//Font
|
||||
'font-semibold',
|
||||
'leading-7',
|
||||
|
||||
// Alignments
|
||||
'flex items-center justify-between flex-row-reverse',
|
||||
'relative',
|
||||
|
||||
// Shape
|
||||
'rounded-md',
|
||||
|
||||
// Color
|
||||
'bg-transparent',
|
||||
'text-surface-900 dark:text-surface-0',
|
||||
|
||||
// States
|
||||
'focus:outline-none focus:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-600 ring-inset dark:focus-visible:ring-primary-500', // Focus
|
||||
|
||||
// Misc
|
||||
'cursor-pointer no-underline select-none'
|
||||
]
|
||||
}),
|
||||
headerIcon: {
|
||||
class: 'inline-block ml-2'
|
||||
},
|
||||
headerTitle: {
|
||||
class: 'leading-7'
|
||||
},
|
||||
content: {
|
||||
class: [
|
||||
// Font
|
||||
'leading-7',
|
||||
|
||||
// Spacing
|
||||
'pr-12 pt-2',
|
||||
|
||||
// Color
|
||||
'text-surface-600 dark:text-surface-0/70'
|
||||
]
|
||||
},
|
||||
transition: {
|
||||
enterFromClass: 'max-h-0',
|
||||
enterActiveClass: 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
|
||||
enterToClass: 'max-h-[1000px]',
|
||||
leaveFromClass: 'max-h-[1000px]',
|
||||
leaveActiveClass: 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
|
||||
leaveToClass: 'max-h-0'
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user