From f2c1d28c7e296224a502e03f2d7f09cfa1471a70 Mon Sep 17 00:00:00 2001 From: fcrozatier Date: Fri, 13 Sep 2024 11:08:24 +0200 Subject: [PATCH] add missing tokens --- packages/svelte/elements.d.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index b5ceb80a13..263db78d68 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -61,6 +61,16 @@ export type TransitionEventHandler = EventHandler = EventHandler; export type ToggleEventHandler = EventHandler; +export type FullAutoFill = + | 'bday' + | `${OptionalPrefixToken}${'cc-additional-name'}` + | 'nickname' + | 'language' + | 'organization-title' + | 'photo' + | 'sex' + | 'url'; + // // DOM Attributes // ---------------------------------------------------------------------- @@ -1025,7 +1035,7 @@ export type HTMLInputTypeAttribute = export interface HTMLInputAttributes extends HTMLAttributes { accept?: string | undefined | null; alt?: string | undefined | null; - autocomplete?: AutoFill | undefined | null; + autocomplete?: FullAutoFill | undefined | null; capture?: boolean | 'user' | 'environment' | undefined | null; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute checked?: boolean | undefined | null; dirname?: string | undefined | null; @@ -1244,7 +1254,7 @@ export interface HTMLScriptAttributes extends HTMLAttributes } export interface HTMLSelectAttributes extends HTMLAttributes { - autocomplete?: AutoFill | undefined | null; + autocomplete?: FullAutoFill | undefined | null; disabled?: boolean | undefined | null; form?: string | undefined | null; multiple?: boolean | undefined | null; @@ -1289,7 +1299,7 @@ export interface HTMLTableAttributes extends HTMLAttributes { } export interface HTMLTextareaAttributes extends HTMLAttributes { - autocomplete?: AutoFill | undefined | null; + autocomplete?: FullAutoFill | undefined | null; cols?: number | undefined | null; dirname?: string | undefined | null; disabled?: boolean | undefined | null;