2023-08-03 14:55:05 +00:00
|
|
|
export const TRANSITIONS = {
|
|
|
|
toggleable: {
|
|
|
|
enterFromClass: 'max-h-0',
|
|
|
|
enterActiveClass: 'overflow-hidden transition-all duration-500 ease-in-out',
|
|
|
|
enterToClass: 'max-h-40 ',
|
|
|
|
leaveFromClass: 'max-h-40',
|
|
|
|
leaveActiveClass: 'overflow-hidden transition-all duration-500 ease-in',
|
|
|
|
leaveToClass: 'max-h-0'
|
|
|
|
},
|
|
|
|
overlay: {
|
|
|
|
enterFromClass: 'opacity-0 scale-75',
|
|
|
|
enterActiveClass: 'transition-transform transition-opacity duration-150 ease-in',
|
|
|
|
leaveActiveClass: 'transition-opacity duration-150 ease-linear',
|
|
|
|
leaveToClass: 'opacity-0'
|
|
|
|
}
|
|
|
|
};
|
2023-08-05 01:36:07 +00:00
|
|
|
|
2023-07-25 11:53:01 +00:00
|
|
|
export default {
|
2023-08-03 14:55:05 +00:00
|
|
|
global: {
|
|
|
|
css: `
|
|
|
|
*[data-pd-ripple="true"]{
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
span[data-p-ink-active="true"]{
|
|
|
|
animation: ripple 0.4s linear;
|
|
|
|
}
|
|
|
|
@keyframes ripple {
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(2.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-spinner-circle {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
|
|
|
|
stroke-linecap: round;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes p-progress-spinner-dash{
|
|
|
|
0% {
|
|
|
|
stroke-dasharray: 1, 200;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -35px;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -124px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes p-progress-spinner-color {
|
|
|
|
100%, 0% {
|
|
|
|
stroke: #ff5757;
|
|
|
|
}
|
|
|
|
40% {
|
|
|
|
stroke: #696cff;
|
|
|
|
}
|
|
|
|
66% {
|
|
|
|
stroke: #1ea97c;
|
|
|
|
}
|
|
|
|
80%, 90% {
|
|
|
|
stroke: #cc8925;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar-value-animate::after {
|
|
|
|
will-change: left, right;
|
|
|
|
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
|
|
}
|
|
|
|
.progressbar-value-animate::before {
|
|
|
|
will-change: left, right;
|
|
|
|
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
|
|
}
|
|
|
|
@keyframes p-progressbar-indeterminate-anim {
|
|
|
|
0% {
|
|
|
|
left: -35%;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
60% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
directives: {
|
|
|
|
ripple: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-08-03 14:55:05 +00:00
|
|
|
class: ['block absolute bg-white/50 rounded-full pointer-events-none'],
|
|
|
|
style: 'transform: scale(0)'
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-08-01 06:39:02 +00:00
|
|
|
},
|
|
|
|
badge: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 origin-top-right m-0',
|
|
|
|
'text-xs leading-6 flex items-center justify-center',
|
|
|
|
'text-center text-white font-bold',
|
|
|
|
{
|
|
|
|
'rounded-full p-0': context.nogutter || context.dot,
|
|
|
|
'rounded-[10px] px-2': !context.nogutter && !context.dot,
|
|
|
|
'min-w-[0.5rem] w-2 h-2': context.dot,
|
|
|
|
'min-w-[1.5rem] h-6': !context.dot
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'bg-blue-500 ': context.info || (!context.info && !context.success && !context.warning && !context.danger),
|
|
|
|
'bg-green-500 ': context.success,
|
|
|
|
'bg-orange-500 ': context.warning,
|
|
|
|
'bg-red-500 ': context.danger
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'absolute shadow-md',
|
|
|
|
{
|
|
|
|
'py-0 px-1': context?.right || context?.left || (!context?.right && !context?.left && !context?.top && !context?.bottom),
|
|
|
|
'py-1 px-0': context?.top || context?.bottom
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
arrow: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'absolute w-0 h-0 border-transparent border-solid',
|
|
|
|
{
|
|
|
|
'-m-t-1 border-y-[0.25rem] border-r-[0.25rem] border-l-0 border-r-gray-600': context?.right || (!context?.right && !context?.left && !context?.top && !context?.bottom),
|
|
|
|
'-m-t-1 border-y-[0.25rem] border-l-[0.25rem] border-r-0 border-l-gray-600': context?.left,
|
|
|
|
'-m-l-1 border-x-[0.25rem] border-t-[0.25rem] border-b-0 border-t-gray-600': context?.top,
|
|
|
|
'-m-l-1 border-x-[0.25rem] border-b-[0.25rem] border-t-0 border-b-gray-600': context?.bottom
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
text: {
|
|
|
|
class: 'p-3 bg-gray-600 text-white rounded-md whitespace-pre-line break-words'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
//PANELS
|
|
|
|
panel: {
|
|
|
|
header: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-between', // flex and alignments
|
|
|
|
'border border-gray-300 bg-gray-100 text-gray-700 rounded-tl-lg rounded-tr-lg', // borders and colors
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80', // Dark mode
|
|
|
|
{ 'p-5': !props.toggleable, 'py-3 px-5': props.toggleable } // condition
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
title: {
|
|
|
|
class: 'leading-none font-bold'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
toggler: {
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center overflow-hidden relative no-underline', // alignments
|
|
|
|
'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out', // widths, borders, and transitions
|
|
|
|
'hover:text-gray-900 hover:border-transparent hover:bg-gray-200 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // hover
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]' // focus
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
togglerIcon: {
|
|
|
|
class: 'inline-block'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
content: {
|
|
|
|
class: [
|
|
|
|
'p-5 border border-gray-300 bg-white text-gray-700 border-t-0 last:rounded-br-lg last:rounded-bl-lg',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode
|
2023-08-03 14:55:05 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
transition: TRANSITIONS.toggleable
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
accordion: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'mb-1'
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
accordiontab: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'mb-1'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
header: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{ 'select-none pointer-events-none cursor-default opacity-60': props?.disabled } // Condition
|
|
|
|
]
|
|
|
|
}),
|
2023-08-01 06:39:02 +00:00
|
|
|
headerAction: ({ context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'flex items-center cursor-pointer relative no-underline select-none', // Alignments
|
|
|
|
'p-5 transition duration-200 ease-in-out rounded-t-md font-bold transition-shadow duration-200', // Padding and transition
|
|
|
|
'border border-gray-300 bg-gray-100 text-gray-600', // Borders and colors
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Dark mode
|
|
|
|
'hover:border-gray-300 hover:bg-gray-200 hover:text-gray-800', // Hover
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)]', // Focus
|
2023-08-01 06:39:02 +00:00
|
|
|
{ 'rounded-br-md rounded-bl-md': !context.active, 'rounded-br-0 rounded-bl-0 text-gray-800': context.active } // Condition
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
headerIcon: {
|
|
|
|
class: 'inline-block mr-2'
|
|
|
|
},
|
|
|
|
headerTitle: {
|
|
|
|
class: 'leading-none'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
content: {
|
|
|
|
class: [
|
|
|
|
'p-5 border border-gray-300 bg-white text-gray-700 border-t-0 rounded-tl-none rounded-tr-none rounded-br-lg rounded-bl-lg',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.toggleable
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
card: {
|
|
|
|
root: {
|
|
|
|
class: [
|
|
|
|
'bg-white text-gray-700 shadow-md rounded-md', // Background, text color, box shadow, and border radius.
|
|
|
|
'dark:bg-gray-900 dark:text-white ' //dark
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
body: {
|
|
|
|
class: 'p-5'
|
|
|
|
}, // Padding.
|
|
|
|
title: {
|
|
|
|
class: 'text-2xl font-bold mb-2' // Font size, font weight, and margin bottom.
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
subtitle: {
|
|
|
|
class: [
|
|
|
|
'font-normal mb-2 text-gray-600', // Font weight, margin bottom, and text color.
|
|
|
|
'dark:text-white/60 ' //dark
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
content: {
|
|
|
|
class: 'py-5' // Vertical padding.
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
class: 'pt-5' // Top padding.
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
divider: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex relative', // alignments.
|
|
|
|
{
|
|
|
|
'w-full my-5 mx-0 py-0 px-5 before:block before:left-0 before:absolute before:top-1/2 before:w-full before:border-t before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'horizontal', // Padding and borders for horizontal layout.
|
2023-08-03 08:29:44 +00:00
|
|
|
'min-h-full mx-4 md:mx-5 py-5 before:block before:min-h-full before:absolute before:left-1/2 before:top-0 before:transform before:-translate-x-1/2 before:border-l before:border-gray-300 before:dark:border-blue-900/40':
|
2023-07-25 11:53:01 +00:00
|
|
|
props.layout == 'vertical' // Padding and borders for vertical layout.
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'before:border-solid': props.type == 'solid',
|
|
|
|
'before:border-dotted': props.type == 'dotted',
|
|
|
|
'before:border-dashed': props.type == 'dashed'
|
|
|
|
} // Border type condition.
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
content: {
|
|
|
|
class: 'px-1 bg-white z-10 dark:bg-gray-900' // Padding and background color.
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
fieldset: {
|
|
|
|
root: {
|
|
|
|
class: [
|
|
|
|
'border border-gray-300 bg-white text-gray-700 rounded-md block mx-2 my-0.5 pl-4 pr-5 inline-size-min', // Borders, background, text color, spacing, and inline size.
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //dark
|
|
|
|
]
|
|
|
|
},
|
|
|
|
legend: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'border border-gray-300 text-gray-700 bg-gray-50 font-bold rounded-md',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ', //dark
|
|
|
|
{
|
|
|
|
'p-0 transition-none hover:bg-gray-100 hover:border-gray-300 hover:text-gray-900 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable,
|
|
|
|
'p-5': !props.toggleable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
toggler: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
{
|
|
|
|
'p-5 text-gray-700 rounded-md transition-none cursor-pointer overflow-hidden relative select-none hover:text-gray-900 focus:focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:text-white/80 dark:hover:text-white/80 dark:hover:bg-gray-800/60 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]':
|
|
|
|
props.toggleable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
togglerIcon: {
|
|
|
|
class: 'mr-2 inline-block' // Margin and display style.
|
|
|
|
},
|
|
|
|
legendTitle: {
|
|
|
|
class: 'flex items-center justify-center leading-none' // alignments, and leading style.
|
|
|
|
},
|
|
|
|
content: {
|
|
|
|
class: 'p-5' // Padding.
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.toggleable
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
scrollpanel: {
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'overflow-hidden relative float-left h-full w-full z-[1]'
|
|
|
|
},
|
|
|
|
content: {
|
2023-10-15 15:55:27 +00:00
|
|
|
class: 'box-border h-[calc(100%+18px)] overflow-scroll pr-[18px] pb-[18px] pl-0 pt-0 relative w-[calc(100%+18px)] [&::-webkit-scrollbar]:hidden'
|
2023-08-10 23:36:23 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
barX: {
|
2023-08-01 06:39:02 +00:00
|
|
|
class: ['relative bg-gray-100 invisible rounded cursor-pointer h-[9px] bottom-0 z-[2]', 'transition duration-[250ms] ease-linear']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
barY: {
|
2023-08-01 06:39:02 +00:00
|
|
|
class: ['relative bg-gray-100 rounded cursor-pointer w-[9px] top-0 z-[2]', 'transition duration-[250ms] ease-linear']
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
tabview: {
|
2023-08-05 11:04:05 +00:00
|
|
|
navContainer: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'relative', // Relative positioning.
|
|
|
|
{ 'overflow-hidden': props.scrollable } // Overflow condition.
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
navContent: {
|
|
|
|
class: 'overflow-y-hidden overscroll-contain overscroll-auto scroll-smooth [&::-webkit-scrollbar]:hidden' // Overflow and scrollbar styles.
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
previousButton: {
|
2023-10-18 03:08:34 +00:00
|
|
|
class: ['h-full flex items-center justify-center !absolute top-0 z-20', 'left-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ]'] // Flex and absolute positioning styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
nextButton: {
|
2023-10-18 03:08:34 +00:00
|
|
|
class: ['h-full flex items-center justify-center !absolute top-0 z-20', 'right-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 '] // Flex and absolute positioning styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
nav: {
|
2023-10-18 03:08:34 +00:00
|
|
|
class: ['flex flex-1 list-none m-0 p-0', 'bg-transparent border border-gray-300 border-0 border-b-2', 'dark:border-blue-900/40 dark:text-white/80 '] // Flex, list, margin, padding, and border styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
tabpanel: {
|
|
|
|
header: ({ props }) => ({
|
2023-10-15 15:55:27 +00:00
|
|
|
class: ['mr-0', { 'cursor-default pointer-events-none select-none select-none opacity-60': props?.disabled }] // Margin and condition-based styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-01 06:39:02 +00:00
|
|
|
headerAction: ({ parent, context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'items-center cursor-pointer flex overflow-hidden relative select-none text-decoration-none select-none', // Flex and overflow styles.
|
2023-10-18 03:08:34 +00:00
|
|
|
'border-b-2 p-5 font-bold rounded-t-md transition-shadow duration-200 m-0', // Border, padding, font, and transition styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
'transition-colors duration-200', // Transition duration style.
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Focus styles.
|
|
|
|
{
|
|
|
|
'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80':
|
2023-08-01 06:39:02 +00:00
|
|
|
parent.state.d_activeIndex !== context.index, // Condition-based hover styles.
|
|
|
|
'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': parent.state.d_activeIndex === context.index // Condition-based active styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
style: 'margin-bottom:-2px' // Negative margin style.
|
|
|
|
}),
|
|
|
|
headerTitle: {
|
|
|
|
class: ['leading-none whitespace-nowrap'] // Leading and whitespace styles.
|
|
|
|
},
|
|
|
|
content: {
|
2023-10-18 03:08:34 +00:00
|
|
|
class: ['bg-white p-5 border-0 text-gray-700 rounded-bl-md rounded-br-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80'] // Background, padding, border, and text styles.
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
splitter: {
|
2023-08-03 14:55:05 +00:00
|
|
|
root: ({ context }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'bg-white dark:bg-gray-900 rounded-lg text-gray-700 dark:text-white/80',
|
|
|
|
{
|
|
|
|
'border border-solid border-gray-300 dark:border-blue-900/40': !context.nested
|
|
|
|
}
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
gutter: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'flex items-center justify-center shrink-0',
|
|
|
|
'transition-all duration-200 bg-gray-100 dark:bg-gray-800',
|
|
|
|
{
|
|
|
|
'cursor-col-resize': props.layout == 'horizontal',
|
|
|
|
'cursor-row-resize': props.layout !== 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
gutterhandler: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'bg-gray-300 dark:bg-gray-600 transition-all duration-200',
|
|
|
|
{
|
|
|
|
'h-7': props.layout == 'horizontal',
|
|
|
|
'w-7 h-2': props.layout !== 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
})
|
|
|
|
},
|
2023-10-08 13:14:08 +00:00
|
|
|
splitterpanel: {
|
|
|
|
root: {
|
|
|
|
class: 'flex grow'
|
|
|
|
}
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
dialog: {
|
2023-08-03 14:55:05 +00:00
|
|
|
root: ({ state }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'rounded-lg shadow-lg border-0',
|
|
|
|
'max-h-90 transform scale-100',
|
|
|
|
'm-0 w-[50vw]',
|
|
|
|
'dark:border dark:border-blue-900/40',
|
|
|
|
{
|
|
|
|
'transition-none transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': state.maximized
|
|
|
|
}
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
header: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['flex items-center justify-between shrink-0', 'bg-white text-gray-800 border-t-0 rounded-tl-lg rounded-tr-lg p-6', 'dark:bg-gray-900 dark:text-white/80']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
headerTitle: {
|
|
|
|
class: 'font-bold text-lg'
|
|
|
|
},
|
|
|
|
headerIcons: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
closeButton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0',
|
|
|
|
'hover:text-gray-700 hover:border-transparent hover:bg-gray-200',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus
|
|
|
|
'dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
closeButtonIcon: {
|
|
|
|
class: 'w-4 h-4 inline-block'
|
|
|
|
},
|
2023-08-18 12:15:49 +00:00
|
|
|
content: ({ state, instance }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'overflow-y-auto',
|
|
|
|
'bg-white text-gray-700 px-6 pb-8 pt-0',
|
2023-08-18 12:15:49 +00:00
|
|
|
,
|
|
|
|
'dark:bg-gray-900 dark:text-white/80',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
grow: state.maximized
|
2023-08-18 12:15:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'rounded-bl-lg rounded-br-lg': !instance.$slots.footer
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
footer: {
|
2023-10-18 02:26:47 +00:00
|
|
|
class: ['flex gap-2 shrink-0 justify-end align-center', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
mask: ({ props }) => ({
|
|
|
|
class: ['transition duration-200', { 'bg-black/40': props.modal }]
|
|
|
|
}),
|
|
|
|
transition: ({ props }) => {
|
|
|
|
return props.position === 'top'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0',
|
|
|
|
enterActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveToClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'bottom'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'opacity-0 scale-75 translate-y-full',
|
|
|
|
enterActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveToClass: 'opacity-0 scale-75 translate-x-0 translate-y-full translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'left' || props.position === 'topleft' || props.position === 'bottomleft'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0',
|
|
|
|
enterActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveToClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'right' || props.position === 'topright' || props.position === 'bottomright'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0',
|
|
|
|
enterActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveToClass: 'opacity-0 scale-75 opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0'
|
|
|
|
}
|
|
|
|
: {
|
|
|
|
enterFromClass: 'opacity-0 scale-75',
|
|
|
|
enterActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-200 ease-out',
|
|
|
|
leaveToClass: 'opacity-0 scale-75'
|
|
|
|
};
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
confirmpopup: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'bg-white text-gray-700 border-0 rounded-md shadow-lg',
|
|
|
|
'z-40 transform origin-center',
|
2023-08-03 14:55:05 +00:00
|
|
|
'mt-3 absolute left-0 top-0',
|
|
|
|
'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900',
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
content: {
|
|
|
|
class: 'p-5 items-center flex'
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
class: 'text-2xl'
|
|
|
|
},
|
|
|
|
message: {
|
|
|
|
class: 'ml-4'
|
|
|
|
},
|
|
|
|
footer: {
|
2023-10-18 02:26:47 +00:00
|
|
|
class: 'flex gap-2 justify-end align-center text-right px-5 py-5 pt-0'
|
2023-08-10 23:36:23 +00:00
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
overlaypanel: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'bg-white text-gray-700 border-0 rounded-md shadow-lg',
|
|
|
|
'z-40 transform origin-center',
|
2023-10-18 02:26:47 +00:00
|
|
|
'absolute left-0 top-0 mt-3',
|
2023-08-03 14:55:05 +00:00
|
|
|
'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900',
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
content: {
|
|
|
|
class: 'p-5 items-center flex'
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
sidebar: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
2023-08-15 12:26:49 +00:00
|
|
|
'flex flex-col pointer-events-auto relative transition-transform duration-300',
|
2023-07-25 11:53:01 +00:00
|
|
|
'bg-white text-gray-700 border-0 shadow-lg',
|
2023-08-03 14:55:05 +00:00
|
|
|
{
|
|
|
|
'!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full',
|
|
|
|
'h-full w-80': props.position == 'left' || props.position == 'right',
|
|
|
|
'h-40 w-full': props.position == 'top' || props.position == 'bottom'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
header: {
|
|
|
|
class: ['flex items-center justify-end', 'p-5']
|
|
|
|
},
|
|
|
|
closeButton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0',
|
|
|
|
'hover:text-gray-700 hover:border-transparent hover:bg-gray-200',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus
|
|
|
|
'dark:hover:text-white/80 dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
closeButtonIcon: {
|
|
|
|
class: 'w-4 h-4 inline-block'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
content: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['p-5 pt-0 h-full w-full', 'grow overflow-y-auto']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-18 12:14:41 +00:00
|
|
|
mask: ({ props }) => ({
|
|
|
|
class: ['flex pointer-events-auto', 'transition duration-200 z-20 transition-colors', { 'bg-black/40': props.modal }]
|
|
|
|
}),
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: ({ props }) => {
|
|
|
|
return props.position === 'top'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'translate-x-0 -translate-y-full translate-z-0',
|
|
|
|
leaveToClass: 'translate-x-0 -translate-y-full translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'bottom'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'translate-x-0 translate-y-full translate-z-0',
|
|
|
|
leaveToClass: 'translate-x-0 translate-y-full translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'left'
|
|
|
|
? {
|
|
|
|
enterFromClass: '-translate-x-full translate-y-0 translate-z-0',
|
|
|
|
leaveToClass: '-translate-x-full translate-y-0 translate-z-0'
|
|
|
|
}
|
|
|
|
: props.position === 'right'
|
|
|
|
? {
|
|
|
|
enterFromClass: 'translate-x-full translate-y-0 translate-z-0',
|
2023-08-15 12:26:49 +00:00
|
|
|
leaveToClass: 'translate-x-full translate-y-0 translate-z-0'
|
2023-08-03 14:55:05 +00:00
|
|
|
}
|
|
|
|
: {
|
|
|
|
enterFromClass: 'opacity-0',
|
|
|
|
enterActiveClass: 'transition-opacity duration-400 ease-in',
|
|
|
|
leaveActiveClass: 'transition-opacity duration-400 ease-in',
|
|
|
|
leaveToClass: 'opacity-0'
|
|
|
|
};
|
2023-08-03 08:06:31 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
toolbar: {
|
|
|
|
root: {
|
|
|
|
class: ['flex items-center justify-between flex-wrap', 'bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-blue-900/40 p-5 rounded-md gap-2']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
start: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
},
|
|
|
|
center: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
},
|
|
|
|
end: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
//UPLOAD
|
|
|
|
fileupload: {
|
2023-08-10 23:36:23 +00:00
|
|
|
input: {
|
|
|
|
class: 'hidden'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
buttonbar: {
|
|
|
|
class: ['flex flex-wrap', 'bg-gray-50 dark:bg-gray-800 p-5 border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-tr-lg rounded-tl-lg gap-2 border-b-0']
|
|
|
|
},
|
|
|
|
chooseButton: {
|
|
|
|
class: ['text-white bg-blue-500 border border-blue-500 p-3 px-5 rounded-md text-base', 'overflow-hidden relative']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
chooseIcon: {
|
|
|
|
class: 'mr-2 inline-block'
|
|
|
|
},
|
|
|
|
chooseButtonLabel: {
|
|
|
|
class: 'flex-1 font-bold'
|
|
|
|
},
|
2023-08-02 15:29:54 +00:00
|
|
|
uploadbutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-08-02 15:29:54 +00:00
|
|
|
},
|
|
|
|
cancelbutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-08-02 15:29:54 +00:00
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
content: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['relative', 'bg-white dark:bg-gray-900 p-8 border border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-b-lg']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
file: {
|
|
|
|
class: ['flex items-center flex-wrap', 'p-4 border border-gray-300 dark:border-blue-900/40 rounded gap-2 mb-2', 'last:mb-0']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
thumbnail: {
|
|
|
|
class: 'shrink-0'
|
|
|
|
},
|
|
|
|
fileName: {
|
|
|
|
class: 'mb-2'
|
|
|
|
},
|
|
|
|
fileSize: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
|
|
|
uploadicon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
//Messages
|
|
|
|
message: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'my-4 rounded-md',
|
|
|
|
{
|
|
|
|
'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.severity == 'info',
|
|
|
|
'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.severity == 'success',
|
|
|
|
'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.severity == 'warn',
|
|
|
|
'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.severity == 'error'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'flex items-center py-5 px-7'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
icon: {
|
|
|
|
class: ['w-6 h-6', 'text-lg mr-2']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
text: {
|
|
|
|
class: 'text-base font-normal'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
button: {
|
|
|
|
class: ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30']
|
2023-08-07 10:35:43 +00:00
|
|
|
},
|
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0',
|
|
|
|
enterActiveClass: 'transition-opacity duration-300',
|
|
|
|
leaveFromClass: 'max-h-40',
|
|
|
|
leaveActiveClass: 'overflow-hidden transition-all duration-300 ease-in',
|
|
|
|
leaveToClass: 'max-h-0 opacity-0 !m-0'
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
inlinemessage: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center align-top',
|
|
|
|
'p-3 m-0 rounded-md',
|
|
|
|
{
|
|
|
|
'bg-blue-100 border-0 text-blue-700': props.severity == 'info',
|
|
|
|
'bg-green-100 border-0 text-green-700': props.severity == 'success',
|
|
|
|
'bg-orange-100 border-0 text-orange-700': props.severity == 'warn',
|
|
|
|
'bg-red-100 border-0 text-red-700': props.severity == 'error'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'text-base mr-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
toast: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['w-96', 'opacity-90']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
|
|
|
container: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'my-4 rounded-md w-full',
|
|
|
|
{
|
|
|
|
'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.message.severity == 'info',
|
|
|
|
'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.message.severity == 'success',
|
|
|
|
'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.message.severity == 'warn',
|
|
|
|
'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.message.severity == 'error'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
content: {
|
|
|
|
class: 'flex items-center py-5 px-7'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
icon: {
|
|
|
|
class: ['w-6 h-6', 'text-lg mr-2']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
text: {
|
|
|
|
class: 'text-base font-normal flex flex-col flex-1 grow shrink ml-4'
|
|
|
|
},
|
|
|
|
summary: {
|
|
|
|
class: 'font-bold block'
|
|
|
|
},
|
|
|
|
detail: {
|
|
|
|
class: 'mt-1 block'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
closebutton: {
|
|
|
|
class: ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0 translate-x-0 translate-y-2/4 translate-z-0',
|
|
|
|
enterActiveClass: 'transition-transform transition-opacity duration-300',
|
|
|
|
leaveFromClass: 'max-h-40',
|
|
|
|
leaveActiveClass: 'transition-all duration-500 ease-in',
|
|
|
|
leaveToClass: 'max-h-0 opacity-0 mb-0 overflow-hidden'
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
//BUTTONS
|
|
|
|
button: {
|
|
|
|
root: ({ props, context }) => ({
|
|
|
|
class: [
|
2023-10-18 06:47:18 +00:00
|
|
|
'items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom',
|
2023-07-25 11:53:01 +00:00
|
|
|
'transition duration-200 ease-in-out',
|
2023-10-18 01:13:41 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0',
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
2023-10-18 01:13:41 +00:00
|
|
|
'text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 dark:hover:bg-blue-500 hover:border-blue-600 dark:hover:border-blue-500 focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
!props.link && props.severity === null && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-blue-600 bg-transparent border-transparent focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.link
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
{
|
2023-10-18 01:13:41 +00:00
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(176,185,198,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(203,213,225,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'secondary',
|
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(136,234,172,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(134,239,172,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'success',
|
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'info',
|
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(250,207,133,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,211,77,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'warning',
|
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(212,170,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(216,180,254,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'help',
|
|
|
|
'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(247,162,162,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,165,165,0.7),0_1px_2px_0_rgba(0,0,0,0)]':
|
|
|
|
props.severity === 'danger'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'text-white dark:text-gray-900 bg-gray-500 dark:bg-gray-400 border border-gray-500 dark:border-gray-400 hover:bg-gray-600 dark:hover:bg-gray-500 hover:border-gray-600 dark:hover:border-gray-500':
|
|
|
|
props.severity === 'secondary' && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-white dark:text-gray-900 bg-green-500 dark:bg-green-400 border border-green-500 dark:border-green-400 hover:bg-green-600 dark:hover:bg-green-500 hover:border-green-600 dark:hover:border-green-500':
|
|
|
|
props.severity === 'success' && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-white dark:text-gray-900 dark:bg-blue-400 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 hover:border-blue-600 dark:hover:bg-blue-500 dark:hover:border-blue-500':
|
|
|
|
props.severity === 'info' && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-white dark:text-gray-900 bg-orange-500 dark:bg-orange-400 border border-orange-500 dark:border-orange-400 hover:bg-orange-600 dark:hover:bg-orange-500 hover:border-orange-600 dark:hover:border-orange-500':
|
|
|
|
props.severity === 'warning' && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-white dark:text-gray-900 bg-purple-500 dark:bg-purple-400 border border-purple-500 dark:border-purple-400 hover:bg-purple-600 dark:hover:bg-purple-500 hover:border-purple-600 dark:hover:border-purple-500':
|
|
|
|
props.severity === 'help' && !props.text && !props.outlined && !props.plain,
|
|
|
|
'text-white dark:text-gray-900 bg-red-500 dark:bg-red-400 border border-red-500 dark:border-red-400 hover:bg-red-600 dark:hover:bg-red-500 hover:border-red-600 dark:hover:border-red-500':
|
|
|
|
props.severity === 'danger' && !props.text && !props.outlined && !props.plain
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
{ 'shadow-lg': props.raised },
|
|
|
|
{ 'rounded-md': !props.rounded, 'rounded-full': props.rounded },
|
|
|
|
{
|
|
|
|
'bg-transparent border-transparent': props.text && !props.plain,
|
2023-10-18 01:13:41 +00:00
|
|
|
'text-blue-500 dark:text-blue-400 hover:bg-blue-300/20': props.text && (props.severity === null || props.severity === 'info') && !props.plain,
|
|
|
|
'text-gray-500 dark:text-gray-400 hover:bg-gray-300/20': props.text && props.severity === 'secondary' && !props.plain,
|
|
|
|
'text-green-500 dark:text-green-400 hover:bg-green-300/20': props.text && props.severity === 'success' && !props.plain,
|
|
|
|
'text-orange-500 dark:text-orange-400 hover:bg-orange-300/20': props.text && props.severity === 'warning' && !props.plain,
|
|
|
|
'text-purple-500 dark:text-purple-400 hover:bg-purple-300/20': props.text && props.severity === 'help' && !props.plain,
|
|
|
|
'text-red-500 dark:text-red-400 hover:bg-red-300/20': props.text && props.severity === 'danger' && !props.plain
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
{ 'shadow-lg': props.raised && props.text },
|
|
|
|
{
|
2023-09-10 00:18:00 +00:00
|
|
|
'text-gray-500 hover:bg-gray-300/20': props.plain && props.text,
|
|
|
|
'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.plain && props.outlined,
|
|
|
|
'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.plain && !props.outlined && !props.text
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'bg-transparent border': props.outlined && !props.plain,
|
2023-10-18 01:13:41 +00:00
|
|
|
'text-blue-500 dark:text-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-300/20': props.outlined && (props.severity === null || props.severity === 'info') && !props.plain,
|
|
|
|
'text-gray-500 dark:text-gray-400 border border-gray-500 dark:border-gray-400 hover:bg-gray-300/20': props.outlined && props.severity === 'secondary' && !props.plain,
|
|
|
|
'text-green-500 dark:text-green-400 border border-green-500 dark:border-green-400 hover:bg-green-300/20': props.outlined && props.severity === 'success' && !props.plain,
|
|
|
|
'text-orange-500 dark:text-orange-400 border border-orange-500 dark:border-orange-400 hover:bg-orange-300/20': props.outlined && props.severity === 'warning' && !props.plain,
|
|
|
|
'text-purple-500 dark:text-purple-400 border border-purple-500 dark:border-purple-400 hover:bg-purple-300/20': props.outlined && props.severity === 'help' && !props.plain,
|
|
|
|
'text-red-500 dark:text-red-400 border border-red-500 dark:border-red-400 hover:bg-red-300/20': props.outlined && props.severity === 'danger' && !props.plain
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-01 14:42:41 +00:00
|
|
|
{ 'px-4 py-3 text-base': props.size === null, 'text-xs py-2 px-3': props.size === 'small', 'text-xl py-3 px-4': props.size === 'large' },
|
2023-10-18 01:13:41 +00:00
|
|
|
{ 'flex-column': props.iconPos == 'top' || props.iconPos == 'bottom' },
|
2023-08-01 14:42:41 +00:00
|
|
|
{ 'opacity-60 pointer-events-none cursor-default': context.disabled }
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
label: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'flex-1',
|
|
|
|
'duration-200',
|
|
|
|
'font-bold',
|
|
|
|
{
|
|
|
|
'hover:underline': props.link
|
2023-10-18 01:13:41 +00:00
|
|
|
},
|
|
|
|
{ 'invisible w-0': props.label == null }
|
2023-08-05 10:19:35 +00:00
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
icon: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'mx-0',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'mr-2': props.iconPos == 'left' && props.label != null,
|
2023-10-18 01:13:41 +00:00
|
|
|
'ml-2 order-1': props.iconPos == 'right' && props.label != null,
|
2023-08-05 10:19:35 +00:00
|
|
|
'mb-2': props.iconPos == 'top' && props.label != null,
|
2023-10-18 01:13:41 +00:00
|
|
|
'mt-2 order-2': props.iconPos == 'bottom' && props.label != null
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
badge: ({ props }) => ({
|
2023-08-02 07:09:37 +00:00
|
|
|
class: [{ 'ml-2 w-4 h-4 leading-none flex items-center justify-center': props.badge }]
|
2023-07-25 11:53:01 +00:00
|
|
|
})
|
|
|
|
},
|
|
|
|
speeddial: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'absolute flex'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
button: {
|
2023-08-03 14:55:05 +00:00
|
|
|
root: ({ parent }) => ({
|
2023-08-05 11:31:33 +00:00
|
|
|
class: [
|
|
|
|
'w-16 !h-16 !rounded-full justify-center z-10',
|
|
|
|
{
|
|
|
|
'rotate-45': parent.state.d_visible
|
|
|
|
}
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
}),
|
2023-08-01 06:39:02 +00:00
|
|
|
label: {
|
2023-08-03 14:55:05 +00:00
|
|
|
class: 'hidden'
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
menu: {
|
|
|
|
class: 'm-0 p-0 list-none flex items-center justify-center transition delay-200 z-20'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
menuitem: ({ props, context }) => ({
|
|
|
|
class: [
|
2023-08-01 06:39:02 +00:00
|
|
|
'transform transition-transform duration-200 ease-out transition-opacity duration-800',
|
|
|
|
context.hidden ? 'opacity-0 scale-0' : 'opacity-1 scale-100',
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
2023-08-03 14:55:05 +00:00
|
|
|
'my-1 first:mb-2': props.direction == 'up' && props.type == 'linear',
|
|
|
|
'my-1 first:mt-2': props.direction == 'down' && props.type == 'linear',
|
|
|
|
'mx-1 first:mr-2': props.direction == 'left' && props.type == 'linear',
|
|
|
|
'mx-1 first:ml-2': props.direction == 'right' && props.type == 'linear'
|
|
|
|
},
|
|
|
|
{ absolute: props.type !== 'linear' }
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
action: {
|
2023-08-03 14:55:05 +00:00
|
|
|
class: ['flex items-center justify-center rounded-full relative overflow-hidden', 'w-12 h-12 bg-gray-700 hover:bg-gray-800 text-white']
|
|
|
|
},
|
|
|
|
mask: ({ state }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'absolute left-0 top-0 w-full h-full transition-opacity duration-250 ease-in-out bg-black/40 z-0',
|
|
|
|
{
|
|
|
|
'opacity-0': !state.d_visible,
|
|
|
|
'pointer-events-none opacity-100 transition-opacity duration-400 ease-in-out': state.d_visible
|
|
|
|
}
|
|
|
|
]
|
2023-08-03 14:55:05 +00:00
|
|
|
})
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
splitbutton: {
|
2023-08-03 14:55:05 +00:00
|
|
|
root: ({ props }) => ({
|
|
|
|
class: ['inline-flex relative', 'rounded-md', { 'shadow-lg': props.raised }]
|
|
|
|
}),
|
2023-08-01 04:54:51 +00:00
|
|
|
button: {
|
|
|
|
root: ({ parent }) => ({
|
2023-08-04 11:04:50 +00:00
|
|
|
class: ['rounded-r-none border-r-0', { 'rounded-l-full': parent.props.rounded }]
|
2023-08-04 06:24:53 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-01 04:54:51 +00:00
|
|
|
menubutton: {
|
2023-08-01 06:47:54 +00:00
|
|
|
root: ({ parent }) => ({
|
2023-08-04 11:04:50 +00:00
|
|
|
class: ['rounded-l-none', { 'rounded-r-full': parent.props.rounded }]
|
2023-08-04 06:24:53 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'hidden'
|
|
|
|
}
|
2023-08-01 04:54:51 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
//FORMS
|
|
|
|
inputtext: {
|
|
|
|
root: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'm-0',
|
|
|
|
'font-sans text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg',
|
|
|
|
{
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'text-lg px-4 py-4': props.size == 'large',
|
|
|
|
'text-xs px-2 py-2': props.size == 'small',
|
|
|
|
'p-3 text-base': props.size == null
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
inputnumber: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'w-full inline-flex'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
input: ({ props }) => ({
|
2023-10-08 13:16:27 +00:00
|
|
|
class: [
|
2023-10-08 13:18:43 +00:00
|
|
|
{
|
|
|
|
'rounded-tr-none rounded-br-none': props.showButtons && props.buttonLayout == 'stacked'
|
2023-10-08 13:16:27 +00:00
|
|
|
},
|
2023-10-08 13:18:43 +00:00
|
|
|
{
|
|
|
|
'order-2': props.buttonLayout == 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:39:02 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
buttongroup: ({ props }) => ({
|
2023-08-01 06:39:02 +00:00
|
|
|
class: [{ 'flex flex-col': props.showButtons && props.buttonLayout == 'stacked' }]
|
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
incrementbutton: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex !items-center !justify-center',
|
|
|
|
{
|
|
|
|
'rounded-br-none rounded-bl-none rounded-bl-none !p-0 flex-1 w-[3rem]': props.showButtons && props.buttonLayout == 'stacked'
|
2023-10-08 13:16:27 +00:00
|
|
|
},
|
2023-10-08 13:18:43 +00:00
|
|
|
{
|
|
|
|
'order-3': props.buttonLayout == 'horizontal'
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:39:02 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'hidden'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
decrementbutton: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex !items-center !justify-center',
|
|
|
|
{
|
|
|
|
'rounded-tr-none rounded-tl-none rounded-tl-none !p-0 flex-1 w-[3rem]': props.showButtons && props.buttonLayout == 'stacked'
|
2023-10-08 13:18:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'order-1': props.buttonLayout == 'horizontal'
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:39:02 +00:00
|
|
|
})
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
knob: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-none',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
range: {
|
|
|
|
class: 'stroke-current transition duration-100 ease-in stroke-gray-200 dark:stroke-gray-700 fill-none'
|
|
|
|
},
|
|
|
|
value: {
|
|
|
|
class: 'animate-dash-frame stroke-blue-500 fill-none'
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
class: 'text-center text-xl'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
inputswitch: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'inline-block relative',
|
|
|
|
'w-12 h-7',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
slider: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'absolute cursor-pointer top-0 left-0 right-0 bottom-0 border border-transparent',
|
|
|
|
'transition-colors duration-200 rounded-2xl',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
"before:absolute before:content-'' before:top-1/2 before:bg-white before:dark:bg-gray-900 before:w-5 before:h-5 before:left-1 before:-mt-2.5 before:rounded-full before:transition-duration-200",
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'bg-gray-200 dark:bg-gray-800 hover:bg-gray-300 hover:dark:bg-gray-700 ': !props.modelValue,
|
|
|
|
'bg-blue-500 before:transform before:translate-x-5': props.modelValue
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
cascadeselect: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex cursor-pointer select-none relative',
|
|
|
|
'bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition duration-200 ease-in-out rounded-lg',
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
label: {
|
2023-10-15 15:55:27 +00:00
|
|
|
class: ['block whitespace-nowrap overflow-hidden flex flex-1 w-1 text-ellipsis cursor-pointer', 'bg-transparent border-0 p-3 text-gray-700 dark:text-white/80', 'appearance-none rounded-md']
|
2023-08-01 06:39:02 +00:00
|
|
|
},
|
|
|
|
dropdownbutton: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/80 w-[3rem] rounded-tr-6 rounded-br-6']
|
2023-08-01 06:39:02 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
panel: {
|
|
|
|
class: 'absolute py-3 bg-white dark:bg-gray-900 border-0 shadow-md'
|
|
|
|
},
|
|
|
|
list: {
|
|
|
|
class: 'm-0 sm:p-0 list-none'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
item: {
|
2023-08-01 06:39:02 +00:00
|
|
|
class: [
|
|
|
|
'cursor-pointer font-normal whitespace-nowrap',
|
|
|
|
'm-0 border-0 bg-transparent transition-shadow rounded-none',
|
|
|
|
'text-gray-700 dark:text-white/80 hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80'
|
|
|
|
]
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
content: {
|
|
|
|
class: ['flex items-center overflow-hidden relative', 'py-3 px-5']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
groupicon: {
|
|
|
|
class: 'ml-auto'
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
sublist: {
|
|
|
|
class: ['block absolute left-full top-0', 'min-w-full z-10', 'py-3 bg-white dark:bg-gray-900 border-0 shadow-md']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-08-01 06:39:02 +00:00
|
|
|
},
|
|
|
|
inputmask: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 py-3 px-3 border border-gray-300 dark:border-blue-900/40 hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)] transition duration-200 ease-in-out appearance-none rounded-md'
|
|
|
|
}
|
2023-08-01 06:39:02 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
rating: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'relative flex items-center',
|
|
|
|
'gap-2',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-02 14:22:14 +00:00
|
|
|
cancelitem: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center cursor-pointer',
|
|
|
|
{
|
|
|
|
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
cancelicon: {
|
|
|
|
class: ['text-red-500', 'w-5 h-5', 'transition duration-200 ease-in']
|
|
|
|
},
|
2023-08-02 14:22:14 +00:00
|
|
|
item: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center',
|
|
|
|
{
|
|
|
|
'cursor-pointer': !props.readonly,
|
|
|
|
'cursor-default': props.readonly
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
officon: {
|
|
|
|
class: ['text-gray-700 hover:text-blue-400', 'w-5 h-5', 'transition duration-200 ease-in']
|
|
|
|
},
|
|
|
|
onicon: {
|
|
|
|
class: ['text-blue-500', 'w-5 h-5', 'transition duration-200 ease-in']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selectbutton: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }]
|
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
button: ({ context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative',
|
|
|
|
'px-4 py-3',
|
|
|
|
'transition duration-200 border border-r-0',
|
|
|
|
'first:rounded-l-md first:rounded-tr-none first:rounded-br-none last:border-r last:rounded-tl-none last:rounded-bl-none last:rounded-r-md',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
{
|
|
|
|
'bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-gray-300 dark:border-blue-900/40 hover:bg-gray-50 dark:hover:bg-gray-800/80 ': !context.active,
|
|
|
|
'bg-blue-500 border-blue-500 text-white hover:bg-blue-600': context.active,
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'font-bold'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
slider: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'relative',
|
|
|
|
'bg-gray-100 dark:bg-gray-800 border-0 rounded-6',
|
|
|
|
{ 'h-1 w-56': props.orientation == 'horizontal', 'w-1 h-56': props.orientation == 'vertical' },
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
range: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'bg-blue-500',
|
|
|
|
'block absolute',
|
|
|
|
{
|
|
|
|
'top-0 left-0 h-full': props.orientation == 'horizontal',
|
|
|
|
'bottom-0 left-0 w-full': props.orientation == 'vertical'
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
handle: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200',
|
2023-10-15 15:55:27 +00:00
|
|
|
'cursor-grab touch-none block',
|
2023-07-25 11:53:01 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
'hover:bg-blue-500 hover:border hover:border-blue-500',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
|
|
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
starthandler: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200',
|
2023-10-15 15:55:27 +00:00
|
|
|
'cursor-grab touch-none block',
|
2023-07-25 11:53:01 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
'hover:bg-blue-500 hover:border hover:border-blue-500',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
|
|
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
endhandler: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200',
|
2023-10-15 15:55:27 +00:00
|
|
|
'cursor-grab touch-none block',
|
2023-07-25 11:53:01 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
'hover:bg-blue-500 hover:border hover:border-blue-500',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
|
|
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'inline-flex relative',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
panel: {
|
|
|
|
class: 'p-5 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 shadow-md rounded-md'
|
|
|
|
},
|
|
|
|
meter: {
|
|
|
|
class: 'mb-2 bg-gray-300 dark:bg-gray-700 h-3'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
meterlabel: ({ instance, props }) => ({
|
|
|
|
class: [
|
|
|
|
'transition-width duration-1000 ease-in-out h-full',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'bg-red-500': instance?.meter?.strength == 'weak',
|
|
|
|
'bg-orange-500': instance?.meter?.strength == 'medium',
|
|
|
|
'bg-green-500': instance?.meter?.strength == 'strong'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{ 'pr-[2.5rem] ': props.toggleMask }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
showicon: {
|
|
|
|
class: ['absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70']
|
|
|
|
},
|
|
|
|
hideicon: {
|
|
|
|
class: ['absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
togglebutton: {
|
2023-08-02 14:39:36 +00:00
|
|
|
root: ({ props, context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative',
|
|
|
|
'px-4 py-3 rounded-md text-base w-36',
|
|
|
|
'border transition duration-200 ease-in-out',
|
2023-08-02 14:39:36 +00:00
|
|
|
{
|
|
|
|
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'bg-white dark:bg-gray-900 border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 hover:bg-gray-100 dark:hover:bg-gray-800/80 hover:border-gray-300 dark:hover:bg-gray-800/70 hover:text-gray-700 dark:hover:text-white/80':
|
|
|
|
!props.modelValue,
|
|
|
|
'bg-blue-500 border-blue-500 text-white hover:bg-blue-600 hover:border-blue-600': props.modelValue
|
|
|
|
},
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'font-bold text-center w-full'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
icon: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
' mr-2',
|
|
|
|
{
|
|
|
|
'text-gray-600 dark:text-white/70': !props.modelValue,
|
|
|
|
'text-white': props.modelValue
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
})
|
|
|
|
},
|
|
|
|
tristatecheckbox: {
|
|
|
|
root: {
|
|
|
|
class: ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6']
|
|
|
|
},
|
|
|
|
checkbox: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 rounded-lg transition-colors duration-200',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-blue-500 bg-blue-500 text-white dark:border-blue-400 dark:bg-blue-400': props.modelValue || !props.modelValue,
|
|
|
|
'border-gray-300 text-gray-600 bg-white dark:border-blue-900/40 dark:bg-gray-900': props.modelValue == null
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
|
|
|
|
'cursor-default opacity-60': props.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
checkbox: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
input: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked,
|
|
|
|
'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
|
|
|
|
'cursor-default opacity-60': props.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
radiobutton: {
|
2023-08-05 11:04:05 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6']
|
2023-08-05 11:04:05 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
input: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80': props.value !== props.modelValue,
|
|
|
|
'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': props.value == props.modelValue
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
|
|
|
|
'cursor-default opacity-60': props.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
icon: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'transform rounded-full',
|
|
|
|
'block w-3 h-3 transition duration-200 bg-white dark:bg-gray-900',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'backface-hidden scale-10 invisible': props.value !== props.modelValue,
|
|
|
|
'transform scale-100 visible': props.value == props.modelValue
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
dropdown: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer inline-flex relative select-none',
|
|
|
|
'bg-white border border-gray-400 transition-colors duration-200 ease-in-out rounded-md',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300',
|
2023-08-03 14:55:05 +00:00
|
|
|
'w-full md:w-56',
|
2023-07-25 11:53:01 +00:00
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
input: ({ props }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'cursor-pointer block flex flex-auto overflow-hidden text-ellipsis whitespace-nowrap relative',
|
2023-07-25 11:53:01 +00:00
|
|
|
'bg-transparent border-0 text-gray-800',
|
|
|
|
'dark:text-white/80',
|
|
|
|
'p-3 transition duration-200 bg-transparent rounded appearance-none font-sans text-base',
|
|
|
|
'focus:outline-none focus:shadow-none',
|
|
|
|
{ 'pr-7': props.showClear }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
trigger: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['flex items-center justify-center shrink-0', 'bg-transparent text-gray-500 w-12 rounded-tr-lg rounded-br-lg']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
wrapper: {
|
|
|
|
class: ['max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
list: {
|
|
|
|
class: 'py-3 list-none m-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer font-normal overflow-hidden relative whitespace-nowrap',
|
|
|
|
'm-0 p-3 border-0 transition-shadow duration-200 rounded-none',
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
2023-10-18 03:46:48 +00:00
|
|
|
'text-gray-700 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': !context.focused && !context.selected,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': context.focused && !context.selected,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
|
2023-08-01 06:39:02 +00:00
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
itemgroup: {
|
|
|
|
class: ['m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto']
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: ['p-3 border-b border-gray-300 text-gray-700 bg-gray-100 mt-0 rounded-tl-lg rounded-tr-lg', 'dark:bg-gray-800 dark:text-white/80 dark:border-blue-900/40']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtercontainer: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
filterinput: {
|
|
|
|
class: [
|
|
|
|
'pr-7 -mr-7',
|
|
|
|
'w-full',
|
|
|
|
'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtericon: {
|
|
|
|
class: '-mt-2 absolute top-1/2'
|
|
|
|
},
|
|
|
|
clearicon: {
|
|
|
|
class: 'text-gray-500 right-12 -mt-2 absolute top-1/2'
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
calendar: {
|
2023-08-01 04:54:51 +00:00
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'inline-flex max-w-full relative',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 04:54:51 +00:00
|
|
|
}),
|
2023-10-18 06:47:18 +00:00
|
|
|
input: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
2023-10-18 06:47:18 +00:00
|
|
|
'font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none',
|
|
|
|
'hover:border-blue-500',
|
|
|
|
{ 'rounded-lg': !props.showIcon, 'border-r-0 rounded-l-lg': props.showIcon }
|
2023-08-05 10:19:35 +00:00
|
|
|
]
|
2023-10-18 06:47:18 +00:00
|
|
|
}),
|
|
|
|
dropdownbutton: ({ props }) => ({
|
|
|
|
root: {
|
|
|
|
class: [{ 'rounded-l-none': props.showIcon }]
|
|
|
|
}
|
|
|
|
}),
|
2023-08-01 04:54:51 +00:00
|
|
|
panel: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'bg-white dark:bg-gray-900',
|
|
|
|
'min-w-[350px]',
|
|
|
|
{
|
|
|
|
'shadow-md border-0 absolute': !props.inline,
|
|
|
|
'inline-block overflow-x-auto border border-gray-300 dark:border-blue-900/40 p-2 rounded-lg': props.inline
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 04:54:51 +00:00
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
header: {
|
2023-08-01 04:54:51 +00:00
|
|
|
class: ['flex items-center justify-between', 'p-2 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-semibold m-0 border-b border-gray-300 dark:border-blue-900/40 rounded-t-lg']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
previousbutton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center cursor-pointer overflow-hidden relative',
|
2023-08-01 04:54:51 +00:00
|
|
|
'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 '
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
title: {
|
|
|
|
class: 'leading-8 mx-auto'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
monthTitle: {
|
2023-08-01 04:54:51 +00:00
|
|
|
class: ['text-gray-700 dark:text-white/80 transition duration-200 font-semibold p-2', 'mr-2', 'hover:text-blue-500']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
yearTitle: {
|
2023-08-01 04:54:51 +00:00
|
|
|
class: ['text-gray-700 dark:text-white/80 transition duration-200 font-semibold p-2', 'hover:text-blue-500']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
nextbutton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center cursor-pointer overflow-hidden relative',
|
2023-08-01 04:54:51 +00:00
|
|
|
'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 '
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
class: ['border-collapse w-full', 'my-2']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
tableheadercell: {
|
|
|
|
class: 'p-2'
|
|
|
|
},
|
|
|
|
weekday: {
|
|
|
|
class: 'text-gray-600 dark:text-white/70'
|
|
|
|
},
|
|
|
|
day: {
|
|
|
|
class: 'p-2'
|
|
|
|
},
|
2023-08-01 06:47:54 +00:00
|
|
|
daylabel: ({ context }) => ({
|
2023-08-01 04:54:51 +00:00
|
|
|
class: [
|
2023-08-01 06:47:54 +00:00
|
|
|
'w-10 h-10 rounded-full transition-shadow duration-200 border-transparent border',
|
|
|
|
'flex items-center justify-center mx-auto overflow-hidden relative',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'opacity-60 cursor-default': context.disabled,
|
|
|
|
'cursor-pointer': !context.disabled
|
|
|
|
},
|
|
|
|
{
|
2023-10-15 15:55:27 +00:00
|
|
|
'text-gray-600 dark:text-white/70 bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled,
|
2023-08-05 10:19:35 +00:00
|
|
|
'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled
|
|
|
|
}
|
2023-08-01 04:54:51 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
monthpicker: {
|
|
|
|
class: 'my-2'
|
|
|
|
},
|
2023-08-01 06:47:54 +00:00
|
|
|
month: ({ context }) => ({
|
2023-08-01 04:54:51 +00:00
|
|
|
class: [
|
2023-08-01 06:47:54 +00:00
|
|
|
'w-1/3 inline-flex items-center justify-center cursor-pointer overflow-hidden relative',
|
2023-08-01 04:54:51 +00:00
|
|
|
'p-2 transition-shadow duration-200 rounded-lg',
|
2023-08-01 06:47:54 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-10-15 15:55:27 +00:00
|
|
|
{ 'text-gray-600 dark:text-white/70 bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled, 'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled }
|
2023-08-01 04:54:51 +00:00
|
|
|
]
|
2023-08-01 06:47:54 +00:00
|
|
|
}),
|
2023-08-01 04:54:51 +00:00
|
|
|
yearpicker: {
|
2023-08-10 23:36:23 +00:00
|
|
|
class: 'my-2'
|
2023-08-01 04:54:51 +00:00
|
|
|
},
|
2023-08-01 06:47:54 +00:00
|
|
|
year: ({ context }) => ({
|
2023-08-01 04:54:51 +00:00
|
|
|
class: [
|
2023-08-01 06:47:54 +00:00
|
|
|
'w-1/2 inline-flex items-center justify-center cursor-pointer overflow-hidden relative',
|
2023-08-01 04:54:51 +00:00
|
|
|
'p-2 transition-shadow duration-200 rounded-lg',
|
2023-08-01 06:47:54 +00:00
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
2023-10-15 15:55:27 +00:00
|
|
|
'text-gray-600 dark:text-white/70 bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled,
|
2023-08-05 10:19:35 +00:00
|
|
|
'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled
|
|
|
|
}
|
2023-08-01 04:54:51 +00:00
|
|
|
]
|
2023-08-01 06:47:54 +00:00
|
|
|
}),
|
2023-08-01 04:54:51 +00:00
|
|
|
timepicker: {
|
|
|
|
class: ['flex justify-center items-center', 'border-t-1 border-solid border-gray-300 p-2']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
separatorcontainer: {
|
|
|
|
class: 'flex items-center flex-col px-2'
|
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
class: 'text-xl'
|
|
|
|
},
|
|
|
|
hourpicker: {
|
|
|
|
class: 'flex items-center flex-col px-2'
|
|
|
|
},
|
|
|
|
minutepicker: {
|
|
|
|
class: 'flex items-center flex-col px-2'
|
|
|
|
},
|
|
|
|
ampmpicker: {
|
|
|
|
class: 'flex items-center flex-col px-2'
|
|
|
|
},
|
2023-08-01 04:54:51 +00:00
|
|
|
incrementbutton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center cursor-pointer overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 '
|
|
|
|
]
|
|
|
|
},
|
|
|
|
decrementbutton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center cursor-pointer overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 '
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
groupcontainer: {
|
|
|
|
class: 'flex'
|
|
|
|
},
|
2023-08-01 04:54:51 +00:00
|
|
|
group: {
|
|
|
|
class: ['flex-1', 'border-l border-gray-300 pr-0.5 pl-0.5 pt-0 pb-0', 'first:pl-0 first:border-l-0']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
listbox: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md', 'w-full md:w-56']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'overflow-auto'
|
|
|
|
},
|
|
|
|
list: {
|
|
|
|
class: 'py-3 list-none m-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer font-normal overflow-hidden relative whitespace-nowrap',
|
|
|
|
'm-0 p-3 border-0 transition-shadow duration-200 rounded-none',
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
2023-10-18 03:46:48 +00:00
|
|
|
'text-gray-700 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': !context.focused && !context.selected,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': context.focused && !context.selected,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
|
2023-08-01 06:39:02 +00:00
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
itemgroup: {
|
|
|
|
class: ['m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto']
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: ['p-3 border-b border-gray-300 text-gray-700 bg-gray-100 mt-0 rounded-tl-lg rounded-tr-lg', 'dark:bg-gray-800 dark:text-white/80 dark:border-blue-900/40']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtercontainer: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
filterinput: {
|
|
|
|
class: [
|
|
|
|
'pr-7 -mr-7',
|
|
|
|
'w-full',
|
|
|
|
'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtericon: {
|
|
|
|
class: '-mt-2 absolute top-1/2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
multiselect: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex cursor-pointer select-none',
|
|
|
|
'bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md',
|
|
|
|
'w-full md:w-80',
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props?.disabled }
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
labelContainer: {
|
|
|
|
class: 'overflow-hidden flex flex-auto cursor-pointer'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
label: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'block overflow-hidden whitespace-nowrap cursor-pointer text-ellipsis',
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-gray-800 dark:text-white/80',
|
|
|
|
'p-3 transition duration-200',
|
|
|
|
{
|
|
|
|
'!p-3': props.display !== 'chip' && (props?.modelValue == null || props?.modelValue == undefined),
|
|
|
|
'!py-1.5 px-3': props.display == 'chip' && props?.modelValue !== null,
|
|
|
|
'!p-3': props.display == 'chip' && props?.modelValue == null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
token: {
|
|
|
|
class: ['py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
removeTokenIcon: {
|
|
|
|
class: 'ml-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
trigger: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/70 w-12 rounded-tr-lg rounded-br-lg']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: ['bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg']
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: ['p-3 border-b border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 bg-gray-100 dark:bg-gray-800 rounded-t-lg', 'flex items-center justify-between']
|
|
|
|
},
|
|
|
|
headerCheckboxContainer: {
|
|
|
|
class: ['inline-flex cursor-pointer select-none align-bottom relative', 'mr-2', 'w-6 h-6']
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
headerCheckbox: ({ context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 dark:text-white/70 rounded-lg transition-colors duration-200',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900': !context?.selected,
|
|
|
|
'border-blue-500 bg-blue-500': context?.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
headercheckboxicon: {
|
|
|
|
class: 'w-4 h-4 transition-all duration-200 text-white text-base'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
closeButton: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-500 dark:text-white/70 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
closeButtonIcon: {
|
|
|
|
class: 'w-4 h-4 inline-block'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
wrapper: {
|
|
|
|
class: ['max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
list: {
|
|
|
|
class: 'py-3 list-none m-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer font-normal overflow-hidden relative whitespace-nowrap',
|
|
|
|
'm-0 p-3 border-0 transition-shadow duration-200 rounded-none',
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
2023-10-18 03:46:48 +00:00
|
|
|
'text-gray-700 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': !context.focused && !context.selected,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': context.focused && !context.selected,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
|
2023-08-01 06:39:02 +00:00
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
checkboxContainer: {
|
|
|
|
class: ['inline-flex cursor-pointer select-none align-bottom relative', 'mr-2', 'w-6 h-6']
|
|
|
|
},
|
|
|
|
checkbox: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 dark:text-white/80 rounded-lg transition-colors duration-200',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900': !context?.selected,
|
|
|
|
'border-blue-500 bg-blue-500': context?.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
checkboxicon: {
|
|
|
|
class: 'w-4 h-4 transition-all duration-200 text-white text-base'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
itemgroup: {
|
|
|
|
class: ['m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtercontainer: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
filterinput: {
|
|
|
|
class: [
|
|
|
|
'pr-7 -mr-7',
|
|
|
|
'w-full',
|
|
|
|
'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
filtericon: {
|
|
|
|
class: '-mt-2 absolute top-1/2'
|
|
|
|
},
|
|
|
|
clearicon: {
|
|
|
|
class: 'text-gray-500 right-12 -mt-2 absolute top-1/2'
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
textarea: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'm-0',
|
|
|
|
'font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
treeselect: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex cursor-pointer select-none',
|
|
|
|
'bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md',
|
|
|
|
'w-full md:w-80',
|
|
|
|
{ 'opacity-60 select-none pointer-events-none cursor-default': props?.disabled }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
labelContainer: {
|
|
|
|
class: ['overflow-hidden flex flex-auto cursor-pointer']
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
label: {
|
2023-10-15 15:55:27 +00:00
|
|
|
class: ['block overflow-hidden whitespace-nowrap cursor-pointer text-ellipsis', 'text-gray-800 dark:text-white/80', 'p-3 transition duration-200']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
trigger: {
|
2023-08-01 13:06:10 +00:00
|
|
|
class: ['flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/70 w-12 rounded-tr-lg rounded-br-lg']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: ['bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg']
|
|
|
|
},
|
|
|
|
wrapper: {
|
|
|
|
class: ['max-h-[200px] overflow-auto', 'bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
autocomplete: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'relative inline-flex',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
},
|
|
|
|
{ 'w-full': props.multiple }
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
container: {
|
|
|
|
class: [
|
|
|
|
'm-0 list-none cursor-text overflow-hidden flex items-center flex-wrap w-full',
|
|
|
|
'px-3 py-2 gap-2',
|
|
|
|
'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition duration-200 ease-in-out appearance-none rounded-md',
|
|
|
|
'focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] hover:border-blue-500 focus:outline-none dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
inputtoken: {
|
|
|
|
class: ['py-0.375rem px-0', 'flex-1 inline-flex']
|
|
|
|
},
|
|
|
|
input: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'm-0',
|
|
|
|
' transition-colors duration-200 appearance-none rounded-lg',
|
|
|
|
{ 'rounded-tr-none rounded-br-none': props.dropdown },
|
|
|
|
{
|
|
|
|
'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)] hover:border-blue-500 focus:outline-none':
|
|
|
|
!props.multiple,
|
|
|
|
'font-sans text-base text-gray-700 dark:text-white/80 border-0 outline-none bg-transparent m-0 p-0 shadow-none rounded-none w-full': props.multiple
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
token: {
|
|
|
|
class: ['py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center']
|
|
|
|
},
|
|
|
|
dropdownbutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'rounded-tl-none rounded-bl-none'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: ['bg-white text-gray-700 border-0 rounded-md shadow-lg', 'max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
list: {
|
|
|
|
class: 'py-3 list-none m-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer font-normal overflow-hidden relative whitespace-nowrap',
|
|
|
|
'm-0 p-3 border-0 transition-shadow duration-200 rounded-none',
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
2023-10-18 03:46:48 +00:00
|
|
|
'text-gray-700 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': !context.focused && !context.selected,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': context.focused && !context.selected,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
|
2023-08-01 06:39:02 +00:00
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
itemgroup: {
|
|
|
|
class: ['m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto']
|
2023-08-07 10:35:43 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
chips: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'flex',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
container: {
|
|
|
|
class: [
|
|
|
|
'm-0 py-1.5 px-3 list-none cursor-text overflow-hidden flex items-center flex-wrap',
|
|
|
|
'w-full',
|
|
|
|
'font-sans text-base text-gray-600 dark:text-white/70 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
inputtoken: {
|
|
|
|
class: ['py-1.5 px-0', 'flex flex-1 inline-flex']
|
|
|
|
},
|
|
|
|
input: {
|
|
|
|
class: ['font-sans text-base text-gray-700 dark:text-white/80 p-0 m-0', 'border-0 outline-none bg-transparent shadow-none rounded-none w-full']
|
|
|
|
},
|
|
|
|
token: {
|
|
|
|
class: ['py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
removeTokenIcon: {
|
|
|
|
class: 'ml-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
colorpicker: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'inline-block',
|
|
|
|
{
|
|
|
|
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
input: {
|
|
|
|
class: [
|
|
|
|
'm-0',
|
|
|
|
'font-sans text-base text-gray-600 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 rounded-lg cursor-pointer',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
'w-8 h-8'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
panel: ({ props }) => ({
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'shadow-md',
|
|
|
|
'bg-gray-800 border-gray-900',
|
|
|
|
{
|
|
|
|
'relative h-48 w-52': props.inline,
|
|
|
|
'absolute h-48 w-52': !props.inline
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
selector: {
|
|
|
|
class: 'absolute h-44 w-40 top-2 left-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
color: {
|
2023-08-05 10:19:35 +00:00
|
|
|
class: 'h-44 w-40',
|
2023-07-25 11:53:01 +00:00
|
|
|
style: 'background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)'
|
|
|
|
},
|
|
|
|
colorhandle: {
|
|
|
|
class: ['rounded-full border border-solid cursor-pointer h-3 w-3 absolute opacity-85', 'border-white']
|
|
|
|
},
|
|
|
|
hue: {
|
|
|
|
class: ['h-44 w-6 absolute top-2 left-44 opacity-85'],
|
|
|
|
style: 'background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)'
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
huehandle: {
|
|
|
|
class: 'border-solid border-2 cursor-pointer h-2 w-8 left-0 -ml-1 -mt-1 opacity-85 absolute'
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
editor: {
|
|
|
|
toolbar: {
|
|
|
|
class: ['bg-gray-100 rounded-tr-md rounded-tl-md', 'border border-gray-300 box-border font-sans px-2 py-1']
|
|
|
|
},
|
|
|
|
formats: {
|
|
|
|
class: ['inline-block align-middle', 'mr-4']
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: ['text-gray-700 inline-block float-left text-base font-medium h-6 relative align-middle', 'w-28', 'border-0 text-gray-600']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
//MISC
|
|
|
|
badge: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'rounded-full p-0 text-center inline-block',
|
|
|
|
'bg-blue-500 text-white font-bold',
|
|
|
|
{
|
|
|
|
'bg-gray-500 ': props.severity == 'secondary',
|
|
|
|
'bg-green-500 ': props.severity == 'success',
|
|
|
|
'bg-blue-500 ': props.severity == 'info',
|
|
|
|
'bg-orange-500 ': props.severity == 'warning',
|
|
|
|
'bg-purple-500 ': props.severity == 'help',
|
|
|
|
'bg-red-500 ': props.severity == 'danger'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'text-xs min-w-[1.5rem] h-[1.5rem] leading-[1.5rem]': props.size == null,
|
|
|
|
'text-lg min-w-[2.25rem] h-[2.25rem] leading-[2.25rem]': props.size == 'large',
|
|
|
|
'text-2xl min-w-[3rem] h-[3rem] leading-[3rem]': props.size == 'xlarge'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
avatar: {
|
|
|
|
root: ({ props, parent }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'bg-gray-300 dark:bg-gray-800',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'rounded-lg': props.shape == 'square',
|
|
|
|
'rounded-full': props.shape == 'circle'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'text-base h-8 w-8': props.size == null || props.size == 'normal',
|
|
|
|
'w-12 h-12 text-xl': props.size == 'large',
|
|
|
|
'w-16 h-16 text-2xl': props.size == 'xlarge'
|
|
|
|
},
|
|
|
|
{
|
2023-10-12 16:02:32 +00:00
|
|
|
'-ml-4 border-2 border-white dark:border-gray-900': parent.instance.$css === undefined
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
image: {
|
|
|
|
class: 'h-full w-full'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
avatargroup: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
chip: {
|
|
|
|
root: {
|
|
|
|
class: ['inline-flex items-center', 'bg-gray-200 text-gray-800 rounded-[16px] px-3 dark:text-white/80 dark:bg-gray-900']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'leading-6 mt-1.5 mb-1.5'
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
class: 'leading-6 mr-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
image: {
|
|
|
|
class: ['w-9 h-9 ml-[-0.75rem] mr-2', 'rounded-full']
|
|
|
|
},
|
|
|
|
removeIcon: {
|
|
|
|
class: ['ml-2 rounded-md transition duration-200 ease-in-out', 'cursor-pointer leading-6']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
progressbar: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['overflow-hidden relative', 'border-0 h-6 bg-gray-200 rounded-md dark:bg-gray-800']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
value: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'border-0 m-0 bg-blue-500',
|
2023-08-03 14:55:05 +00:00
|
|
|
{
|
|
|
|
'transition-width duration-1000 ease-in-out absolute items-center border-0 flex h-full justify-center overflow-hidden w-0': props.mode !== 'indeterminate',
|
|
|
|
'progressbar-value-animate before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000': props.mode == 'indeterminate'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
label: {
|
|
|
|
class: ['inline-flex', 'text-white leading-6']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
progressspinner: {
|
|
|
|
root: {
|
|
|
|
class: ['relative mx-auto w-28 h-28 inline-block', 'before:block before:pt-full']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
spinner: {
|
|
|
|
class: 'absolute top-0 bottom-0 left-0 right-0 m-auto w-full h-full transform origin-center animate-spin'
|
|
|
|
},
|
|
|
|
circle: {
|
|
|
|
class: 'text-red-500 progress-spinner-circle'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
skeleton: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'overflow-hidden',
|
|
|
|
'!mb-2',
|
|
|
|
'bg-gray-300 dark:bg-gray-800',
|
|
|
|
'after:absolute after:top-0 after:left-0 after:right-0 after:bottom-0 after:content after:w-full after:h-full after:bg-blue-400 after:left-full after:transform after:translate-x-full after:z-10 after:bg-gradient-to-r after:from-transparent after:via-white after:to-transparent animate-pulse',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'rounded-md': props.shape !== 'circle',
|
|
|
|
'rounded-full': props.shape == 'circle'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
tag: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center',
|
|
|
|
'bg-blue-500 text-white text-xs font-semibold px-2 py-1 ',
|
|
|
|
{
|
|
|
|
'bg-green-500 ': props.severity == 'success',
|
|
|
|
'bg-blue-500 ': props.severity == 'info',
|
|
|
|
'bg-orange-500 ': props.severity == 'warning',
|
|
|
|
'bg-red-500 ': props.severity == 'danger'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'rounded-md': !props.rounded,
|
|
|
|
'rounded-full': props.rounded
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
value: {
|
|
|
|
class: 'leading-6'
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
class: 'mr-1 text-sm'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
inplace: {
|
2023-08-05 10:19:35 +00:00
|
|
|
display: {
|
2023-08-01 06:47:54 +00:00
|
|
|
class: ['p-3 rounded-md transition duration-200 text-gray-700 dark:text-white/80', 'inline cursor-pointer', 'hover:bg-gray-200 hover:text-gray-700 dark:hover:bg-gray-800/80 dark:hover:text-white/80']
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
scrolltop: {
|
|
|
|
root: ({ props }) => ({
|
2023-08-03 14:55:05 +00:00
|
|
|
class: [
|
|
|
|
'fixed bottom-20 right-20 flex items-center justify-center',
|
|
|
|
'ml-auto',
|
|
|
|
{
|
|
|
|
'!bg-blue-500 hover:bg-blue-600 text-white rounded-md h-8 w-8': props.target == 'parent',
|
|
|
|
'!bg-gray-700 hover:bg-gray-800 h-12 w-12 rounded-full text-white': props.target !== 'parent'
|
|
|
|
}
|
|
|
|
]
|
2023-08-07 10:35:43 +00:00
|
|
|
}),
|
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0',
|
|
|
|
enterActiveClass: 'transition-opacity duration-150',
|
|
|
|
leaveActiveClass: 'transition-opacity duration-150',
|
|
|
|
leaveToClass: 'opacity-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
terminal: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['border border-gray-300 p-5', 'bg-gray-900 text-white dark:border-blue-900/40 ', 'h-72 overflow-auto']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
container: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
},
|
|
|
|
prompt: {
|
|
|
|
class: 'text-yellow-400'
|
|
|
|
},
|
|
|
|
commandtext: {
|
|
|
|
class: 'flex-1 shrink grow-0 border-0 bg-transparent text-inherit p-0 outline-none'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-03 07:54:36 +00:00
|
|
|
blockui: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
|
|
|
mask: {
|
|
|
|
class: 'bg-black/40'
|
|
|
|
}
|
2023-08-03 07:54:36 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
//MENU
|
|
|
|
breadcrumb: {
|
|
|
|
root: {
|
|
|
|
class: ['overflow-x-auto', 'bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md p-4']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
menu: {
|
|
|
|
class: 'm-0 p-0 list-none flex items-center flex-nowrap'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
action: {
|
|
|
|
class: [
|
|
|
|
'text-decoration-none flex items-center',
|
|
|
|
'transition-shadow duration-200 rounded-md text-gray-600 dark:text-white/70',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'text-gray-600 dark:text-white/70'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
separator: {
|
|
|
|
class: ['mx-2 text-gray-600 dark:text-white/70', 'flex items-center']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
contextmenu: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'py-1 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-none shadow-md rounded-lg w-52'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
menu: {
|
|
|
|
class: ['m-0 p-0 list-none', 'outline-none']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
menuitem: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
content: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'transition-shadow duration-200 rounded-none',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80', // Hover
|
|
|
|
{
|
|
|
|
'text-gray-700': !context.focused && !context.active,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
|
|
|
|
'bg-blue-500 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
|
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
action: {
|
|
|
|
class: ['cursor-pointer flex items-center no-underline overflow-hidden relative', 'text-gray-700 dark:text-white/80 py-3 px-5 select-none']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'text-gray-600 dark:text-white/70 mr-2'
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
class: 'text-gray-600 dark:text-white/70'
|
|
|
|
},
|
2023-08-07 10:35:43 +00:00
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0',
|
|
|
|
enterActiveClass: 'transition-opacity duration-250'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
dock: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'absolute z-1 flex justify-center items-center pointer-events-none',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'left-0 bottom-0 w-full': props.position == 'bottom',
|
|
|
|
'left-0 top-0 w-full': props.position == 'top',
|
|
|
|
'left-0 top-0 h-full': props.position == 'left',
|
|
|
|
'right-0 top-0 h-full': props.position == 'right'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
container: {
|
|
|
|
class: ['flex pointer-events-auto', 'bg-white/10 border-white/20 p-2 border rounded-md']
|
|
|
|
},
|
|
|
|
menu: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'm-0 p-0 list-none flex items-center justify-center',
|
|
|
|
'outline-none',
|
|
|
|
{
|
|
|
|
'flex-col': props.position == 'left' || props.position == 'right'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
menuitem: ({ props, context, instance }) => ({
|
|
|
|
class: [
|
|
|
|
'p-2 rounded-md',
|
|
|
|
'transition-all duration-200 ease-cubic-bezier-will-change-transform transform ',
|
|
|
|
{
|
|
|
|
'origin-bottom hover:mx-6': props.position == 'bottom',
|
|
|
|
'origin-top hover:mx-6': props.position == 'top',
|
|
|
|
'origin-left hover:my-6': props.position == 'left',
|
|
|
|
'origin-right hover:my-6': props.position == 'right'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'hover:scale-150': instance.currentIndex === context.index,
|
|
|
|
'scale-125': instance.currentIndex - 1 === context.index || instance.currentIndex + 1 === context.index,
|
|
|
|
'scale-110': instance.currentIndex - 2 === context.index || instance.currentIndex + 2 === context.index
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
action: {
|
|
|
|
class: ['flex flex-col items-center justify-center relative overflow-hidden cursor-default', 'w-16 h-16']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
menu: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'py-1 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border border-gray-300 dark:border-blue-900/40 rounded-md w-48'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
menu: {
|
|
|
|
class: ['m-0 p-0 list-none', 'outline-none']
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
content: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-gray-700 dark:text-white/80 transition-shadow duration-200 rounded-none',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80', // Hover
|
|
|
|
{
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
action: {
|
|
|
|
class: ['text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'text-gray-600 dark:text-white/70 mr-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
submenuheader: {
|
|
|
|
class: ['m-0 p-3 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-bold rounded-tl-none rounded-tr-none']
|
2023-08-03 14:55:05 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
menubar: {
|
|
|
|
root: {
|
2023-08-01 06:39:02 +00:00
|
|
|
class: ['p-2 bg-gray-100 dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md', 'flex items-center relative']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-03 07:25:08 +00:00
|
|
|
menu: ({ props }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'm-0 sm:p-0 list-none',
|
|
|
|
'outline-none',
|
|
|
|
'sm:flex items-center flex-wrap sm:flex-row sm:top-auto sm:left-auto sm:relative sm:bg-transparent sm:shadow-none sm:w-auto',
|
|
|
|
'flex-col top-full left-0',
|
|
|
|
'absolute py-1 bg-white dark:bg-gray-900 border-0 shadow-md w-full',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'hidden ': !props?.mobileActive,
|
|
|
|
'flex ': props?.mobileActive
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
menuitem: {
|
|
|
|
class: 'sm:relative sm:w-auto w-full static'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
content: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
' transition-shadow duration-200',
|
2023-08-03 07:25:08 +00:00
|
|
|
'',
|
2023-08-05 10:19:35 +00:00
|
|
|
{ 'rounded-md': props.root },
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
|
|
|
'text-gray-700 dark:text-white/80': !context.focused && !context.active,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
|
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
|
2023-08-03 07:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
|
|
|
|
'hover:bg-blue-200 dark:hover:bg-blue-500': context.active
|
2023-08-01 06:39:02 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-03 07:25:08 +00:00
|
|
|
action: ({ context }) => ({
|
2023-10-18 02:43:37 +00:00
|
|
|
class: [
|
|
|
|
'select-none',
|
|
|
|
'cursor-pointer flex items-center no-underline overflow-hidden relative',
|
|
|
|
'py-3 px-5 select-none',
|
|
|
|
{
|
|
|
|
'pl-9 sm:pl-5': context.level === 1,
|
|
|
|
'pl-14 sm:pl-5': context.level === 2
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
submenuicon: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
2023-10-18 02:43:37 +00:00
|
|
|
'ml-auto sm:ml-2': props.root,
|
2023-08-05 10:19:35 +00:00
|
|
|
'ml-auto': !props.root
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
submenu: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'py-1 bg-white dark:bg-gray-900 border-0 sm:shadow-md sm:w-48',
|
|
|
|
'w-full static shadow-none',
|
|
|
|
'sm:absolute z-10',
|
|
|
|
'm-0 list-none',
|
|
|
|
{
|
|
|
|
'sm:absolute sm:left-full sm:top-0': props.level > 1
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
separator: {
|
|
|
|
class: 'border-t border-gray-300 dark:border-blue-900/40 my-1'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
button: {
|
|
|
|
class: [
|
|
|
|
'flex sm:hidden w-8 h-8 rounded-full text-gray-600 dark:text-white/80 transition duration-200 ease-in-out',
|
|
|
|
'cursor-pointer flex items-center justify-center no-underline',
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80 ',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
megamenu: {
|
2023-08-05 10:19:35 +00:00
|
|
|
root: ({ props }) => ({
|
2023-08-01 06:39:02 +00:00
|
|
|
class: ['bg-gray-100 dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md', 'flex relative', { 'p-2 items-center': props.orientation == 'horizontal', 'flex-col w-48 p-0 py-1': props.orientation !== 'horizontal' }]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
menu: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['m-0 sm:p-0 list-none relative', 'outline-none', 'flex items-center flex-wrap flex-row top-auto left-auto relative bg-transparent shadow-none w-auto']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
|
|
|
menuitem: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'relative',
|
|
|
|
{
|
|
|
|
'w-auto': props.horizontal,
|
|
|
|
'w-full': !props.horizontal
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
|
|
|
content: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'transition-shadow duration-200',
|
|
|
|
{ 'rounded-md': props.level < 1 && props.horizontal },
|
2023-08-01 06:39:02 +00:00
|
|
|
{
|
|
|
|
'text-gray-700 dark:text-white/80': !context.focused && !context.active,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
|
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
|
2023-08-03 07:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
|
|
|
|
'hover:bg-blue-200 dark:hover:bg-blue-500': context.active
|
2023-08-01 06:39:02 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
action: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative', 'py-3 px-5 select-none']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
submenuicon: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'ml-2': props.horizontal,
|
|
|
|
'ml-auto': !props.horizontal
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
panel: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'py-1 bg-white dark:bg-gray-900 border-0 shadow-md w-auto',
|
|
|
|
'absolute z-10',
|
|
|
|
{
|
|
|
|
'left-full top-0': !props.horizontal
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
grid: {
|
|
|
|
class: 'flex'
|
|
|
|
},
|
|
|
|
column: {
|
|
|
|
class: 'w-1/2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
submenu: {
|
|
|
|
class: ['m-0 list-none', 'py-1 w-48']
|
|
|
|
},
|
|
|
|
submenuheader: {
|
|
|
|
class: ['m-0 py-3 px-5 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-semibold rounded-tr-md rounded-tl-md']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
panelmenu: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'w-full md:w-[25rem]'
|
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: 'mb-1'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
header: {
|
2023-08-01 06:39:02 +00:00
|
|
|
class: [
|
|
|
|
'outline-none',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]' // Focus
|
|
|
|
]
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
headercontent: {
|
|
|
|
class: [
|
|
|
|
'border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 bg-gray-100 dark:bg-gray-900 rounded-md transition-shadow duration-200',
|
2023-08-01 06:39:02 +00:00
|
|
|
'hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-700 dark:hover:text-white/80'
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
headeraction: {
|
|
|
|
class: ['flex items-center select-none cursor-pointer relative no-underline', 'text-gray-700 dark:text-white/80 p-5 font-bold']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
submenuicon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
|
|
|
headericon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
|
|
|
menucontent: {
|
|
|
|
class: 'py-1 border border-t-0 border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 rounded-t-none rounded-br-md rounded-bl-md'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
menu: {
|
|
|
|
class: ['outline-none', 'm-0 p-0 list-none']
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
content: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-gray-700 dark:text-white/80 transition-shadow duration-200 border-none rounded-none',
|
|
|
|
'hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-700 dark:hover:text-white/80', // Hover
|
|
|
|
{
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
action: {
|
|
|
|
class: ['text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'flex items-center cursor-pointer no-underline relative overflow-hidden']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
|
|
|
submenu: {
|
|
|
|
class: 'p-0 pl-4 m-0 list-none'
|
|
|
|
},
|
2023-08-03 14:55:05 +00:00
|
|
|
transition: TRANSITIONS.toggleable
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
steps: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
|
|
|
menu: {
|
|
|
|
class: 'p-0 m-0 list-none flex'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
menuitem: {
|
2023-07-25 11:53:01 +00:00
|
|
|
class: ['relative flex justify-center flex-1 overflow-hidden', 'before:border-t before:border-gray-300 before:dark:border-blue-900/40 before:w-full before:absolute before:top-1/4 before:left-0 before:transform before:-translate-y-1/2']
|
2023-08-05 10:19:35 +00:00
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
action: {
|
|
|
|
class: [
|
|
|
|
'inline-flex flex-col items-center overflow-hidden',
|
|
|
|
'transition-shadow rounded-md bg-white dark:bg-transparent',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
step: {
|
|
|
|
class: ['flex items-center justify-center', 'text-gray-700 dark:text-white/80 border border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 w-[2rem] h-[2rem] leading-2rem text-sm z-10 rounded-full']
|
|
|
|
},
|
|
|
|
label: {
|
2023-10-15 15:55:27 +00:00
|
|
|
class: ['block', 'whitespace-nowrap overflow-hidden text-ellipsis max-w-full', 'mt-2 text-gray-500 dark:text-white/60']
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
tabmenu: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'overflow-x-auto'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
menu: {
|
2023-10-12 16:02:32 +00:00
|
|
|
class: ['flex m-0 p-0 list-none flex-nowrap', 'bg-white border-solid border-gray-300 border-b-2 dark:bg-gray-900 dark:border-blue-900/40', 'outline-none no-underline text-base list-none']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
menuitem: {
|
|
|
|
class: 'mr-0'
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
action: ({ context, state }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer select-none flex items-center relative no-underline overflow-hidden',
|
|
|
|
'border-b-2 p-5 font-bold rounded-t-lg ',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
{
|
|
|
|
'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80': state.d_activeIndex !== context.index, // Condition-based hover styles.
|
|
|
|
'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': state.d_activeIndex === context.index // Condition-based active styles.
|
|
|
|
}
|
|
|
|
],
|
2023-07-25 11:53:01 +00:00
|
|
|
style: 'top:2px'
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
tieredmenu: {
|
|
|
|
root: {
|
|
|
|
class: ['py-1 bg-white border border-gray-300 rounded-lg w-[12.5rem]', 'dark:border-blue-900/40 dark:bg-gray-900']
|
|
|
|
},
|
|
|
|
menu: {
|
|
|
|
class: ['outline-none', 'm-0 p-0 list-none']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
menuitem: {
|
|
|
|
class: 'relative'
|
|
|
|
},
|
2023-08-01 06:39:02 +00:00
|
|
|
content: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'transition-shadow duration-200 border-none rounded-none',
|
|
|
|
'hover:bg-gray-200 hover:text-gray-700 dark:hover:text-white/80 dark:hover:bg-gray-800/80', //Hover
|
|
|
|
{
|
|
|
|
'text-gray-700': !context.focused && !context.active,
|
|
|
|
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
|
|
|
|
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
|
|
|
|
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
|
|
|
|
}
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
}),
|
2023-08-01 06:39:02 +00:00
|
|
|
action: ({ context }) => ({
|
2023-07-25 11:53:01 +00:00
|
|
|
class: [
|
|
|
|
'py-3 px-5 select-none',
|
|
|
|
'flex items-center cursor-pointer no-underline relative overflow-hidden',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'text-gray-700 dark:text-white/80 hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
|
|
|
|
'text-blue-600 bg-blue-100': context.active
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
|
|
|
submenuicon: {
|
|
|
|
class: 'ml-auto'
|
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
class: 'border-t border-gray-300 my-1 dark:border-blue-900/40'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
submenu: {
|
|
|
|
class: ['py-1 bg-white dark:bg-gray-900 border-0 shadow-md min-w-full', 'absolute z-10', 'left-full top-0']
|
2023-08-07 10:35:43 +00:00
|
|
|
},
|
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
//MEDIA
|
|
|
|
image: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'relative inline-block'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
button: {
|
2023-08-05 10:19:35 +00:00
|
|
|
class: [
|
|
|
|
'absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-300',
|
|
|
|
'bg-transparent text-gray-100',
|
|
|
|
'hover:opacity-100 hover:cursor-pointer hover:bg-black hover:bg-opacity-50' //Hover
|
|
|
|
]
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
mask: {
|
|
|
|
class: ['fixed top-0 left-0 w-full h-full', 'flex items-center justify-center', 'bg-black bg-opacity-90']
|
|
|
|
},
|
|
|
|
toolbar: {
|
|
|
|
class: ['absolute top-0 right-0 flex', 'p-4']
|
|
|
|
},
|
|
|
|
rotaterightbutton: {
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
rotaterighticon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
rotateleftbutton: {
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
rotatelefticon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
zoomoutbutton: {
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
zoomouticon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
zoominbutton: {
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
zoominicon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
closebutton: {
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
closeicon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-08-07 10:35:43 +00:00
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0 scale-75',
|
|
|
|
enterActiveClass: 'transition-all duration-150 ease-in-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-150 ease-in',
|
|
|
|
leaveToClass: 'opacity-0 scale-75'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
galleria: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'flex flex-col'
|
|
|
|
},
|
|
|
|
content: {
|
|
|
|
class: 'flex flex-col'
|
|
|
|
},
|
|
|
|
itemwrapper: {
|
|
|
|
class: 'flex flex-col relative'
|
|
|
|
},
|
|
|
|
itemcontainer: {
|
|
|
|
class: 'relative flex h-full'
|
|
|
|
},
|
|
|
|
item: {
|
|
|
|
class: 'flex justify-center items-center h-full w-full'
|
|
|
|
},
|
|
|
|
thumbnailwrapper: {
|
|
|
|
class: 'flex flex-col overflow-auto shrink-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
thumbnailcontainer: {
|
|
|
|
class: ['flex flex-row', 'bg-black/90 p-4']
|
|
|
|
},
|
|
|
|
previousthumbnailbutton: {
|
|
|
|
class: [
|
2023-08-04 06:24:53 +00:00
|
|
|
'self-center flex shrink-0 justify-center items-center overflow-hidden relative',
|
2023-07-25 11:53:01 +00:00
|
|
|
'm-2 bg-transparent text-white w-8 h-8 transition duration-200 ease-in-out rounded-full',
|
|
|
|
'hover:bg-white/10 hover:text-white',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
thumbnailitemscontainer: {
|
|
|
|
class: 'overflow-hidden w-full'
|
|
|
|
},
|
|
|
|
thumbnailitems: {
|
|
|
|
class: 'flex'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
thumbnailitem: {
|
2023-08-04 06:24:53 +00:00
|
|
|
class: ['overflow-auto flex items-center justify-center cursor-pointer opacity-50', 'flex-1 grow-0 shrink-0 w-20', 'hover:opacity-100 hover:transition-opacity hover:duration-300']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
nextthumbnailbutton: {
|
|
|
|
class: [
|
2023-08-04 06:24:53 +00:00
|
|
|
'self-center flex shrink-0 justify-center items-center overflow-hidden relative',
|
2023-07-25 11:53:01 +00:00
|
|
|
'm-2 bg-transparent text-white w-8 h-8 transition duration-200 ease-in-out rounded-full',
|
|
|
|
'hover:bg-white/10 hover:text-white',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
indicators: {
|
|
|
|
class: ['flex items-center justify-center', 'p-4']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
indicator: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
indicatorbutton: ({ context }) => ({
|
2023-08-01 06:47:54 +00:00
|
|
|
class: [
|
2023-08-03 14:55:05 +00:00
|
|
|
'w-4 h-4 transition duration-200 rounded-full',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600': !context.highlighted,
|
|
|
|
'bg-blue-500 hover:bg-blue-600': context.highlighted
|
|
|
|
}
|
2023-08-01 06:47:54 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-07-25 11:53:01 +00:00
|
|
|
mask: {
|
|
|
|
class: ['fixed top-0 left-0 w-full h-full', 'flex items-center justify-center', 'bg-black bg-opacity-90']
|
|
|
|
},
|
|
|
|
closebutton: {
|
|
|
|
class: [
|
|
|
|
'absolute top-0 right-0 flex justify-center items-center overflow-hidden m-2',
|
|
|
|
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out',
|
|
|
|
'hover:text-white hover:bg-white/10',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
closeicon: {
|
|
|
|
class: 'w-6 h-6'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
previousitembutton: {
|
|
|
|
class: [
|
|
|
|
'inline-flex justify-center items-center overflow-hidden',
|
|
|
|
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md mx-2',
|
|
|
|
'fixed top-1/2 mt-[-0.5rem]',
|
|
|
|
'left-0',
|
|
|
|
'hover:bg-white/10 hover:text-white',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
nextitembutton: {
|
|
|
|
class: [
|
|
|
|
'inline-flex justify-center items-center overflow-hidden',
|
|
|
|
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md mx-2',
|
|
|
|
'fixed top-1/2 mt-[-0.5rem]',
|
|
|
|
'right-0',
|
|
|
|
'hover:bg-white/10 hover:text-white',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
caption: {
|
|
|
|
class: ['absolute bottom-0 left-0 w-full', 'bg-black/50 text-white p-4']
|
2023-08-07 10:35:43 +00:00
|
|
|
},
|
|
|
|
transition: {
|
|
|
|
enterFromClass: 'opacity-0 scale-75',
|
|
|
|
enterActiveClass: 'transition-all duration-150 ease-in-out',
|
|
|
|
leaveActiveClass: 'transition-all duration-150 ease-in',
|
|
|
|
leaveToClass: 'opacity-0 scale-75'
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
carousel: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'flex flex-col'
|
|
|
|
},
|
|
|
|
content: {
|
|
|
|
class: 'flex flex-col overflow-auto'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
container: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex',
|
|
|
|
{
|
|
|
|
'flex-row': props.orientation !== 'vertical',
|
|
|
|
'flex-col': props.orientation == 'vertical'
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:47:54 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
previousbutton: {
|
2023-08-04 06:24:53 +00:00
|
|
|
class: ['flex justify-center items-center self-center overflow-hidden relative shrink-0 grow-0', 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mx-2']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
itemscontent: {
|
|
|
|
class: 'overflow-hidden w-full'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
itemscontainer: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex ',
|
|
|
|
{
|
|
|
|
'flex-row': props.orientation !== 'vertical',
|
|
|
|
'flex-col h-full': props.orientation == 'vertical'
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:47:54 +00:00
|
|
|
}),
|
2023-08-05 10:19:35 +00:00
|
|
|
item: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex shrink-0 grow',
|
|
|
|
{
|
|
|
|
'w-1/3': props.orientation !== 'vertical',
|
|
|
|
'w-full': props.orientation == 'vertical'
|
|
|
|
}
|
|
|
|
]
|
2023-08-01 06:47:54 +00:00
|
|
|
}),
|
|
|
|
indicators: {
|
|
|
|
class: ['flex flex-row justify-center flex-wrap']
|
2023-08-01 06:22:06 +00:00
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
indicator: {
|
|
|
|
class: 'mr-2 mb-2'
|
|
|
|
},
|
2023-08-05 10:19:35 +00:00
|
|
|
indicatorbutton: ({ context }) => ({
|
2023-08-01 06:47:54 +00:00
|
|
|
class: [
|
2023-08-03 14:55:05 +00:00
|
|
|
'w-8 h-2 transition duration-200 rounded-0',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600': !context.highlighted,
|
|
|
|
'bg-blue-500 hover:bg-blue-600': context.highlighted
|
|
|
|
}
|
2023-08-01 06:47:54 +00:00
|
|
|
]
|
|
|
|
})
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
tree: {
|
|
|
|
root: {
|
|
|
|
class: ['max-w-[30rem] md:w-full', 'border border-solid border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 p-5 rounded-md']
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'overflow-auto'
|
|
|
|
},
|
|
|
|
container: {
|
|
|
|
class: 'm-0 p-0 list-none overflow-auto'
|
|
|
|
},
|
|
|
|
node: {
|
|
|
|
class: 'p-1 outline-none'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
content: ({ context, props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center',
|
|
|
|
'rounded-lg transition-shadow duration-200 p-2',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
|
|
|
{ 'bg-blue-50 text-blue-600': context.selected },
|
|
|
|
{ 'cursor-pointer select-none': props.selectionMode == 'single' || props.selectionMode == 'multiple' }
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
toggler: ({ context }) => ({
|
|
|
|
class: [
|
2023-08-01 13:06:10 +00:00
|
|
|
'cursor-pointer select-none inline-flex items-center justify-center overflow-hidden relative shrink-0',
|
2023-07-25 11:53:01 +00:00
|
|
|
'mr-2 w-8 h-8 border-0 bg-transparent rounded-full transition duration-200',
|
|
|
|
'hover:border-transparent focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]',
|
2023-08-02 14:49:34 +00:00
|
|
|
{
|
|
|
|
'text-gray-500 dark:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-800 dark:hover:text-white/80': !context.selected,
|
|
|
|
'text-blue-600 hover:bg-white/30': context.selected
|
|
|
|
},
|
|
|
|
{
|
2023-09-20 13:28:48 +00:00
|
|
|
invisible: context.leaf
|
2023-08-02 14:49:34 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
checkboxcontainer: {
|
|
|
|
class: 'mr-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
checkbox: ({ context, props }) => ({
|
|
|
|
class: [
|
|
|
|
'cursor-pointer inline-flex relative select-none align-bottom',
|
|
|
|
'w-6 h-6',
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 rounded-lg transition-colors duration-200 text-white text-base dark:text-gray-900',
|
2023-08-05 10:19:35 +00:00
|
|
|
{
|
|
|
|
'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked,
|
|
|
|
'border-blue-500 text-white bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
|
|
|
|
'cursor-default opacity-60': props.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
nodeicon: {
|
|
|
|
class: 'mr-2 text-gray-600 dark:text-white/70'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
subgroup: {
|
|
|
|
class: ['m-0 list-none', 'p-0 pl-4']
|
|
|
|
},
|
|
|
|
filtercontainer: {
|
|
|
|
class: ['mb-2', 'relative block w-full']
|
|
|
|
},
|
|
|
|
input: {
|
|
|
|
class: [
|
|
|
|
'm-0 p-3 text-base w-full pr-7',
|
|
|
|
'font-sans text-gray-600 dark:text-white/70 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg',
|
|
|
|
'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]'
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
searchicon: {
|
|
|
|
class: 'absolute top-1/2 -mt-2 right-3 text-gray-600 dark:hover:text-white/70'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
// DATA
|
|
|
|
timeline: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
2023-08-01 13:06:10 +00:00
|
|
|
'flex grow',
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'flex-col': props.layout === 'vertical',
|
|
|
|
'flex-row flex-1': props.layout === 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
event: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex relative min-h-[70px]',
|
|
|
|
{
|
|
|
|
'flex-row-reverse': props.align === 'right' || (props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1),
|
|
|
|
'flex-col flex-1': props.layout === 'horizontal',
|
|
|
|
'flex-col-reverse ': props.align === 'bottom' || (props.layout === 'horizontal' && props.align === 'alternate' && context.index % 2 === 1)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
opposite: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex-1',
|
|
|
|
{
|
|
|
|
'px-4': props.layout === 'vertical',
|
|
|
|
'py-4': props.layout === 'horizontal'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'text-right': props.align === 'left' || (props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 0),
|
|
|
|
'text-left': props.align === 'right' || (props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
separator: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center flex-initial',
|
|
|
|
{
|
|
|
|
'flex-col': props.layout === 'vertical',
|
|
|
|
'flex-row': props.layout === 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
marker: {
|
|
|
|
class: 'flex self-baseline w-4 h-4 rounded-full border-2 border-blue-500 bg-white dark:border-blue-300 dark:bg-blue-900/40'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
connector: ({ props }) => ({
|
|
|
|
class: [
|
2023-08-01 13:06:10 +00:00
|
|
|
'grow bg-gray-300 dark:bg-blue-900/40',
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'w-[2px]': props.layout === 'vertical',
|
|
|
|
'w-full h-[2px]': props.layout === 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
content: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex-1',
|
|
|
|
{
|
|
|
|
'px-4': props.layout === 'vertical',
|
|
|
|
'py-4': props.layout === 'horizontal'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'text-left': props.align === 'left' || (props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 0),
|
|
|
|
'text-right': props.align === 'right' || (props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'min-h-0': props.layout === 'vertical' && context.index === context.count,
|
2023-08-01 13:06:10 +00:00
|
|
|
'grow-0': props.layout === 'horizontal' && context.index === context.count
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
dataview: {
|
|
|
|
content: {
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'bg-white text-gray-700 border-0 p-0',
|
2023-08-01 06:47:54 +00:00
|
|
|
'dark:bg-gray-900 dark:text-white/80' // Dark Mode
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
grid: {
|
|
|
|
class: 'flex flex-wrap ml-0 mr-0 mt-0 bg-white dark:bg-gray-900'
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: 'bg-gray-100 dark:bg-gray-800 text-gray-800 dark:text-white/80 border-gray-200 dark:border-blue-900/40 border-t border-b p-4 font-bold'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
dataviewlayoutoptions: {
|
|
|
|
listbutton: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom justify-center border',
|
|
|
|
'transition duration-200',
|
|
|
|
'w-12 pt-3 pb-3 rounded-lg rounded-r-none',
|
|
|
|
props.modelValue === 'list' ? 'bg-blue-500 border-blue-500 text-white dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' : 'bg-white border-gray-300 text-blue-gray-700 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // highlighted state
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
gridbutton: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom justify-center border',
|
|
|
|
'transition duration-200',
|
|
|
|
'w-12 pt-3 pb-3 rounded-lg rounded-l-none',
|
|
|
|
props.modelValue === 'grid' ? 'bg-blue-500 border-blue-500 text-white dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' : 'bg-white border-gray-300 text-blue-gray-700 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // highlighted state
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
organizationchart: {
|
2023-08-10 23:36:23 +00:00
|
|
|
table: {
|
|
|
|
class: 'mx-auto my-0 border-spacing-0 border-separate'
|
|
|
|
},
|
|
|
|
cell: {
|
|
|
|
class: 'text-center align-top py-0 px-3'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
node: {
|
|
|
|
class: [
|
|
|
|
'relative inline-block bg-white border border-gray-300 text-gray-600 p-5',
|
|
|
|
'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
linecell: {
|
|
|
|
class: 'text-center align-top py-0 px-3'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
linedown: {
|
|
|
|
class: [
|
|
|
|
'mx-auto my-0 w-px h-[20px] bg-gray-300',
|
|
|
|
'dark:bg-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
lineleft: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-center align-top py-0 px-3 rounded-none border-r border-gray-300',
|
2023-08-05 10:19:35 +00:00
|
|
|
'dark:border-blue-900/40', //Dark Mode
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'border-t': context.lineTop
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
|
|
|
lineright: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-center align-top py-0 px-3 rounded-none',
|
2023-08-05 10:19:35 +00:00
|
|
|
'dark:border-blue-900/40', //Dark Mode
|
2023-07-25 11:53:01 +00:00
|
|
|
{
|
|
|
|
'border-t border-gray-300': context.lineTop
|
2023-08-05 10:19:35 +00:00
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
nodecell: {
|
|
|
|
class: 'text-center align-top py-0 px-3'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
nodetoggler: {
|
|
|
|
class: [
|
|
|
|
'absolute bottom-[-0.75rem] left-2/4 -ml-3 w-6 h-6 bg-inherit text-inherit rounded-full z-2 cursor-pointer no-underline select-none',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]' // Focus styles
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
nodetogglericon: {
|
|
|
|
class: 'relative inline-block w-4 h-4'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
orderlist: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'flex'
|
|
|
|
},
|
|
|
|
controls: {
|
|
|
|
class: 'flex flex-col justify-center p-5'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
moveupbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movetopbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movedownbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movebottombutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
container: {
|
|
|
|
class: 'flex-auto'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
header: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md',
|
|
|
|
'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
list: {
|
|
|
|
class: [
|
|
|
|
'list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]',
|
|
|
|
'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none',
|
|
|
|
'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'relative cursor-pointer overflow-hidden',
|
|
|
|
'py-3 px-5 m-0 border-none text-gray-600 dark:text-white/80',
|
|
|
|
'transition duration-200',
|
|
|
|
{
|
|
|
|
'text-blue-700 bg-blue-500/20 dark:bg-blue-300/20': context.active && !context.focused,
|
|
|
|
'text-blue-700 bg-blue-500/30 dark:bg-blue-300/30': context.active && context.focused,
|
|
|
|
'text-gray-600 bg-gray-300 dark:bg-blue-900/40': !context.active && context.focused
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
picklist: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'flex'
|
|
|
|
},
|
|
|
|
sourcecontrols: {
|
|
|
|
class: 'flex flex-col justify-center p-5'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
sourcemoveupbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
sourcemovetopbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
sourcemovedownbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
sourcemovebottombutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sourcewrapper: {
|
|
|
|
class: 'grow shrink basis-2/4'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
sourceheader: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md',
|
|
|
|
'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
sourcelist: {
|
|
|
|
class: [
|
|
|
|
'list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]',
|
|
|
|
'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none',
|
|
|
|
'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'relative cursor-pointer overflow-hidden',
|
|
|
|
'py-3 px-5 m-0 border-none text-gray-600 dark:text-white/80',
|
|
|
|
'transition duration-200',
|
|
|
|
{
|
|
|
|
'text-blue-700 bg-blue-500/20 dark:bg-blue-300/20': context.active && !context.focused,
|
|
|
|
'text-blue-700 bg-blue-500/30 dark:bg-blue-300/30': context.active && context.focused,
|
|
|
|
'text-gray-600 bg-gray-300 dark:bg-blue-900/40': !context.active && context.focused
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
buttons: {
|
|
|
|
class: 'flex flex-col justify-center p-5'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
movetotargetbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movealltotargetbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movetosourcebutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
movealltosourcebutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
targetcontrols: {
|
|
|
|
class: 'flex flex-col justify-center p-5'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
targetmoveupbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
targetmovetopbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
targetmovedownbutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
targetmovebottombutton: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden m-0', // button component
|
2023-07-25 11:53:01 +00:00
|
|
|
'text-white bg-blue-500 border border-blue-500 rounded-md',
|
|
|
|
'transition duration-200 ease-in-out',
|
|
|
|
'justify-center px-0 py-3', // icon only
|
2023-10-12 14:58:17 +00:00
|
|
|
'mb-2 w-12', // orderlist button
|
2023-07-25 11:53:01 +00:00
|
|
|
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
2023-08-02 15:06:18 +00:00
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
label: {
|
|
|
|
class: 'flex-initial w-0'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
targetwrapper: {
|
|
|
|
class: 'grow shrink basis-2/4'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
targetheader: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md',
|
|
|
|
'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
targetlist: {
|
|
|
|
class: [
|
|
|
|
'list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]',
|
|
|
|
'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none',
|
|
|
|
'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
|
|
|
|
]
|
2023-08-07 10:35:43 +00:00
|
|
|
},
|
|
|
|
transition: {
|
|
|
|
enterFromClass: '!transition-none',
|
|
|
|
enterActiveClass: '!transition-none',
|
|
|
|
leaveActiveClass: '!transition-none',
|
|
|
|
leaveToClass: '!transition-none'
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
paginator: {
|
|
|
|
root: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center flex-wrap',
|
|
|
|
'bg-white text-gray-500 border-0 px-4 py-2 rounded-md',
|
|
|
|
'dark:bg-gray-900 dark:text-white/60 dark:border-blue-900/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
firstpagebutton: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center select-none overflow-hidden leading-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled,
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
previouspagebutton: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center select-none overflow-hidden leading-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled,
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
nextpagebutton: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center select-none overflow-hidden leading-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled,
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
lastpagebutton: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center select-none overflow-hidden leading-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-default pointer-events-none opacity-60': context.disabled,
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
pagebutton: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center select-none overflow-hidden leading-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:border-blue-300 dark:text-white', // Dark Mode
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // Focus
|
|
|
|
{
|
|
|
|
'bg-blue-50 border-blue-50 text-blue-700 dark:bg-blue-300': context.active
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
rowperpagedropdown: {
|
|
|
|
root: ({ props, state }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex relative cursor-pointer user-none',
|
|
|
|
'bg-white border rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'h-12 mx-2',
|
|
|
|
'dark:bg-gray-950 dark:border-blue-900/40', //DarkMode
|
|
|
|
{
|
|
|
|
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] border-blue-500': state.focused && !props.disabled, //Focus
|
|
|
|
'border-gray-300': !state.focused,
|
|
|
|
'hover:border-blue-500': !props.disabled //Hover
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
input: {
|
|
|
|
class: [
|
2023-10-05 13:32:36 +00:00
|
|
|
'font-sans text-base text-gray-600 p-3 m-0 rounded-md appearance-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border-0 pr-0',
|
|
|
|
'focus:outline-none focus:outline-offset-0',
|
|
|
|
'dark:text-white' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
trigger: {
|
|
|
|
class: ['flex items-center justify-center shrink-0', 'text-gray-500 dark:text-white w-12 rounded-r-md']
|
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: [
|
|
|
|
'bg-white text-gray-600 border-0 rounded-md shadow-[0_2px_12px_rgba(0,0,0,0.1)]',
|
|
|
|
'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'overflow-auto'
|
|
|
|
},
|
|
|
|
list: {
|
|
|
|
class: 'm-0 p-0 py-3 list-none'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative font-normal cursor-pointer whitespace-nowrap overflow-hidden',
|
2023-07-25 11:53:01 +00:00
|
|
|
'm-0 py-3 px-5 border-none text-gray-600 rounded-none',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white/80', // Dark Mode
|
|
|
|
{
|
|
|
|
'text-blue-700 bg-blue-50 dark:text-white/80 dark:bg-blue-300': !context.focused && context.selected,
|
|
|
|
'bg-blue-300/40': context.focused && context.selected,
|
|
|
|
'text-gray-600 bg-gray-300 dark:text-white/80 dark:bg-blue-900/40': context.focused && !context.selected
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
|
|
|
jumptopageinput: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'inline-flex mx-2'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
input: {
|
|
|
|
class: [
|
2023-10-05 13:32:36 +00:00
|
|
|
'font-sans text-base text-gray-600 p-3 m-0 rounded-md appearance-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border border-gray-300 pr-0',
|
|
|
|
'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] focus:border-blue-300',
|
|
|
|
'dark:text-white dark:bg-gray-950 dark:border-blue-900/40', //Dark Mode
|
|
|
|
'm-0 flex-auto max-w-[3rem]'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
jumptopagedropdown: {
|
|
|
|
root: ({ props, state }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex relative cursor-pointer user-none',
|
|
|
|
'bg-white border rounded-md',
|
|
|
|
'transition duration-200',
|
|
|
|
'h-12 mx-2',
|
|
|
|
'dark:bg-gray-950 dark:border-blue-900/40', //DarkMode
|
|
|
|
{
|
|
|
|
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] border-blue-500': state.focused && !props.disabled, //Focus
|
|
|
|
'border-gray-300': !state.focused,
|
|
|
|
'hover:border-blue-500': !props.disabled //Hover
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
input: {
|
|
|
|
class: [
|
2023-10-05 13:32:36 +00:00
|
|
|
'font-sans text-base text-gray-600 p-3 m-0 rounded-md appearance-none',
|
2023-07-25 11:53:01 +00:00
|
|
|
'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border-0 pr-0',
|
|
|
|
'focus:outline-none focus:outline-offset-0',
|
|
|
|
'dark:text-white' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
trigger: {
|
|
|
|
class: ['flex items-center justify-center shrink-0', 'text-gray-500 dark:text-white w-12 rounded-r-md']
|
|
|
|
},
|
|
|
|
panel: {
|
|
|
|
class: [
|
|
|
|
'bg-white text-gray-600 border-0 rounded-md shadow-[0_2px_12px_rgba(0,0,0,0.1)]',
|
|
|
|
'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
wrapper: {
|
|
|
|
class: 'overflow-auto'
|
|
|
|
},
|
|
|
|
list: {
|
|
|
|
class: 'm-0 p-0 py-3 list-none'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
item: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative font-normal cursor-pointer whitespace-nowrap overflow-hidden',
|
2023-07-25 11:53:01 +00:00
|
|
|
'm-0 py-3 px-5 border-none text-gray-600 rounded-none',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white/80', // Dark Mode
|
|
|
|
{
|
|
|
|
'text-blue-700 bg-blue-50 dark:text-white/80 dark:bg-blue-300': !context.focused && context.selected,
|
|
|
|
'bg-blue-300/40': context.focused && context.selected,
|
|
|
|
'text-gray-600 bg-gray-300 dark:text-white/80 dark:bg-blue-900/40': context.focused && !context.selected
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
treetable: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'relative',
|
|
|
|
{
|
|
|
|
'flex flex-col h-full': props.scrollHeight === 'flex'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
loadingoverlay: {
|
|
|
|
class: [
|
|
|
|
'fixed w-full h-full t-0 l-0 bg-gray-100/40',
|
|
|
|
'transition duration-200',
|
|
|
|
'absolute flex items-center justify-center z-2',
|
|
|
|
'dark:bg-gray-950/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
loadingicon: {
|
|
|
|
class: 'w-8 h-8'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
header: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border border-x-0 border-t-0 border-gray-300 p-4 font-bold',
|
|
|
|
'dark:bg-gray-900 dark:text-white/70 dark:border-blue-900/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
wrapper: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'relative overflow-auto': props.scrollable,
|
|
|
|
'overflow-x-auto': props.resizableColumns
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
footer: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border border-x-0 border-t-0 border-gray-300 p-4 font-bold',
|
|
|
|
'dark:bg-gray-900 dark:text-white/70 dark:border-blue-900/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
table: {
|
|
|
|
class: 'border-collapse table-fixed w-full'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
thead: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'block sticky top-0 z-[1]': props.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
tbody: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
block: props.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
tfoot: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
block: props.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
headerrow: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'flex flex-nowrap w-full': props.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
row: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'transition duration-200',
|
|
|
|
'focus:outline focus:outline-[0.15rem] focus:outline-blue-200 focus:outline-offset-[-0.15rem]', // Focus
|
|
|
|
context.selected ? 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80' : 'bg-white text-gray-600 dark:bg-gray-900 dark:text-white/80',
|
|
|
|
{
|
|
|
|
'hover:bg-gray-300/20 hover:text-gray-600 dark:hover:bg-gray-950': context.selectable && !context.selected, // Hover
|
|
|
|
'flex flex-nowrap w-full': context.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
column: {
|
|
|
|
headercell: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-left border-gray-300 border font-bold',
|
|
|
|
'transition duration-200',
|
|
|
|
context.sorted ? 'bg-blue-50 text-blue-700' : 'bg-slate-50',
|
|
|
|
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4', // Size
|
|
|
|
'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900', //Dark Mode
|
|
|
|
{
|
|
|
|
'flex flex-1 items-center': context.scrollable,
|
|
|
|
'flex-initial shrink-0': context.scrollable && context.scrollDirection === 'both' && !context.frozen,
|
|
|
|
'sticky z-[1]': context.scrollable && context.scrollDirection === 'both' && context.frozen,
|
|
|
|
'border-x-0 border-l-0 border-t-0': !context.showGridlines,
|
|
|
|
'overflow-hidden relative bg-clip-padding': context.resizable && !context.frozen
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
bodycell: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-left border-gray-300 border',
|
|
|
|
'transition duration-200',
|
|
|
|
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4', // Size
|
|
|
|
'dark:border-blue-900/40', //Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-pointer': context.selectable,
|
|
|
|
'flex flex-1 items-center': context.scrollable,
|
|
|
|
'flex-initial shrink-0': context.scrollable && context.scrollDirection === 'both' && !context.frozen,
|
|
|
|
sticky: context.scrollable && context.scrollDirection === 'both' && context.frozen,
|
|
|
|
'border-x-0 border-l-0': !context.showGridlines
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
rowtoggler: ({ context }) => ({
|
|
|
|
class: [
|
2023-10-15 15:55:27 +00:00
|
|
|
'relative inline-flex items-center justify-center cursor-pointer select-none overflow-hidden bg-transparent',
|
2023-07-25 11:53:01 +00:00
|
|
|
'w-8 h-8 border-0 rounded mr-0.5',
|
|
|
|
context.selected ? 'text-blue-700' : 'text-gray-500',
|
|
|
|
'dark:text-white/70' //Dark Mode
|
|
|
|
]
|
|
|
|
}),
|
2023-10-18 01:52:17 +00:00
|
|
|
sort: {
|
|
|
|
class: 'inline-block align-middle'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
sorticon: ({ context }) => ({
|
|
|
|
class: ['ml-2', context.sorted ? 'text-blue-700 dark:text-white/80' : 'text-slate-700 dark:text-white/70']
|
|
|
|
}),
|
|
|
|
sortbadge: {
|
|
|
|
class: [
|
|
|
|
'h-[1.143rem] min-w-[1.143rem] leading-[1.143rem] text-blue-700 bg-blue-50 ml-2 rounded-[50%]',
|
|
|
|
'dark:text-white/80 dark:bg-blue-500/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
columnresizer: {
|
|
|
|
class: 'block absolute top-0 right-0 m-0 w-2 h-full p-0 cursor-col-resize border border-transparent'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
checkboxwrapper: {
|
|
|
|
class: ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6 mr-2']
|
|
|
|
},
|
|
|
|
checkbox: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200',
|
|
|
|
context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900',
|
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
checkboxicon: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'w-4 h-4 transition-all duration-200 text-base dark:text-gray-900',
|
|
|
|
{
|
|
|
|
'text-white': context.checked
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
resizehelper: {
|
|
|
|
class: 'absolute hidden w-px z-10 bg-blue-500 dark:bg-blue-300'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
datatable: {
|
|
|
|
root: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'relative',
|
|
|
|
{
|
|
|
|
'flex flex-col h-full': props.scrollable && props.scrollHeight === 'flex'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
loadingoverlay: {
|
|
|
|
class: [
|
|
|
|
'fixed w-full h-full t-0 l-0 bg-gray-100/40',
|
|
|
|
'transition duration-200',
|
|
|
|
'absolute flex items-center justify-center z-2',
|
|
|
|
'dark:bg-gray-950/40' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
loadingicon: {
|
|
|
|
class: 'w-8 h-8'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
wrapper: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
relative: props.scrollable,
|
|
|
|
'flex flex-col grow h-full': props.scrollable && props.scrollHeight === 'flex'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
header: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border-gray-300 font-bold p-4',
|
|
|
|
'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900', // Dark Mode
|
|
|
|
props.showGridlines ? 'border-x border-t border-b-0' : 'border-y border-x-0'
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
table: {
|
|
|
|
class: 'w-full border-spacing-0'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
thead: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'bg-slate-50 top-0 z-[1]': context.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
tbody: ({ instance, context }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'sticky z-[1]': instance.frozenRow && context.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
tfoot: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
{
|
|
|
|
'bg-slate-50 bottom-0 z-[1]': context.scrollable
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
footer: {
|
|
|
|
class: [
|
|
|
|
'bg-slate-50 text-slate-700 border-t-0 border-b border-x-0 border-gray-300 font-bold p-4',
|
|
|
|
'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
column: {
|
|
|
|
headercell: ({ context, props }) => ({
|
|
|
|
class: [
|
|
|
|
'text-left border-0 border-b border-solid border-gray-300 dark:border-blue-900/40 font-bold',
|
|
|
|
'transition duration-200',
|
|
|
|
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4', // Size
|
|
|
|
context.sorted ? 'bg-blue-50 text-blue-700' : 'bg-slate-50 text-slate-700', // Sort
|
|
|
|
context.sorted ? 'dark:text-white/80 dark:bg-blue-300' : 'dark:text-white/80 dark:bg-gray-900', // Dark Mode
|
|
|
|
{
|
2023-10-09 15:22:36 +00:00
|
|
|
'sticky z-[1]': context.frozen || context.frozen === '', // Frozen Columns
|
2023-07-25 11:53:01 +00:00
|
|
|
'border-x border-y': context?.showGridlines,
|
2023-10-15 15:55:27 +00:00
|
|
|
'overflow-hidden whitespace-nowrap border-y relative bg-clip-padding': context.resizable // Resizable
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
headercontent: {
|
|
|
|
class: 'flex items-center'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
bodycell: ({ props, context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-left border-0 border-b border-solid border-gray-300',
|
|
|
|
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4', // Size
|
|
|
|
'dark:text-white/80 dark:border-blue-900/40', // Dark Mode
|
|
|
|
{
|
|
|
|
'sticky bg-inherit': props.frozen || props.frozen === '', // Frozen Columns
|
|
|
|
'border-x border-y': context?.showGridlines
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
footercell: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'text-left border-0 border-b border-solid border-gray-300 font-bold',
|
|
|
|
'bg-slate-50 text-slate-700',
|
|
|
|
'transition duration-200',
|
|
|
|
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4', // Size
|
|
|
|
'dark:text-white/80 dark:bg-gray-900 dark:border-blue-900/40', // Dark Mode
|
|
|
|
{
|
|
|
|
'border-x border-y': context?.showGridlines
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
sorticon: ({ context }) => ({
|
|
|
|
class: ['ml-2', context.sorted ? 'text-blue-700 dark:text-white/80' : 'text-slate-700 dark:text-white/70']
|
|
|
|
}),
|
|
|
|
sortbadge: {
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center align-middle',
|
|
|
|
'rounded-[50%] w-[1.143rem] leading-[1.143rem] ml-2',
|
|
|
|
'text-blue-700 bg-blue-50',
|
|
|
|
'dark:text-white/80 dark:bg-blue-400' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
columnfilter: {
|
|
|
|
class: 'inline-flex items-center ml-auto'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
filteroverlay: {
|
|
|
|
class: [
|
|
|
|
'bg-white text-gray-600 border-0 rounded-md min-w-[12.5rem]',
|
|
|
|
'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
filtermatchmodedropdown: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'min-[0px]:flex mb-2'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
filterrowitems: {
|
|
|
|
class: 'm-0 p-0 py-3 list-none'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filterrowitem: ({ context }) => ({
|
|
|
|
class: ['m-0 py-3 px-5 bg-transparent', 'transition duration-200', context?.highlighted ? 'text-blue-700 bg-blue-100 dark:text-white/80 dark:bg-blue-300' : 'text-gray-600 bg-transparent dark:text-white/80 dark:bg-transparent']
|
|
|
|
}),
|
|
|
|
filteroperator: {
|
|
|
|
class: [
|
|
|
|
'px-5 py-3 border-b border-solid border-gray-300 text-slate-700 bg-slate-50 rounded-t-md',
|
|
|
|
'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
filteroperatordropdown: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'min-[0px]:flex'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
filterconstraint: {
|
|
|
|
class: 'p-5 border-b border-solid border-gray-300 dark:border-blue-900/40'
|
|
|
|
},
|
|
|
|
filteraddrule: {
|
|
|
|
class: 'py-3 px-5'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filteraddrulebutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'justify-center w-full min-[0px]:text-sm'
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
class: 'flex-auto grow-0'
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
class: 'mr-2'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filterremovebutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'ml-2'
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
class: 'grow-0'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
filterbuttonbar: {
|
|
|
|
class: 'flex items-center justify-between p-5'
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filterclearbutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'w-auto min-[0px]:text-sm border-blue-500 text-blue-500 px-4 py-3'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filterapplybutton: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'w-auto min-[0px]:text-sm px-4 py-3'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
filtermenubutton: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex justify-center items-center cursor-pointer no-underline overflow-hidden relative ml-2',
|
|
|
|
'w-8 h-8 rounded-[50%]',
|
|
|
|
'transition duration-200',
|
|
|
|
'hover:text-slate-700 hover:bg-gray-300/20', // Hover
|
|
|
|
'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // Focus
|
|
|
|
'dark:text-white/70 dark:hover:text-white/80 dark:bg-gray-900', // Dark Mode
|
|
|
|
{
|
|
|
|
'bg-blue-50 text-blue-700': context.active
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
headerfilterclearbutton: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'inline-flex justify-center items-center cursor-pointer no-underline overflow-hidden relative',
|
|
|
|
'text-left bg-transparent m-0 p-0 border-none select-none ml-2',
|
|
|
|
{
|
|
|
|
invisible: !context.hidden
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
columnresizer: {
|
|
|
|
class: 'block absolute top-0 right-0 m-0 w-2 h-full p-0 cursor-col-resize border border-transparent'
|
|
|
|
},
|
|
|
|
rowreordericon: {
|
|
|
|
class: 'cursor-move'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
roweditorinitbutton: {
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center overflow-hidden relative',
|
|
|
|
'text-left cursor-pointer select-none',
|
|
|
|
'w-8 h-8 border-0 rounded-[50%]',
|
|
|
|
'transition duration-200',
|
|
|
|
'text-slate-700 border-transparent',
|
|
|
|
'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', //Focus
|
|
|
|
'hover:text-slate-700 hover:bg-gray-300/20', //Hover
|
|
|
|
'dark:text-white/70' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
roweditorsavebutton: {
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center overflow-hidden relative',
|
|
|
|
'text-left cursor-pointer select-none',
|
|
|
|
'w-8 h-8 border-0 rounded-[50%]',
|
|
|
|
'transition duration-200',
|
|
|
|
'text-slate-700 border-transparent',
|
|
|
|
'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', //Focus
|
|
|
|
'hover:text-slate-700 hover:bg-gray-300/20', //Hover
|
|
|
|
'dark:text-white/70' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
roweditorcancelbutton: {
|
|
|
|
class: [
|
|
|
|
'inline-flex items-center justify-center overflow-hidden relative',
|
|
|
|
'text-left cursor-pointer select-none',
|
|
|
|
'w-8 h-8 border-0 rounded-[50%]',
|
|
|
|
'transition duration-200',
|
|
|
|
'text-slate-700 border-transparent',
|
|
|
|
'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', //Focus
|
|
|
|
'hover:text-slate-700 hover:bg-gray-300/20', //Hover
|
|
|
|
'dark:text-white/70' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
|
|
|
radiobuttonwrapper: {
|
|
|
|
class: ['relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6']
|
|
|
|
},
|
|
|
|
radiobutton: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex justify-center items-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out',
|
|
|
|
context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900',
|
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
|
|
|
|
'cursor-default opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
radiobuttonicon: ({ context }) => ({
|
|
|
|
class: ['transform rounded-full', 'block w-3 h-3 transition duration-200 bg-white dark:bg-gray-900', { 'backface-hidden scale-10 invisible': context.checked === false, 'transform scale-100 visible': context.checked === true }]
|
|
|
|
}),
|
|
|
|
headercheckboxwrapper: {
|
|
|
|
class: ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6']
|
|
|
|
},
|
|
|
|
headercheckbox: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200',
|
|
|
|
context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900',
|
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
|
|
|
|
'cursor-default opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
headercheckboxicon: {
|
|
|
|
class: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
checkboxwrapper: {
|
|
|
|
class: ['cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6']
|
|
|
|
},
|
|
|
|
checkbox: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center',
|
|
|
|
'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200',
|
|
|
|
context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900',
|
|
|
|
{
|
|
|
|
'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
|
|
|
|
'cursor-default opacity-60': context.disabled
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
checkboxicon: {
|
|
|
|
class: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900'
|
|
|
|
},
|
2023-08-07 10:35:43 +00:00
|
|
|
transition: TRANSITIONS.overlay
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
bodyrow: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
context.selected ? 'bg-blue-50 text-blue-700 dark:bg-blue-300' : 'bg-white text-gray-600 dark:bg-gray-900',
|
2023-09-07 08:04:19 +00:00
|
|
|
context.stripedRows ? (context.index % 2 === 0 ? 'bg-white text-gray-600 dark:bg-gray-900' : 'bg-blue-100/50 text-gray-600 dark:bg-gray-950') : '',
|
2023-07-25 11:53:01 +00:00
|
|
|
'transition duration-200',
|
|
|
|
'focus:outline focus:outline-[0.15rem] focus:outline-blue-200 focus:outline-offset-[-0.15rem]', // Focus
|
|
|
|
'dark:text-white/80 dark:focus:outline dark:focus:outline-[0.15rem] dark:focus:outline-blue-300 dark:focus:outline-offset-[-0.15rem]', // Dark Mode
|
|
|
|
{
|
|
|
|
'cursor-pointer': context.selectable,
|
|
|
|
'hover:bg-gray-300/20 hover:text-gray-600': context.selectable && !context.selected // Hover
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2023-08-10 23:36:23 +00:00
|
|
|
rowexpansion: {
|
|
|
|
class: 'bg-white text-gray-600 dark:bg-gray-900 dark:text-white/80'
|
|
|
|
},
|
2023-07-25 11:53:01 +00:00
|
|
|
rowgroupheader: {
|
2023-09-01 10:34:12 +00:00
|
|
|
class: ['sticky z-[1]', 'bg-white text-gray-600', 'dark:bg-gray-900', 'transition duration-200']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
rowgroupfooter: {
|
2023-09-01 10:34:12 +00:00
|
|
|
class: ['sticky z-[1]', 'bg-white text-gray-600', 'dark:bg-gray-900', 'transition duration-200']
|
2023-07-25 11:53:01 +00:00
|
|
|
},
|
|
|
|
rowgrouptoggler: {
|
|
|
|
class: [
|
|
|
|
'text-left m-0 p-0 cursor-pointer select-none',
|
|
|
|
'inline-flex items-center justify-center overflow-hidden relative',
|
|
|
|
'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-[50%]',
|
|
|
|
'transition duration-200',
|
|
|
|
'dark:text-white/70' // Dark Mode
|
|
|
|
]
|
|
|
|
},
|
2023-08-10 23:36:23 +00:00
|
|
|
rowgrouptogglericon: {
|
|
|
|
class: 'inline-block w-4 h-4'
|
|
|
|
},
|
|
|
|
resizehelper: {
|
|
|
|
class: 'absolute hidden w-px z-10 bg-blue-500 dark:bg-blue-300'
|
|
|
|
}
|
2023-08-03 06:35:48 +00:00
|
|
|
},
|
|
|
|
// CHART
|
|
|
|
chart: {
|
2023-08-10 23:36:23 +00:00
|
|
|
root: {
|
|
|
|
class: 'relative'
|
|
|
|
}
|
2023-07-25 11:53:01 +00:00
|
|
|
}
|
|
|
|
};
|