Compare commits

..

1 Commits

Author SHA1 Message Date
a8ffd2cf12 add dark mode in BaseMoney and BaseTextArea 2023-03-22 15:51:10 +05:30
14 changed files with 54 additions and 92 deletions

View File

@ -113,10 +113,10 @@
<div v-if="companyStore.companies.length !== 1" class="py-5">
<BaseDivider class="my-4" />
<h3 class="text-lg leading-6 font-medium text-gray-900 dark:text-white">
<h3 class="text-lg leading-6 font-medium text-gray-900">
{{ $tc('settings.company_info.delete_company') }}
</h3>
<div class="mt-2 max-w-xl text-sm text-gray-500 dark:text-gray-400">
<div class="mt-2 max-w-xl text-sm text-gray-500">
<p>
{{ $tc('settings.company_info.delete_company_description') }}
</p>

View File

@ -7,7 +7,7 @@
{{ $t('settings.menu_title.exchange_rate') }}
</h6>
<p
class="mt-2 text-sm leading-snug text-left text-gray-500 dark:text-gray-400"
class="mt-2 text-sm leading-snug text-left text-gray-500"
style="max-width: 680px"
>
{{ $t('settings.exchange_rate.providers_description') }}

View File

@ -1,12 +1,12 @@
<template>
<BaseHeading
type="heading-title"
:subtitle="
$t(`settings.customization.${type}s.${type}_number_format_description`)
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t(`settings.customization.${type}s.${type}_number_format`) }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500">
{{
$t(`settings.customization.${type}s.${type}_number_format_description`)
}}
</p>
<div class="overflow-x-auto">
<table class="w-full mt-6 table-fixed">
@ -29,7 +29,6 @@
leading-5
text-left text-gray-700
border-t border-b border-gray-200 border-solid
dark:border-gray-600
"
></th>
<th
@ -42,7 +41,6 @@
leading-5
text-left text-gray-700
border-t border-b border-gray-200 border-solid
dark:text-gray-300 dark:border-gray-600
"
>
Component
@ -57,7 +55,6 @@
leading-5
text-left text-gray-700
border-t border-b border-gray-200 border-solid
dark:text-gray-300 dark:border-gray-600
"
>
Parameter
@ -72,14 +69,13 @@
leading-5
text-left text-gray-700
border-t border-b border-gray-200 border-solid
dark:border-gray-600
"
></th>
</tr>
</thead>
<draggable
v-model="selectedFields"
class="divide-y divide-gray-200 dark:divide-gray-600"
class="divide-y divide-gray-200"
item-key="id"
tag="tbody"
handle=".handle"
@ -101,13 +97,12 @@
whitespace-nowrap
mr-2
min-w-[200px]
dark:text-primary-400
"
>
{{ element.label }}
</label>
<p class="text-xs text-gray-500 dark:text-gray-400 mt-1">
<p class="text-xs text-gray-500 mt-1">
{{ element.description }}
</p>
</td>

View File

@ -1,12 +1,10 @@
<template>
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.estimates.convert_estimate_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $tc('settings.customization.estimates.convert_estimate_options') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500">
{{ $t('settings.customization.estimates.convert_estimate_description') }}
</p>
<BaseInputGroup required>
<BaseRadio

View File

@ -1,13 +1,11 @@
<template>
<form @submit.prevent="submitForm">
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.estimates.default_formats_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t('settings.customization.estimates.default_formats') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500 mb-2">
{{ $t('settings.customization.estimates.default_formats_description') }}
</p>
<BaseInputGroup
:label="

View File

@ -1,13 +1,11 @@
<template>
<form @submit.prevent="submitForm">
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.estimates.expiry_date_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t('settings.customization.estimates.expiry_date') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500 mb-2">
{{ $t('settings.customization.estimates.expiry_date_description') }}
</p>
<BaseSwitchSection
v-model="expiryDateAutoField"

View File

@ -1,13 +1,11 @@
<template>
<form @submit.prevent="submitForm">
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.invoices.default_formats_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t('settings.customization.invoices.default_formats') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500 mb-2">
{{ $t('settings.customization.invoices.default_formats_description') }}
</p>
<BaseInputGroup
:label="$t('settings.customization.invoices.default_invoice_email_body')"

View File

@ -1,13 +1,11 @@
<template>
<form @submit.prevent="submitForm">
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.invoices.due_date_description')
"
>
{{ $t('settings.customization.invoices.due_date') }}
</BaseHeading>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t('settings.customization.invoices.due_date') }}
</h6>
<p class="mt-1 text-sm text-gray-500 mb-2">
{{ $t('settings.customization.invoices.due_date_description') }}
</p>
<BaseSwitchSection
v-model="dueDateAutoField"

View File

@ -1,12 +1,10 @@
<template>
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.invoices.retrospective_edits_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $tc('settings.customization.invoices.retrospective_edits') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500">
{{ $t('settings.customization.invoices.retrospective_edits_description') }}
</p>
<BaseInputGroup required>
<BaseRadio

View File

@ -1,13 +1,11 @@
<template>
<form @submit.prevent="submitForm">
<BaseHeading
type="heading-title"
:subtitle="
$t('settings.customization.payments.default_formats_description')
"
>
<h6 class="text-gray-900 text-lg font-medium">
{{ $t('settings.customization.payments.default_formats') }}
</BaseHeading>
</h6>
<p class="mt-1 text-sm text-gray-500 mb-2">
{{ $t('settings.customization.payments.default_formats_description') }}
</p>
<BaseInputGroup
:label="$t('settings.customization.payments.default_payment_email_body')"

View File

@ -2,21 +2,6 @@
<h6 :class="typeClass">
<slot />
</h6>
<p
v-if="subtitle"
class="
mt-2
text-sm
leading-snug
text-gray-500
dark:text-gray-400
max-w-[680px]
"
>
{{ subtitle }}
</p>
</template>
<script setup>
@ -29,16 +14,12 @@ const props = defineProps({
return ['section-title', 'heading-title'].indexOf(value) !== -1
},
},
subtitle: {
type: String,
default: '',
},
})
const typeClass = computed(() => {
return {
'text-gray-900 text-lg font-medium dark:text-white': props.type === 'heading-title',
'text-gray-500 uppercase text-base dark:text-gray-300': props.type === 'section-title',
'text-gray-900 text-lg font-medium': props.type === 'heading-title',
'text-gray-500 uppercase text-base': props.type === 'section-title',
}
})
</script>

View File

@ -39,7 +39,7 @@ const props = defineProps({
inputClass: {
type: String,
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',
},
disabled: {
type: Boolean,
@ -86,7 +86,7 @@ const currencyBindings = computed(() => {
const invalidClass = computed(() => {
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'
})

View File

@ -11,7 +11,7 @@
mt-2
text-sm
leading-snug
text-left text-gray-500 dark:text-gray-400
text-left text-gray-500
max-w-[680px]
"
>

View File

@ -45,7 +45,7 @@ const props = defineProps({
defaultInputClass: {
type: String,
default:
'box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 border-solid rounded outline-none',
'box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 dark:border-gray-600 border-solid rounded outline-none dark:bg-gray-700 dark:text-white',
},
autosize: {
type: Boolean,