@innertia-solutions/nuxt-theme-spark 0.1.117 → 0.1.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,7 @@ const props = defineProps<{
|
|
|
11
11
|
hint?: string
|
|
12
12
|
iconLeft?: object | Function | null
|
|
13
13
|
autocomplete?: string
|
|
14
|
+
size?: 'sm' | 'md'
|
|
14
15
|
}>()
|
|
15
16
|
|
|
16
17
|
const modelValue = defineModel<string | number | null>({ default: '' })
|
|
@@ -22,7 +23,9 @@ const inputType = computed(() => {
|
|
|
22
23
|
return props.type ?? 'text'
|
|
23
24
|
})
|
|
24
25
|
|
|
25
|
-
const baseClasses =
|
|
26
|
+
const baseClasses = computed(() =>
|
|
27
|
+
`${props.size === 'sm' ? 'py-1.5' : 'py-2'} px-3 block w-full rounded-lg text-sm text-slate-800 border border-card-line focus:ring-0 focus:border-gray-400 focus:outline-none disabled:opacity-50 dark:bg-transparent dark:text-muted-foreground-1 transition-colors placeholder:text-muted-foreground dark:placeholder:text-muted-foreground`
|
|
28
|
+
)
|
|
26
29
|
</script>
|
|
27
30
|
|
|
28
31
|
<template>
|
|
@@ -224,7 +224,7 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
224
224
|
<!-- Toolbar -->
|
|
225
225
|
<div class="flex flex-wrap items-center gap-3 px-4 py-3 border-b border-card-line">
|
|
226
226
|
<div v-if="showSearch" class="flex-1 min-w-48">
|
|
227
|
-
<Forms.Input v-model="search" type="search" :placeholder="searchPlaceholder" :icon-left="IconSearch" />
|
|
227
|
+
<Forms.Input v-model="search" type="search" :placeholder="searchPlaceholder" :icon-left="IconSearch" size="sm" />
|
|
228
228
|
</div>
|
|
229
229
|
|
|
230
230
|
<div v-if="showFilters && hasFilterableColumns" class="relative">
|