Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Dec 4, 2023
1 parent 1a6d442 commit 05acd55
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions packages/kotti-ui/source/kotti-field/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,65 @@ import { ReplaceRecordType } from '../types/utilities'

import { FORM_KEY_NONE } from './constants'

/**
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete}
*/
type AutoComplete =
| 'off'
| 'on'
| 'name'
| 'honorific-prefix'
| 'given-name'
| 'additional-name'
| 'family-name'
| 'honorific-suffix'
| 'nickname'
| 'email'
| 'username'
| 'new-password'
| 'current-password'
| 'one-time-code'
| 'organization-title'
| 'organization'
| 'street-address'
| 'address-line1'
| 'address-line2'
| 'address-line2'
| 'address-level4'
| 'address-level3'
| 'address-level2'
| 'address-level1'
| 'country'
| 'country-name'
| 'postal-code'
| 'cc-name'
| 'cc-given-name'
| 'cc-additional-name'
| 'cc-family-name'
| 'cc-number'
| 'cc-exp'
| 'cc-exp-month'
| 'cc-exp-year'
| 'cc-csc'
| 'cc-type'
| 'transation-currency'
| 'transaction-amount'
| 'language'
| 'bday'
| 'bday-day'
| 'bday-month'
| 'bday-year'
| 'sex'
| 'tel'
| 'tel-country-code'
| 'tel-national'
| 'tel-area-code'
| 'tel-local'
| 'tel-extension'
| 'impp'
| 'url'
| 'photo'

export namespace KottiField {
export enum Size {
LARGE = 'large',
Expand Down Expand Up @@ -79,6 +138,7 @@ export namespace KottiField {
> & {
currentValue: DATA_TYPE
inputProps: Readonly<{
autocomplete: AutoComplete
/**
* Native HTML Props should have lowercase keys
*/
Expand Down

0 comments on commit 05acd55

Please sign in to comment.