@metamask/design-system-react 0.23.1 → 0.24.0
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.
- package/CHANGELOG.md +9 -1
- package/dist/components/BannerAlert/BannerAlert.d.cts +58 -30
- package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.d.mts +58 -30
- package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.cts +58 -30
- package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.mts +58 -30
- package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
- package/dist/components/Icon/icons/FlashFilled.cjs +32 -0
- package/dist/components/Icon/icons/FlashFilled.cjs.map +1 -0
- package/dist/components/Icon/icons/FlashFilled.d.cts +4 -0
- package/dist/components/Icon/icons/FlashFilled.d.cts.map +1 -0
- package/dist/components/Icon/icons/FlashFilled.d.mts +4 -0
- package/dist/components/Icon/icons/FlashFilled.d.mts.map +1 -0
- package/dist/components/Icon/icons/FlashFilled.mjs +7 -0
- package/dist/components/Icon/icons/FlashFilled.mjs.map +1 -0
- package/dist/components/Icon/icons/index.cjs +2 -0
- package/dist/components/Icon/icons/index.cjs.map +1 -1
- package/dist/components/Icon/icons/index.d.cts +1 -0
- package/dist/components/Icon/icons/index.d.cts.map +1 -1
- package/dist/components/Icon/icons/index.d.mts +1 -0
- package/dist/components/Icon/icons/index.d.mts.map +1 -1
- package/dist/components/Icon/icons/index.mjs +2 -0
- package/dist/components/Icon/icons/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.types.cjs.map +1 -1
- package/dist/components/Modal/Modal.types.d.cts +2 -2
- package/dist/components/Modal/Modal.types.d.cts.map +1 -1
- package/dist/components/Modal/Modal.types.d.mts +2 -2
- package/dist/components/Modal/Modal.types.d.mts.map +1 -1
- package/dist/components/Modal/Modal.types.mjs.map +1 -1
- package/dist/components/ModalFocus/ModalFocus.types.cjs.map +1 -1
- package/dist/components/ModalFocus/ModalFocus.types.d.cts +2 -2
- package/dist/components/ModalFocus/ModalFocus.types.d.cts.map +1 -1
- package/dist/components/ModalFocus/ModalFocus.types.d.mts +2 -2
- package/dist/components/ModalFocus/ModalFocus.types.d.mts.map +1 -1
- package/dist/components/ModalFocus/ModalFocus.types.mjs.map +1 -1
- package/dist/components/Text/Text.cjs +3 -1
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.constants.cjs.map +1 -1
- package/dist/components/Text/Text.constants.d.cts +1 -1
- package/dist/components/Text/Text.constants.d.cts.map +1 -1
- package/dist/components/Text/Text.constants.d.mts +1 -1
- package/dist/components/Text/Text.constants.d.mts.map +1 -1
- package/dist/components/Text/Text.constants.mjs.map +1 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts.map +1 -1
- package/dist/components/Text/Text.mjs +3 -1
- package/dist/components/Text/Text.mjs.map +1 -1
- package/dist/components/Text/Text.types.cjs.map +1 -1
- package/dist/components/Text/Text.types.d.cts +2 -2
- package/dist/components/Text/Text.types.d.cts.map +1 -1
- package/dist/components/Text/Text.types.d.mts +2 -2
- package/dist/components/Text/Text.types.d.mts.map +1 -1
- package/dist/components/Text/Text.types.mjs.map +1 -1
- package/dist/components/TextField/TextField.cjs +77 -0
- package/dist/components/TextField/TextField.cjs.map +1 -0
- package/dist/components/TextField/TextField.d.cts +324 -0
- package/dist/components/TextField/TextField.d.cts.map +1 -0
- package/dist/components/TextField/TextField.d.mts +324 -0
- package/dist/components/TextField/TextField.d.mts.map +1 -0
- package/dist/components/TextField/TextField.mjs +58 -0
- package/dist/components/TextField/TextField.mjs.map +1 -0
- package/dist/components/TextField/TextField.types.cjs +26 -0
- package/dist/components/TextField/TextField.types.cjs.map +1 -0
- package/dist/components/TextField/TextField.types.d.cts +102 -0
- package/dist/components/TextField/TextField.types.d.cts.map +1 -0
- package/dist/components/TextField/TextField.types.d.mts +102 -0
- package/dist/components/TextField/TextField.types.d.mts.map +1 -0
- package/dist/components/TextField/TextField.types.mjs +23 -0
- package/dist/components/TextField/TextField.types.mjs.map +1 -0
- package/dist/components/TextField/index.cjs +9 -0
- package/dist/components/TextField/index.cjs.map +1 -0
- package/dist/components/TextField/index.d.cts +4 -0
- package/dist/components/TextField/index.d.cts.map +1 -0
- package/dist/components/TextField/index.d.mts +4 -0
- package/dist/components/TextField/index.d.mts.map +1 -0
- package/dist/components/TextField/index.mjs +3 -0
- package/dist/components/TextField/index.mjs.map +1 -0
- package/dist/components/index.cjs +5 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +1 -0
- package/dist/components/index.mjs.map +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TextField = void 0;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const tw_merge_1 = require("../../utils/tw-merge.cjs");
|
|
29
|
+
const Input_1 = require("../Input/index.cjs");
|
|
30
|
+
const TextField_types_1 = require("./TextField.types.cjs");
|
|
31
|
+
const SIZE_CLASS = {
|
|
32
|
+
[TextField_types_1.TextFieldSize.Sm]: 'h-8',
|
|
33
|
+
[TextField_types_1.TextFieldSize.Md]: 'h-10',
|
|
34
|
+
[TextField_types_1.TextFieldSize.Lg]: 'h-12',
|
|
35
|
+
};
|
|
36
|
+
exports.TextField = (0, react_1.forwardRef)(({ autoFocus = false, className, id, inputElement, inputProps, inputRef, isDisabled = false, isError = false, isReadOnly = false, maxLength, name, onBlur, onChange, onClick, onFocus, placeholder, required, size = TextField_types_1.TextFieldSize.Md, startAccessory, endAccessory, style, truncate = true, type = TextField_types_1.TextFieldType.Text, value, ...rest }, ref) => {
|
|
37
|
+
const internalInputRef = (0, react_1.useRef)(null);
|
|
38
|
+
const [isFocused, setIsFocused] = (0, react_1.useState)(autoFocus);
|
|
39
|
+
(0, react_1.useEffect)(() => {
|
|
40
|
+
if (isDisabled) {
|
|
41
|
+
setIsFocused(false);
|
|
42
|
+
}
|
|
43
|
+
}, [isDisabled]);
|
|
44
|
+
const handleClick = (0, react_1.useCallback)((event) => {
|
|
45
|
+
if (isDisabled) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
internalInputRef.current?.focus();
|
|
49
|
+
onClick?.(event);
|
|
50
|
+
}, [isDisabled, onClick]);
|
|
51
|
+
const handleFocus = (0, react_1.useCallback)((event) => {
|
|
52
|
+
setIsFocused(true);
|
|
53
|
+
onFocus?.(event);
|
|
54
|
+
}, [onFocus]);
|
|
55
|
+
const handleBlur = (0, react_1.useCallback)((event) => {
|
|
56
|
+
setIsFocused(false);
|
|
57
|
+
onBlur?.(event);
|
|
58
|
+
}, [onBlur]);
|
|
59
|
+
const handleInputRef = (0, react_1.useCallback)((node) => {
|
|
60
|
+
internalInputRef.current = node;
|
|
61
|
+
if (typeof inputRef === 'function') {
|
|
62
|
+
inputRef(node);
|
|
63
|
+
}
|
|
64
|
+
else if (inputRef && 'current' in inputRef) {
|
|
65
|
+
inputRef.current = node;
|
|
66
|
+
}
|
|
67
|
+
}, [inputRef]);
|
|
68
|
+
const { className: inputClassNameFromProps, ...inputRest } = inputProps ?? {};
|
|
69
|
+
const containerClassName = (0, tw_merge_1.twMerge)('inline-flex items-center rounded-lg border bg-default transition-colors', SIZE_CLASS[size], startAccessory ? 'pl-4' : 'pl-0', endAccessory ? 'pr-4' : 'pr-0', isDisabled && 'cursor-not-allowed border-muted opacity-50', !isDisabled && isError && 'border-error-default', !isDisabled && !isError && isFocused && 'border-default', !isDisabled && !isError && !isFocused && 'border-muted', className);
|
|
70
|
+
const innerInputClassName = (0, tw_merge_1.twMerge)('m-0 h-full min-w-0 flex-1 border-0 bg-transparent p-0', startAccessory ? 'pl-2' : 'pl-4', endAccessory ? 'pr-2' : 'pr-4', truncate && 'truncate', inputClassNameFromProps);
|
|
71
|
+
return (react_1.default.createElement("div", { ref: ref, className: containerClassName, style: style, onClick: handleClick, ...rest },
|
|
72
|
+
startAccessory,
|
|
73
|
+
inputElement ?? (react_1.default.createElement(Input_1.Input, { ...inputRest, ref: handleInputRef, id: id, name: name, type: type, value: value, placeholder: placeholder, autoFocus: autoFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, isStateStylesDisabled: true, maxLength: maxLength, required: required, "aria-invalid": isError || undefined, onChange: onChange, onFocus: handleFocus, onBlur: handleBlur, className: innerInputClassName })),
|
|
74
|
+
endAccessory));
|
|
75
|
+
});
|
|
76
|
+
exports.TextField.displayName = 'TextField';
|
|
77
|
+
//# sourceMappingURL=TextField.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import React, {\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Input } from '../Input';\n\nimport { TextFieldSize, TextFieldType } from './TextField.types';\nimport type { TextFieldProps } from './TextField.types';\n\nconst SIZE_CLASS: Record<TextFieldSize, string> = {\n [TextFieldSize.Sm]: 'h-8',\n [TextFieldSize.Md]: 'h-10',\n [TextFieldSize.Lg]: 'h-12',\n};\n\nexport const TextField = forwardRef<HTMLDivElement, TextFieldProps>(\n (\n {\n autoFocus = false,\n className,\n id,\n inputElement,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n isReadOnly = false,\n maxLength,\n name,\n onBlur,\n onChange,\n onClick,\n onFocus,\n placeholder,\n required,\n size = TextFieldSize.Md,\n startAccessory,\n endAccessory,\n style,\n truncate = true,\n type = TextFieldType.Text,\n value,\n ...rest\n },\n ref,\n ) => {\n const internalInputRef = useRef<HTMLInputElement | null>(null);\n const [isFocused, setIsFocused] = useState(autoFocus);\n\n useEffect(() => {\n if (isDisabled) {\n setIsFocused(false);\n }\n }, [isDisabled]);\n\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n if (isDisabled) {\n return;\n }\n internalInputRef.current?.focus();\n onClick?.(event);\n },\n [isDisabled, onClick],\n );\n\n const handleFocus = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(event);\n },\n [onFocus],\n );\n\n const handleBlur = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(event);\n },\n [onBlur],\n );\n\n const handleInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n internalInputRef.current = node;\n if (typeof inputRef === 'function') {\n inputRef(node);\n } else if (inputRef && 'current' in inputRef) {\n (\n inputRef as React.MutableRefObject<HTMLInputElement | null>\n ).current = node;\n }\n },\n [inputRef],\n );\n\n const { className: inputClassNameFromProps, ...inputRest } =\n inputProps ?? {};\n\n const containerClassName = twMerge(\n 'inline-flex items-center rounded-lg border bg-default transition-colors',\n SIZE_CLASS[size],\n startAccessory ? 'pl-4' : 'pl-0',\n endAccessory ? 'pr-4' : 'pr-0',\n isDisabled && 'cursor-not-allowed border-muted opacity-50',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n className,\n );\n\n const innerInputClassName = twMerge(\n 'm-0 h-full min-w-0 flex-1 border-0 bg-transparent p-0',\n startAccessory ? 'pl-2' : 'pl-4',\n endAccessory ? 'pr-2' : 'pr-4',\n truncate && 'truncate',\n inputClassNameFromProps,\n );\n\n return (\n <div\n ref={ref}\n className={containerClassName}\n style={style}\n onClick={handleClick}\n {...rest}\n >\n {startAccessory}\n {inputElement ?? (\n <Input\n {...inputRest}\n ref={handleInputRef}\n id={id}\n name={name}\n type={type}\n value={value}\n placeholder={placeholder}\n autoFocus={autoFocus}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isStateStylesDisabled\n maxLength={maxLength}\n required={required}\n aria-invalid={isError || undefined}\n onChange={onChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n className={innerInputClassName}\n />\n )}\n {endAccessory}\n </div>\n );\n },\n);\n\nTextField.displayName = 'TextField';\n"]}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TextFieldSize, TextFieldType } from "./TextField.types.cjs";
|
|
3
|
+
export declare const TextField: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onFocus" | "onBlur" | "onChange" | "onClick"> & Omit<import("@metamask/design-system-shared").InputPropsShared, "isStateStylesDisabled" | "textVariant"> & {
|
|
4
|
+
isError?: boolean | undefined;
|
|
5
|
+
startAccessory?: React.ReactNode;
|
|
6
|
+
endAccessory?: React.ReactNode;
|
|
7
|
+
inputElement?: React.ReactNode;
|
|
8
|
+
} & {
|
|
9
|
+
size?: TextFieldSize | undefined;
|
|
10
|
+
type?: TextFieldType | undefined;
|
|
11
|
+
truncate?: boolean | undefined;
|
|
12
|
+
maxLength?: number | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
inputProps?: {
|
|
17
|
+
max?: string | number | undefined;
|
|
18
|
+
key?: React.Key | null | undefined;
|
|
19
|
+
height?: string | number | undefined;
|
|
20
|
+
width?: string | number | undefined;
|
|
21
|
+
min?: string | number | undefined;
|
|
22
|
+
color?: string | undefined;
|
|
23
|
+
content?: string | undefined;
|
|
24
|
+
translate?: "yes" | "no" | undefined;
|
|
25
|
+
hidden?: boolean | undefined;
|
|
26
|
+
form?: string | undefined;
|
|
27
|
+
slot?: string | undefined;
|
|
28
|
+
style?: React.CSSProperties | undefined;
|
|
29
|
+
title?: string | undefined;
|
|
30
|
+
dir?: string | undefined;
|
|
31
|
+
pattern?: string | undefined;
|
|
32
|
+
rel?: string | undefined;
|
|
33
|
+
accessKey?: string | undefined;
|
|
34
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
35
|
+
inert?: boolean | undefined;
|
|
36
|
+
lang?: string | undefined;
|
|
37
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
38
|
+
className?: string | undefined;
|
|
39
|
+
part?: string | undefined;
|
|
40
|
+
prefix?: string | undefined;
|
|
41
|
+
role?: React.AriaRole | undefined;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
44
|
+
enterKeyHint?: "search" | "next" | "done" | "enter" | "go" | "previous" | "send" | undefined;
|
|
45
|
+
inputMode?: "search" | "numeric" | "none" | "url" | "text" | "email" | "tel" | "decimal" | undefined;
|
|
46
|
+
nonce?: string | undefined;
|
|
47
|
+
tabIndex?: number | undefined;
|
|
48
|
+
multiple?: boolean | undefined;
|
|
49
|
+
size?: number | undefined;
|
|
50
|
+
accept?: string | undefined;
|
|
51
|
+
alt?: string | undefined;
|
|
52
|
+
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
53
|
+
capture?: boolean | "environment" | "user" | undefined;
|
|
54
|
+
checked?: boolean | undefined;
|
|
55
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
56
|
+
formEncType?: string | undefined;
|
|
57
|
+
formMethod?: string | undefined;
|
|
58
|
+
formNoValidate?: boolean | undefined;
|
|
59
|
+
formTarget?: string | undefined;
|
|
60
|
+
list?: string | undefined;
|
|
61
|
+
minLength?: number | undefined;
|
|
62
|
+
src?: string | undefined;
|
|
63
|
+
step?: string | number | undefined;
|
|
64
|
+
defaultChecked?: boolean | undefined;
|
|
65
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
66
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
67
|
+
autoCapitalize?: "none" | "off" | "on" | (string & {}) | "words" | "sentences" | "characters" | undefined;
|
|
68
|
+
contextMenu?: string | undefined;
|
|
69
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
70
|
+
radioGroup?: string | undefined;
|
|
71
|
+
about?: string | undefined;
|
|
72
|
+
datatype?: string | undefined;
|
|
73
|
+
inlist?: any;
|
|
74
|
+
property?: string | undefined;
|
|
75
|
+
resource?: string | undefined;
|
|
76
|
+
rev?: string | undefined;
|
|
77
|
+
typeof?: string | undefined;
|
|
78
|
+
vocab?: string | undefined;
|
|
79
|
+
autoCorrect?: string | undefined;
|
|
80
|
+
autoSave?: string | undefined;
|
|
81
|
+
itemProp?: string | undefined;
|
|
82
|
+
itemScope?: boolean | undefined;
|
|
83
|
+
itemType?: string | undefined;
|
|
84
|
+
itemID?: string | undefined;
|
|
85
|
+
itemRef?: string | undefined;
|
|
86
|
+
results?: number | undefined;
|
|
87
|
+
security?: string | undefined;
|
|
88
|
+
unselectable?: "off" | "on" | undefined;
|
|
89
|
+
popoverTargetAction?: "hide" | "show" | "toggle" | undefined;
|
|
90
|
+
popoverTarget?: string | undefined;
|
|
91
|
+
is?: string | undefined;
|
|
92
|
+
exportparts?: string | undefined;
|
|
93
|
+
"aria-activedescendant"?: string | undefined;
|
|
94
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
95
|
+
"aria-autocomplete"?: "inline" | "both" | "none" | "list" | undefined;
|
|
96
|
+
"aria-braillelabel"?: string | undefined;
|
|
97
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
98
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
99
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
100
|
+
"aria-colcount"?: number | undefined;
|
|
101
|
+
"aria-colindex"?: number | undefined;
|
|
102
|
+
"aria-colindextext"?: string | undefined;
|
|
103
|
+
"aria-colspan"?: number | undefined;
|
|
104
|
+
"aria-controls"?: string | undefined;
|
|
105
|
+
"aria-current"?: boolean | "false" | "time" | "location" | "page" | "true" | "step" | "date" | undefined;
|
|
106
|
+
"aria-describedby"?: string | undefined;
|
|
107
|
+
"aria-description"?: string | undefined;
|
|
108
|
+
"aria-details"?: string | undefined;
|
|
109
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
110
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
111
|
+
"aria-errormessage"?: string | undefined;
|
|
112
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
113
|
+
"aria-flowto"?: string | undefined;
|
|
114
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
115
|
+
"aria-haspopup"?: boolean | "false" | "grid" | "dialog" | "menu" | "listbox" | "true" | "tree" | undefined;
|
|
116
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
117
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
118
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
119
|
+
"aria-label"?: string | undefined;
|
|
120
|
+
"aria-labelledby"?: string | undefined;
|
|
121
|
+
"aria-level"?: number | undefined;
|
|
122
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
123
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
124
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
125
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
126
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
127
|
+
"aria-owns"?: string | undefined;
|
|
128
|
+
"aria-placeholder"?: string | undefined;
|
|
129
|
+
"aria-posinset"?: number | undefined;
|
|
130
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
131
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
132
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
133
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
134
|
+
"aria-roledescription"?: string | undefined;
|
|
135
|
+
"aria-rowcount"?: number | undefined;
|
|
136
|
+
"aria-rowindex"?: number | undefined;
|
|
137
|
+
"aria-rowindextext"?: string | undefined;
|
|
138
|
+
"aria-rowspan"?: number | undefined;
|
|
139
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
140
|
+
"aria-setsize"?: number | undefined;
|
|
141
|
+
"aria-sort"?: "none" | "other" | "ascending" | "descending" | undefined;
|
|
142
|
+
"aria-valuemax"?: number | undefined;
|
|
143
|
+
"aria-valuemin"?: number | undefined;
|
|
144
|
+
"aria-valuenow"?: number | undefined;
|
|
145
|
+
"aria-valuetext"?: string | undefined;
|
|
146
|
+
dangerouslySetInnerHTML?: {
|
|
147
|
+
__html: string | TrustedHTML;
|
|
148
|
+
} | undefined;
|
|
149
|
+
onCopy?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
150
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
151
|
+
onCut?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
152
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
153
|
+
onPaste?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
154
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
155
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
156
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
157
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
158
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
159
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
160
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
161
|
+
onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
162
|
+
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
163
|
+
onChangeCapture?: React.ChangeEventHandler<HTMLInputElement, Element> | undefined;
|
|
164
|
+
onBeforeInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
165
|
+
onBeforeInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
166
|
+
onInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
167
|
+
onInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
168
|
+
onReset?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onResetCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onSubmit?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onSubmitCapture?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onInvalid?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onInvalidCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onLoad?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onLoadCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onError?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onErrorCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onAbort?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onAbortCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onCanPlay?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onDurationChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onEmptied?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onEncrypted?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onEnded?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onEndedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onLoadedData?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onLoadStart?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onPause?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onPauseCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onPlay?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onPlayCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onPlaying?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onProgress?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onProgressCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onRateChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onSeeked?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onSeeking?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onStalled?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onStalledCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onSuspend?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onVolumeChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onWaiting?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onAuxClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onContextMenu?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onDoubleClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onDrag?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onDragCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onDragEnd?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onDragEndCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onDragEnter?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onDragExit?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onDragExitCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onDragLeave?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onDragOver?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onDragOverCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onDragStart?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onDragStartCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onDrop?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onDropCapture?: React.DragEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onMouseDown?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onMouseEnter?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onMouseLeave?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onMouseMove?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onMouseOut?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onMouseOver?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onMouseUp?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onSelect?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onSelectCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onTouchCancel?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onTouchEnd?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onTouchMove?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onTouchStart?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onPointerDown?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onPointerMove?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onPointerUp?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onPointerCancel?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onPointerEnter?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onPointerLeave?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
onPointerOver?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
285
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
286
|
+
onPointerOut?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
287
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
288
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
289
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
290
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
291
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
292
|
+
onScroll?: React.UIEventHandler<HTMLInputElement> | undefined;
|
|
293
|
+
onScrollCapture?: React.UIEventHandler<HTMLInputElement> | undefined;
|
|
294
|
+
onScrollEnd?: React.UIEventHandler<HTMLInputElement> | undefined;
|
|
295
|
+
onScrollEndCapture?: React.UIEventHandler<HTMLInputElement> | undefined;
|
|
296
|
+
onWheel?: React.WheelEventHandler<HTMLInputElement> | undefined;
|
|
297
|
+
onWheelCapture?: React.WheelEventHandler<HTMLInputElement> | undefined;
|
|
298
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
299
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
300
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
301
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
302
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
303
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
304
|
+
onToggle?: React.ToggleEventHandler<HTMLInputElement> | undefined;
|
|
305
|
+
onBeforeToggle?: React.ToggleEventHandler<HTMLInputElement> | undefined;
|
|
306
|
+
onTransitionCancel?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
307
|
+
onTransitionCancelCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
308
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
309
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
310
|
+
onTransitionRun?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
311
|
+
onTransitionRunCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
312
|
+
onTransitionStart?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
313
|
+
onTransitionStartCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
314
|
+
textVariant?: import("@metamask/design-system-shared").TextVariant | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
inputRef?: React.Ref<HTMLInputElement> | undefined;
|
|
317
|
+
onChange?: ((event: React.ChangeEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
318
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
319
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
320
|
+
onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
321
|
+
className?: string | undefined;
|
|
322
|
+
style?: React.CSSProperties | undefined;
|
|
323
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
324
|
+
//# sourceMappingURL=TextField.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,cAAc;AAKf,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,8BAA0B;AASjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2IrB,CAAC"}
|