/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import * as React from 'react'; import type { Styles } from './styles'; type AriaRole = | 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'blockquote' | 'button' | 'caption' | 'cell' | 'checkbox' | 'code' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'deletion' | 'dialog' | 'document' | 'emphasis' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'input' | 'insertion' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'meter' | 'navigation' | 'none' | 'note' | 'option' | 'paragraph' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'strong' | 'subscript' | 'superscript' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'time' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem'; export type AutoComplete = | null | undefined | ( | 'additional-name' | 'address-line1' | 'address-line2' | 'birthdate-day' | 'birthdate-full' | 'birthdate-month' | 'birthdate-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-day' | 'cc-exp-month' | 'cc-exp-year' | 'cc-number' | 'cc-name' | 'cc-given-name' | 'cc-middle-name' | 'cc-family-name' | 'cc-type' | 'country' | 'current-password' | 'email' | 'family-name' | 'gender' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'name-family' | 'name-given' | 'name-middle' | 'name-middle-initial' | 'name-prefix' | 'name-suffix' | 'new-password' | 'nickname' | 'on' | 'one-time-code' | 'organization' | 'organization-title' | 'password' | 'password-new' | 'postal-address' | 'postal-address-country' | 'postal-address-extended' | 'postal-address-extended-postal-code' | 'postal-address-locality' | 'postal-address-region' | 'postal-code' | 'street-address' | 'sms-otp' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-device' | 'url' | 'username' | 'username-new' | 'off' ); type IDRef = string; type StrictClickEvent = Readonly<{ altKey: boolean; button: number; ctrlKey: boolean; defaultPrevented: boolean; getModifierState: (key: string) => boolean; metaKey: boolean; pageX: number; pageY: number; preventDefault: () => void; shiftKey: boolean; stopPropagation: () => void; type: 'click'; }>; export type StrictReactDOMProps = Readonly<{ 'aria-activedescendant'?: null | undefined | IDRef; 'aria-atomic'?: null | undefined | boolean; 'aria-autocomplete'?: | null | undefined | ('none' | 'inline' | 'list' | 'both'); 'aria-busy'?: null | undefined | boolean; 'aria-checked'?: null | undefined | (boolean | 'mixed'); 'aria-colcount'?: null | undefined | number; 'aria-colindex'?: null | undefined | number; 'aria-colindextext'?: null | undefined | string; 'aria-colspan'?: null | undefined | number; 'aria-controls'?: null | undefined | IDRef; 'aria-current'?: | null | undefined | (boolean | 'page' | 'step' | 'location' | 'date' | 'time'); 'aria-describedby'?: null | undefined | IDRef; 'aria-details'?: null | undefined | IDRef; 'aria-disabled'?: null | undefined | boolean; 'aria-errormessage'?: null | undefined | IDRef; 'aria-expanded'?: null | undefined | boolean; 'aria-flowto'?: null | undefined | IDRef; 'aria-haspopup'?: | null | undefined | ('menu' | 'listbox' | 'tree' | 'grid' | 'dialog'); 'aria-hidden'?: null | undefined | boolean; 'aria-invalid'?: null | undefined | (boolean | 'grammar' | 'spelling'); 'aria-keyshortcuts'?: null | undefined | string; 'aria-label'?: null | undefined | string; 'aria-labelledby'?: null | undefined | IDRef; 'aria-level'?: null | undefined | number; 'aria-live'?: null | undefined | ('off' | 'assertive' | 'polite'); 'aria-modal'?: null | undefined | boolean; 'aria-multiline'?: null | undefined | boolean; 'aria-multiselectable'?: null | undefined | boolean; 'aria-orientation'?: null | undefined | ('horizontal' | 'vertical'); 'aria-owns'?: null | undefined | IDRef; 'aria-placeholder'?: null | undefined | string; 'aria-posinset'?: null | undefined | number; 'aria-readonly'?: null | undefined | boolean; 'aria-pressed'?: null | undefined | (boolean | 'mixed'); 'aria-required'?: null | undefined | boolean; 'aria-roledescription'?: null | undefined | string; 'aria-rowcount'?: null | undefined | number; 'aria-rowindex'?: null | undefined | number; 'aria-rowindextext'?: null | undefined | string; 'aria-rowspan'?: null | undefined | number; 'aria-selected'?: null | undefined | boolean; 'aria-setsize'?: null | undefined | number; 'aria-sort'?: | null | undefined | ('none' | 'ascending' | 'descending' | 'other'); 'aria-valuemax'?: null | undefined | number; 'aria-valuemin'?: null | undefined | number; 'aria-valuenow'?: null | undefined | number; 'aria-valuetext'?: null | undefined | string; onAuxClick?: any; onBlur?: any; onClick?: (event: StrictClickEvent) => void; onContextMenu?: any; onCopy?: any; onCut?: any; onFocus?: any; onFocusIn?: any; onFocusOut?: any; onFullscreenChange?: any; onFullscreenError?: any; onGotPointerCapture?: any; onKeyDown?: ( event: Readonly<{ key: string; type: null | undefined | string }> ) => void; onKeyUp?: any; onLostPointerCapture?: any; onPaste?: any; onPointerCancel?: any; onPointerDown?: any; onPointerEnter?: any; onPointerLeave?: any; onPointerMove?: any; onPointerOut?: any; onPointerOver?: any; onPointerUp?: any; onScroll?: any; onWheel?: any; onMouseDown?: any; onMouseEnter?: any; onMouseLeave?: any; onMouseMove?: any; onMouseOut?: any; onMouseOver?: any; onMouseUp?: any; onTouchCancel?: any; onTouchStart?: any; onTouchEnd?: any; onTouchMove?: any; autoCapitalize?: | null | undefined | ('none' | 'sentences' | 'words' | 'characters'); autoFocus?: null | undefined | boolean; children?: React.ReactNode; 'data-layoutconformance'?: null | undefined | ('classic' | 'strict'); 'data-testid'?: null | undefined | string; dir?: null | undefined | ('auto' | 'ltr' | 'rtl'); elementTiming?: null | undefined | string; enterKeyHint?: | null | undefined | ('enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'); hidden?: null | undefined | (true | 'hidden' | 'until-found'); id?: null | undefined | string; inert?: null | undefined | boolean; inputMode?: | null | undefined | ( | 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' ); lang?: null | undefined | string; role?: null | undefined | AriaRole; spellCheck?: null | undefined | boolean; style?: null | undefined | Styles; suppressHydrationWarning?: null | undefined | boolean; tabIndex?: null | undefined | (0 | -1); }>;