mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Compare commits
5 Commits
dark-base-
...
dark-error
| Author | SHA1 | Date | |
|---|---|---|---|
| 982125a199 | |||
| c5acf1343e | |||
| 0321ca5515 | |||
| bd345949e5 | |||
| b4b00ebdd6 |
@ -39,6 +39,8 @@ $base-content-placeholders-border-radius: 6px !default;
|
|||||||
$base-content-placeholders-line-height: 15px !default;
|
$base-content-placeholders-line-height: 15px !default;
|
||||||
$base-content-placeholders-spacing: 10px !default;
|
$base-content-placeholders-spacing: 10px !default;
|
||||||
|
|
||||||
|
$base-content-placeholders-primary-color-dark: rgb(71, 85, 105) !default;
|
||||||
|
$base-content-placeholders-secondary-color-dark: rgb(71, 85, 105) !default;
|
||||||
// Animations
|
// Animations
|
||||||
@keyframes vueContentPlaceholdersAnimation {
|
@keyframes vueContentPlaceholdersAnimation {
|
||||||
0% {
|
0% {
|
||||||
@ -57,6 +59,10 @@ $base-content-placeholders-spacing: 10px !default;
|
|||||||
min-height: $base-content-placeholders-line-height;
|
min-height: $base-content-placeholders-line-height;
|
||||||
background: $base-content-placeholders-secondary-color;
|
background: $base-content-placeholders-secondary-color;
|
||||||
|
|
||||||
|
.dark & {
|
||||||
|
background: $base-content-placeholders-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
.base-content-placeholders-is-rounded & {
|
.base-content-placeholders-is-rounded & {
|
||||||
border-radius: $base-content-placeholders-border-radius;
|
border-radius: $base-content-placeholders-border-radius;
|
||||||
}
|
}
|
||||||
@ -86,6 +92,15 @@ $base-content-placeholders-spacing: 10px !default;
|
|||||||
animation-name: vueContentPlaceholdersAnimation;
|
animation-name: vueContentPlaceholdersAnimation;
|
||||||
animation-timing-function: linear;
|
animation-timing-function: linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark .base-content-placeholders-is-animated &::before {
|
||||||
|
background: linear-gradient(
|
||||||
|
to right,
|
||||||
|
transparent 0%,
|
||||||
|
darken($base-content-placeholders-secondary-color-dark, 5%) 15%,
|
||||||
|
transparent 30%
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin base-content-placeholders-spacing {
|
@mixin base-content-placeholders-spacing {
|
||||||
@ -156,6 +171,10 @@ $base-content-placeholders-spacing: 10px !default;
|
|||||||
min-height: $base-content-placeholders-line-height;
|
min-height: $base-content-placeholders-line-height;
|
||||||
background: $base-content-placeholders-secondary-color;
|
background: $base-content-placeholders-secondary-color;
|
||||||
|
|
||||||
|
.dark & {
|
||||||
|
background: $base-content-placeholders-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
.base-content-placeholders-is-animated &::before {
|
.base-content-placeholders-is-animated &::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -177,6 +196,14 @@ $base-content-placeholders-spacing: 10px !default;
|
|||||||
animation-timing-function: linear;
|
animation-timing-function: linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark .base-content-placeholders-is-animated &::before {
|
||||||
|
background: linear-gradient(
|
||||||
|
to right,
|
||||||
|
transparent 0%,
|
||||||
|
darken($base-content-placeholders-secondary-color-dark, 5%) 15%,
|
||||||
|
transparent 30%
|
||||||
|
);
|
||||||
|
}
|
||||||
// @include base-content-placeholders-spacing;
|
// @include base-content-placeholders-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,8 +30,13 @@
|
|||||||
leave-to="opacity-0"
|
leave-to="opacity-0"
|
||||||
>
|
>
|
||||||
<DialogOverlay
|
<DialogOverlay
|
||||||
class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"
|
class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75 dark:backdrop-blur-xl dark:bg-gray-900/80"
|
||||||
|
>
|
||||||
|
<BaseDarkHighlight
|
||||||
|
class="!bg-highlight/[.17] !top-1/2 h-60 -translate-y-1/2 mt-5"
|
||||||
|
:class="dialogSizeClasses"
|
||||||
/>
|
/>
|
||||||
|
</DialogOverlay>
|
||||||
</TransitionChild>
|
</TransitionChild>
|
||||||
|
|
||||||
<!-- This element is to trick the browser into centering the modal contents. -->
|
<!-- This element is to trick the browser into centering the modal contents. -->
|
||||||
@ -64,6 +69,11 @@
|
|||||||
shadow-xl
|
shadow-xl
|
||||||
sm:my-8 sm:align-middle sm:w-full sm:p-6
|
sm:my-8 sm:align-middle sm:w-full sm:p-6
|
||||||
relative
|
relative
|
||||||
|
dark:backdrop-blur-xl
|
||||||
|
dark:shadow-glass
|
||||||
|
dark:border
|
||||||
|
dark:border-white/10
|
||||||
|
dark:bg-gray-800
|
||||||
"
|
"
|
||||||
:class="dialogSizeClasses"
|
:class="dialogSizeClasses"
|
||||||
>
|
>
|
||||||
@ -80,31 +90,31 @@
|
|||||||
rounded-full
|
rounded-full
|
||||||
"
|
"
|
||||||
:class="{
|
:class="{
|
||||||
'bg-green-100': dialogStore.variant === 'primary',
|
'bg-green-100 dark:bg-primary-500': dialogStore.variant === 'primary',
|
||||||
'bg-red-100': dialogStore.variant === 'danger',
|
'bg-red-100 dark:bg-red-500': dialogStore.variant === 'danger',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon
|
||||||
v-if="dialogStore.variant === 'primary'"
|
v-if="dialogStore.variant === 'primary'"
|
||||||
name="CheckIcon"
|
name="CheckIcon"
|
||||||
class="w-6 h-6 text-green-600"
|
class="w-6 h-6 text-green-600 dark:text-white"
|
||||||
/>
|
/>
|
||||||
<BaseIcon
|
<BaseIcon
|
||||||
v-else
|
v-else
|
||||||
name="ExclamationIcon"
|
name="ExclamationIcon"
|
||||||
class="w-6 h-6 text-red-600"
|
class="w-6 h-6 text-red-600 dark:text-white"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-3 text-center sm:mt-5">
|
<div class="mt-3 text-center sm:mt-5">
|
||||||
<DialogTitle
|
<DialogTitle
|
||||||
as="h3"
|
as="h3"
|
||||||
class="text-lg font-medium leading-6 text-gray-900"
|
class="text-lg font-medium leading-6 text-gray-900 dark:text-white"
|
||||||
>
|
>
|
||||||
{{ dialogStore.title }}
|
{{ dialogStore.title }}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<p class="text-sm text-gray-500">
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
||||||
{{ dialogStore.message }}
|
{{ dialogStore.message }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="rounded-md bg-red-50 p-4">
|
<div
|
||||||
|
class="
|
||||||
|
rounded-md
|
||||||
|
bg-red-50
|
||||||
|
p-4
|
||||||
|
dark:border dark:border-red-400 dark:bg-transparent
|
||||||
|
"
|
||||||
|
>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="shrink-0">
|
<div class="shrink-0">
|
||||||
<XCircleIcon class="h-5 w-5 text-red-400" aria-hidden="true" />
|
<XCircleIcon class="h-5 w-5 text-red-400 dark:text-red-500" aria-hidden="true" />
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-3">
|
<div class="ml-3">
|
||||||
<h3 class="text-sm font-medium text-red-800">
|
<h3 class="text-sm font-medium text-red-800 dark:text-red-500">
|
||||||
{{ errorTitle }}
|
{{ errorTitle }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mt-2 text-sm text-red-700">
|
<div class="mt-2 text-sm text-red-700">
|
||||||
|
|||||||
@ -18,17 +18,17 @@ const props = defineProps({
|
|||||||
const badgeColorClasses = computed(() => {
|
const badgeColorClasses = computed(() => {
|
||||||
switch (props.status) {
|
switch (props.status) {
|
||||||
case 'DRAFT':
|
case 'DRAFT':
|
||||||
return 'bg-yellow-300 bg-opacity-25 px-2 py-1 text-sm text-yellow-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-500 dark:text-yellow-500'
|
return 'bg-yellow-300 bg-opacity-25 px-2 py-1 text-sm text-yellow-800 uppercase font-normal text-center '
|
||||||
case 'SENT':
|
case 'SENT':
|
||||||
return ' bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-200 dark:text-yellow-200'
|
return ' bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center '
|
||||||
case 'VIEWED':
|
case 'VIEWED':
|
||||||
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-blue-300 dark:text-blue-300'
|
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center'
|
||||||
case 'EXPIRED':
|
case 'EXPIRED':
|
||||||
return 'bg-red-300 bg-opacity-25 px-2 py-1 text-sm text-red-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-red-500 dark:text-red-500'
|
return 'bg-red-300 bg-opacity-25 px-2 py-1 text-sm text-red-800 uppercase font-normal text-center'
|
||||||
case 'ACCEPTED':
|
case 'ACCEPTED':
|
||||||
return 'bg-green-400 bg-opacity-25 px-2 py-1 text-sm text-green-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-green-400 dark:text-green-400'
|
return 'bg-green-400 bg-opacity-25 px-2 py-1 text-sm text-green-800 uppercase font-normal text-center'
|
||||||
case 'REJECTED':
|
case 'REJECTED':
|
||||||
return 'bg-purple-300 bg-opacity-25 px-2 py-1 text-sm text-purple-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-purple-400 dark:text-purple-400'
|
return 'bg-purple-300 bg-opacity-25 px-2 py-1 text-sm text-purple-800 uppercase font-normal text-center'
|
||||||
default:
|
default:
|
||||||
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center'
|
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
leave-from-class="opacity-100"
|
leave-from-class="opacity-100"
|
||||||
leave-to-class="opacity-0"
|
leave-to-class="opacity-0"
|
||||||
>
|
>
|
||||||
<div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded">
|
<div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded dark:bg-gray-800">
|
||||||
<slot name="filter-header" />
|
<slot name="filter-header" />
|
||||||
|
|
||||||
<label
|
<label
|
||||||
@ -20,6 +20,7 @@
|
|||||||
hover:text-gray-700
|
hover:text-gray-700
|
||||||
top-2.5
|
top-2.5
|
||||||
right-3.5
|
right-3.5
|
||||||
|
dark:text-gray-300
|
||||||
"
|
"
|
||||||
@click="$emit('clear')"
|
@click="$emit('clear')"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -20,25 +20,25 @@ export default {
|
|||||||
const badgeColorClasses = computed(() => {
|
const badgeColorClasses = computed(() => {
|
||||||
switch (props.status) {
|
switch (props.status) {
|
||||||
case 'DRAFT':
|
case 'DRAFT':
|
||||||
return 'bg-yellow-300 bg-opacity-25 px-2 py-1 text-sm text-yellow-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-500 dark:text-yellow-500'
|
return 'bg-yellow-300 bg-opacity-25 px-2 py-1 text-sm text-yellow-800 uppercase font-normal text-center'
|
||||||
case 'SENT':
|
case 'SENT':
|
||||||
return ' bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-lime-200 dark:text-yellow-200'
|
return ' bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center '
|
||||||
case 'VIEWED':
|
case 'VIEWED':
|
||||||
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-blue-300 dark:text-blue-300'
|
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center'
|
||||||
case 'COMPLETED':
|
case 'COMPLETED':
|
||||||
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-green-400 dark:text-green-400'
|
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center'
|
||||||
case 'DUE':
|
case 'DUE':
|
||||||
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-500 dark:text-yellow-500'
|
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center'
|
||||||
case 'OVERDUE':
|
case 'OVERDUE':
|
||||||
return 'bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-red-500 dark:text-red-500'
|
return 'bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center'
|
||||||
case 'UNPAID':
|
case 'UNPAID':
|
||||||
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-500 dark:text-yellow-500'
|
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center'
|
||||||
case 'PARTIALLY_PAID':
|
case 'PARTIALLY_PAID':
|
||||||
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-green-400 dark:text-green-400'
|
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center'
|
||||||
case 'PAID':
|
case 'PAID':
|
||||||
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center text-center dark:bg-transparent dark:border dark:border-green-400 dark:text-green-400'
|
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center'
|
||||||
default:
|
default:
|
||||||
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-gray-502 dark:text-gray-200'
|
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return { badgeColorClasses }
|
return { badgeColorClasses }
|
||||||
|
|||||||
@ -24,15 +24,15 @@ export default {
|
|||||||
const badgeColorClasses = computed(() => {
|
const badgeColorClasses = computed(() => {
|
||||||
switch (props.status) {
|
switch (props.status) {
|
||||||
case 'PAID':
|
case 'PAID':
|
||||||
return 'bg-primary-300 bg-opacity-25 text-primary-800 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-indigo-400 dark:text-indigo-400'
|
return 'bg-primary-300 bg-opacity-25 text-primary-800 uppercase font-normal text-center'
|
||||||
case 'UNPAID':
|
case 'UNPAID':
|
||||||
return ' bg-yellow-500 bg-opacity-25 text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-orange-300 dark:text-orange-300'
|
return ' bg-yellow-500 bg-opacity-25 text-yellow-900 uppercase font-normal text-center '
|
||||||
case 'PARTIALLY_PAID':
|
case 'PARTIALLY_PAID':
|
||||||
return 'bg-blue-400 bg-opacity-25 text-blue-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-blue-300 dark:text-blue-300'
|
return 'bg-blue-400 bg-opacity-25 text-blue-900 uppercase font-normal text-center'
|
||||||
case 'OVERDUE':
|
case 'OVERDUE':
|
||||||
return 'bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center'
|
return 'bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center'
|
||||||
default:
|
default:
|
||||||
return 'bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-gray-300 dark:text-gray-300'
|
return 'bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return { badgeColorClasses }
|
return { badgeColorClasses }
|
||||||
|
|||||||
@ -20,13 +20,13 @@ export default {
|
|||||||
const badgeColorClasses = computed(() => {
|
const badgeColorClasses = computed(() => {
|
||||||
switch (props.status) {
|
switch (props.status) {
|
||||||
case 'COMPLETED':
|
case 'COMPLETED':
|
||||||
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-green-500 dark:text-green-500'
|
return 'bg-green-500 bg-opacity-25 px-2 py-1 text-sm text-green-900 uppercase font-normal text-center'
|
||||||
case 'ON_HOLD':
|
case 'ON_HOLD':
|
||||||
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-yellow-500 dark:text-yellow-500'
|
return 'bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm text-yellow-900 uppercase font-normal text-center'
|
||||||
case 'ACTIVE':
|
case 'ACTIVE':
|
||||||
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-blue-400 dark:text-blue-400'
|
return 'bg-blue-400 bg-opacity-25 px-2 py-1 text-sm text-blue-900 uppercase font-normal text-center'
|
||||||
default:
|
default:
|
||||||
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center dark:bg-transparent dark:border dark:border-gray-500 dark:text-gray-500'
|
return 'bg-gray-500 bg-opacity-25 px-2 py-1 text-sm text-gray-900 uppercase font-normal text-center'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return { badgeColorClasses }
|
return { badgeColorClasses }
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<Switch
|
<Switch
|
||||||
v-model="enabled"
|
v-model="enabled"
|
||||||
:class="enabled ? 'bg-primary-500' : 'bg-gray-300'"
|
:class="enabled ? 'bg-primary-500' : 'bg-gray-300 dark:bg-gray-900'"
|
||||||
class="
|
class="
|
||||||
relative
|
relative
|
||||||
inline-flex
|
inline-flex
|
||||||
@ -21,7 +21,11 @@
|
|||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
:class="enabled ? 'translate-x-6' : 'translate-x-1'"
|
:class="
|
||||||
|
enabled
|
||||||
|
? 'translate-x-6 dark:bg-white'
|
||||||
|
: 'translate-x-1 dark:bg-gray-500'
|
||||||
|
"
|
||||||
class="
|
class="
|
||||||
inline-block
|
inline-block
|
||||||
w-4
|
w-4
|
||||||
|
|||||||
@ -5,12 +5,12 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<SwitchLabel
|
<SwitchLabel
|
||||||
as="p"
|
as="p"
|
||||||
class="p-0 mb-1 text-sm leading-snug text-black font-medium"
|
class="p-0 mb-1 text-sm leading-snug text-black font-medium dark:text-white"
|
||||||
passive
|
passive
|
||||||
>
|
>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</SwitchLabel>
|
</SwitchLabel>
|
||||||
<SwitchDescription class="text-sm text-gray-500">
|
<SwitchDescription class="text-sm text-gray-500 dark:text-gray-400">
|
||||||
{{ description }}
|
{{ description }}
|
||||||
</SwitchDescription>
|
</SwitchDescription>
|
||||||
</div>
|
</div>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:model-value="modelValue"
|
:model-value="modelValue"
|
||||||
:class="[
|
:class="[
|
||||||
modelValue ? 'bg-primary-500' : 'bg-gray-200',
|
modelValue ? 'bg-primary-500' : 'bg-gray-200 dark:bg-gray-900',
|
||||||
'ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
|
'ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
|
||||||
]"
|
]"
|
||||||
@update:modelValue="onUpdate"
|
@update:modelValue="onUpdate"
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<span
|
<span
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
:class="[
|
:class="[
|
||||||
modelValue ? 'translate-x-5' : 'translate-x-0',
|
modelValue ? 'translate-x-5 dark:bg-white' : 'translate-x-0 dark:bg-gray-500',
|
||||||
'inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200',
|
'inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200',
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user