fix(Calendar/InputMenu/Textarea): add missing PartialString type on ui prop

Resolves #3299
This commit is contained in:
Benjamin Canac
2025-02-12 11:51:16 +01:00
parent c00e1d72d9
commit 9d29e0b407
3 changed files with 7 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/ui/calendar'
import { tv } from '../utils/tv'
import type { PartialString } from '../types/utils'
const appConfigCalendar = _appConfig as AppConfig & { ui: { calendar: Partial<typeof theme> } }
@@ -58,7 +59,7 @@ export interface CalendarProps<R extends boolean, M extends boolean> extends Omi
defaultValue?: CalendarModelValue<R, M>
modelValue?: CalendarModelValue<R, M>
class?: any
ui?: Partial<typeof calendar.slots>
ui?: PartialString<typeof calendar.slots>
}
export interface CalendarEmits<R extends boolean, M extends boolean> extends Omit<CalendarRootEmits & RangeCalendarRootEmits, 'update:modelValue'> {

View File

@@ -6,6 +6,7 @@ import _appConfig from '#build/app.config'
import theme from '#build/ui/input-number'
import { tv } from '../utils/tv'
import type { ButtonProps } from '../types'
import type { PartialString } from '../types/utils'
const appConfigInputNumber = _appConfig as AppConfig & { ui: { inputNumber: Partial<typeof theme> } }
@@ -19,10 +20,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
* @defaultValue 'div'
*/
as?: any
class?: any
/** The placeholder text when the input is empty. */
placeholder?: string
ui?: Partial<typeof inputNumber.slots>
color?: InputNumberVariants['color']
variant?: InputNumberVariants['variant']
size?: InputNumberVariants['size']
@@ -60,6 +59,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
* @defaultValue UApp.locale.code
*/
locale?: string
class?: any
ui?: PartialString<typeof inputNumber.slots>
}
export interface InputNumberEmits {

View File

@@ -4,6 +4,7 @@ import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/ui/textarea'
import { tv } from '../utils/tv'
import type { PartialString } from '../types/utils'
const appConfigTextarea = _appConfig as AppConfig & { ui: { textarea: Partial<typeof theme> } }
@@ -34,7 +35,7 @@ export interface TextareaProps {
autoresize?: boolean
/** Highlight the ring color like a focus state. */
highlight?: boolean
ui?: Partial<typeof textarea.slots>
ui?: PartialString<typeof textarea.slots>
}
export interface TextareaEmits {