mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Compare commits
1 Commits
dark-baseI
...
dark-file-
| Author | SHA1 | Date | |
|---|---|---|---|
| 1875c319f9 |
@ -21,6 +21,7 @@
|
|||||||
group
|
group
|
||||||
min-h-[100px]
|
min-h-[100px]
|
||||||
bg-gray-50
|
bg-gray-50
|
||||||
|
dark:bg-gray-700 dark:border-gray-600
|
||||||
"
|
"
|
||||||
:class="avatar ? 'w-32 h-32' : 'w-full'"
|
:class="avatar ? 'w-32 h-32' : 'w-full'"
|
||||||
>
|
>
|
||||||
@ -49,7 +50,7 @@
|
|||||||
|
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
class="absolute z-30 bg-white rounded-full -bottom-3 -right-3 group"
|
class="absolute z-30 bg-white rounded-full -bottom-3 -right-3 group dark:bg-gray-900"
|
||||||
@click.prevent.stop="onBrowse"
|
@click.prevent.stop="onBrowse"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon
|
||||||
@ -95,7 +96,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
v-else-if="localFiles.length && avatar && !multiple"
|
v-else-if="localFiles.length && avatar && !multiple"
|
||||||
class="flex w-full h-full border border-gray-200 rounded"
|
class="flex w-full h-full border border-gray-200 rounded dark:border-gray-600"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
v-if="localFiles[0].image"
|
v-if="localFiles[0].image"
|
||||||
@ -169,10 +170,11 @@
|
|||||||
-right-3
|
-right-3
|
||||||
group
|
group
|
||||||
hover:border-gray-300
|
hover:border-gray-300
|
||||||
|
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
|
||||||
"
|
"
|
||||||
@click.prevent.stop="onAvatarRemove(localFiles[0])"
|
@click.prevent.stop="onAvatarRemove(localFiles[0])"
|
||||||
>
|
>
|
||||||
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black" />
|
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black dark:text-white" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -195,6 +197,7 @@
|
|||||||
hover:border-gray-500
|
hover:border-gray-500
|
||||||
relative
|
relative
|
||||||
max-w-md
|
max-w-md
|
||||||
|
dark:border-gray-600 dark:bg-transparent dark:hover:border-gray-700
|
||||||
"
|
"
|
||||||
@click.prevent
|
@click.prevent
|
||||||
>
|
>
|
||||||
@ -270,6 +273,7 @@
|
|||||||
-right-3
|
-right-3
|
||||||
group
|
group
|
||||||
hover:border-gray-300
|
hover:border-gray-300
|
||||||
|
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
|
||||||
"
|
"
|
||||||
@click.prevent.stop="onFileRemove(index)"
|
@click.prevent.stop="onFileRemove(index)"
|
||||||
>
|
>
|
||||||
@ -293,6 +297,7 @@
|
|||||||
hover:border-gray-500
|
hover:border-gray-500
|
||||||
relative
|
relative
|
||||||
max-w-md
|
max-w-md
|
||||||
|
dark:border-gray-600 dark:bg-gray-800 dark:hover:border-gray-700
|
||||||
"
|
"
|
||||||
@click.prevent
|
@click.prevent
|
||||||
>
|
>
|
||||||
@ -368,10 +373,11 @@
|
|||||||
-right-3
|
-right-3
|
||||||
group
|
group
|
||||||
hover:border-gray-300
|
hover:border-gray-300
|
||||||
|
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
|
||||||
"
|
"
|
||||||
@click.prevent.stop="onFileRemove(index)"
|
@click.prevent.stop="onFileRemove(index)"
|
||||||
>
|
>
|
||||||
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black" />
|
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black dark:text-white" />
|
||||||
</a>
|
</a>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -65,7 +65,6 @@
|
|||||||
rounded-l-md
|
rounded-l-md
|
||||||
bg-gray-50
|
bg-gray-50
|
||||||
sm:text-sm
|
sm:text-sm
|
||||||
dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ addon }}
|
{{ addon }}
|
||||||
@ -83,7 +82,7 @@
|
|||||||
pointer-events-none
|
pointer-events-none
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<span class="text-gray-500 dark:text-white sm:text-sm ">
|
<span class="text-gray-500 sm:text-sm">
|
||||||
{{ inlineAddon }}
|
{{ inlineAddon }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -200,7 +199,7 @@ const props = defineProps({
|
|||||||
defaultInputClass: {
|
defaultInputClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default:
|
default:
|
||||||
'font-base block w-full sm:text-sm border-gray-200 rounded-md text-black dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-500',
|
'font-base block w-full sm:text-sm border-gray-200 rounded-md text-black',
|
||||||
},
|
},
|
||||||
iconLeftClass: {
|
iconLeftClass: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -251,8 +250,7 @@ const inputAddonClass = computed(() => {
|
|||||||
|
|
||||||
const inputInvalidClass = computed(() => {
|
const inputInvalidClass = computed(() => {
|
||||||
if (props.invalid) {
|
if (props.invalid) {
|
||||||
return 'border-red-500 dark:border-red-500 ring-red-500 dark:ring-red-500 focus:ring-red-500 dark:focus:ring-red-500 focus:border-red-500 dark:focus:border-red-500 '
|
return 'border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'focus:ring-primary-400 focus:border-primary-400'
|
return 'focus:ring-primary-400 focus:border-primary-400'
|
||||||
@ -260,7 +258,7 @@ const inputInvalidClass = computed(() => {
|
|||||||
|
|
||||||
const inputDisabledClass = computed(() => {
|
const inputDisabledClass = computed(() => {
|
||||||
if (props.disabled) {
|
if (props.disabled) {
|
||||||
return `border-gray-100 bg-gray-100 !text-gray-400 dark:!text-gray-200 ring-gray-200 focus:ring-gray-200 focus:border-gray-100 dark:opacity-25 `
|
return `border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100`
|
||||||
}
|
}
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user