mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Compare commits
1 Commits
dark-base-
...
dark-baseI
| Author | SHA1 | Date | |
|---|---|---|---|
| 9767d02776 |
@ -65,6 +65,7 @@
|
|||||||
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 }}
|
||||||
@ -82,7 +83,7 @@
|
|||||||
pointer-events-none
|
pointer-events-none
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<span class="text-gray-500 sm:text-sm">
|
<span class="text-gray-500 dark:text-white sm:text-sm ">
|
||||||
{{ inlineAddon }}
|
{{ inlineAddon }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -199,7 +200,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',
|
'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',
|
||||||
},
|
},
|
||||||
iconLeftClass: {
|
iconLeftClass: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -250,7 +251,8 @@ const inputAddonClass = computed(() => {
|
|||||||
|
|
||||||
const inputInvalidClass = computed(() => {
|
const inputInvalidClass = computed(() => {
|
||||||
if (props.invalid) {
|
if (props.invalid) {
|
||||||
return 'border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500'
|
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 'focus:ring-primary-400 focus:border-primary-400'
|
return 'focus:ring-primary-400 focus:border-primary-400'
|
||||||
@ -258,7 +260,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 ring-gray-200 focus:ring-gray-200 focus:border-gray-100`
|
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 ''
|
return ''
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<Switch
|
<Switch
|
||||||
v-model="enabled"
|
v-model="enabled"
|
||||||
:class="enabled ? 'bg-primary-500' : 'bg-gray-300 dark:bg-gray-900'"
|
:class="enabled ? 'bg-primary-500' : 'bg-gray-300'"
|
||||||
class="
|
class="
|
||||||
relative
|
relative
|
||||||
inline-flex
|
inline-flex
|
||||||
@ -21,11 +21,7 @@
|
|||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
:class="
|
:class="enabled ? 'translate-x-6' : 'translate-x-1'"
|
||||||
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 dark:text-white"
|
class="p-0 mb-1 text-sm leading-snug text-black font-medium"
|
||||||
passive
|
passive
|
||||||
>
|
>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</SwitchLabel>
|
</SwitchLabel>
|
||||||
<SwitchDescription class="text-sm text-gray-500 dark:text-gray-400">
|
<SwitchDescription class="text-sm text-gray-500">
|
||||||
{{ 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 dark:bg-gray-900',
|
modelValue ? 'bg-primary-500' : 'bg-gray-200',
|
||||||
'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 dark:bg-white' : 'translate-x-0 dark:bg-gray-500',
|
modelValue ? 'translate-x-5' : 'translate-x-0',
|
||||||
'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