@terraware/web-components 2.11.1 → 2.11.2-rc.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.
@@ -12,31 +12,32 @@ export interface TruncateConfig {
|
|
12
12
|
}
|
13
13
|
export interface Props {
|
14
14
|
autoFocus?: boolean;
|
15
|
-
|
16
|
-
onBlur?: () => void;
|
17
|
-
label: string;
|
15
|
+
className?: string;
|
18
16
|
disabled?: boolean;
|
17
|
+
disabledCharacters?: string[];
|
18
|
+
display?: boolean;
|
19
|
+
errorText?: string;
|
20
|
+
helperText?: string;
|
19
21
|
iconLeft?: IconName;
|
20
22
|
iconRight?: IconName;
|
21
23
|
id: string;
|
22
|
-
|
23
|
-
helperText?: string;
|
24
|
-
placeholder?: string;
|
25
|
-
errorText?: string;
|
26
|
-
warningText?: string;
|
27
|
-
value?: string | number;
|
28
|
-
readonly?: boolean;
|
29
|
-
display?: boolean;
|
30
|
-
type: TextfieldType;
|
31
|
-
onKeyDown?: (key: string) => void;
|
32
|
-
onClickRightIcon?: () => void;
|
33
|
-
tooltipTitle?: TooltipProps['title'];
|
24
|
+
label: string;
|
34
25
|
min?: number;
|
35
26
|
max?: number;
|
36
|
-
|
27
|
+
onBlur?: () => void;
|
28
|
+
onChange?: Handler;
|
29
|
+
onClickRightIcon?: () => void;
|
30
|
+
onKeyDown?: (key: string) => void;
|
31
|
+
placeholder?: string;
|
37
32
|
preserveNewlines?: boolean;
|
33
|
+
readonly?: boolean;
|
38
34
|
required?: boolean;
|
35
|
+
styles?: Record<string, Record<string, unknown>>;
|
36
|
+
tooltipTitle?: TooltipProps['title'];
|
39
37
|
truncateConfig?: TruncateConfig;
|
38
|
+
type: TextfieldType;
|
39
|
+
warningText?: string;
|
40
|
+
value?: string | number;
|
40
41
|
}
|
41
42
|
export default function TextField(props: Props): JSX.Element;
|
42
43
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,eAAe,CAAC;AAKvB,KAAK,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpD,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,
|
1
|
+
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,eAAe,CAAC;AAKvB,KAAK,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpD,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,KA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@@ var _utils = require("../../utils");
|
|
14
14
|
var _IconTooltip = _interopRequireDefault(require("../IconTooltip"));
|
15
15
|
var _TruncatedTextArea = _interopRequireDefault(require("./TruncatedTextArea"));
|
16
16
|
function TextField(props) {
|
17
|
-
var
|
18
|
-
autoFocus = props.autoFocus,
|
19
|
-
onChange = props.onChange,
|
20
|
-
onBlur = props.onBlur,
|
17
|
+
var autoFocus = props.autoFocus,
|
21
18
|
label = props.label,
|
19
|
+
className = props.className,
|
22
20
|
disabled = props.disabled,
|
21
|
+
disabledCharacters = props.disabledCharacters,
|
22
|
+
display = props.display,
|
23
|
+
errorText = props.errorText,
|
24
|
+
helperText = props.helperText,
|
23
25
|
iconLeft = props.iconLeft,
|
24
26
|
iconRight = props.iconRight,
|
25
27
|
id = props.id,
|
26
|
-
className = props.className,
|
27
|
-
helperText = props.helperText,
|
28
|
-
placeholder = props.placeholder,
|
29
|
-
errorText = props.errorText,
|
30
|
-
warningText = props.warningText,
|
31
|
-
readonly = props.readonly,
|
32
|
-
display = props.display,
|
33
|
-
type = props.type,
|
34
|
-
onKeyDown = props.onKeyDown,
|
35
|
-
onClickRightIcon = props.onClickRightIcon,
|
36
|
-
tooltipTitle = props.tooltipTitle,
|
37
28
|
min = props.min,
|
38
29
|
max = props.max,
|
39
|
-
|
30
|
+
onBlur = props.onBlur,
|
31
|
+
onChange = props.onChange,
|
32
|
+
onClickRightIcon = props.onClickRightIcon,
|
33
|
+
onKeyDown = props.onKeyDown,
|
34
|
+
placeholder = props.placeholder,
|
40
35
|
preserveNewlines = props.preserveNewlines,
|
36
|
+
readonly = props.readonly,
|
41
37
|
required = props.required,
|
42
|
-
|
38
|
+
styles = props.styles,
|
39
|
+
tooltipTitle = props.tooltipTitle,
|
40
|
+
truncateConfig = props.truncateConfig,
|
41
|
+
type = props.type,
|
42
|
+
value = props.value,
|
43
|
+
warningText = props.warningText;
|
43
44
|
var textfieldClass = (0, _classnames.default)({
|
44
45
|
'textfield-value': true,
|
45
46
|
'textfield-value--disabled': disabled,
|
@@ -137,7 +138,8 @@ function TextField(props) {
|
|
137
138
|
placeholder: placeholder,
|
138
139
|
onChange: textfieldOnChange,
|
139
140
|
onBlur: onBlur,
|
140
|
-
required: required
|
141
|
+
required: required,
|
142
|
+
style: (styles || {}).textArea
|
141
143
|
})), displayComponent, errorText && /*#__PURE__*/_react.default.createElement("div", {
|
142
144
|
className: "textfield-label-container"
|
143
145
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|