@khanacademy/perseus 28.0.0 → 28.1.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/dist/es/index.js +21 -23
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/es/index.js
CHANGED
|
@@ -669,9 +669,11 @@ const styles$D = StyleSheet.create({
|
|
|
669
669
|
borderRadius: 1
|
|
670
670
|
},
|
|
671
671
|
iconInactive: {
|
|
672
|
+
border: "2px solid transparent",
|
|
672
673
|
backgroundColor: color.offBlack8
|
|
673
674
|
},
|
|
674
675
|
iconActive: {
|
|
676
|
+
border: `2px solid ${color.white}`,
|
|
675
677
|
backgroundColor: color.offBlack64
|
|
676
678
|
},
|
|
677
679
|
outerWrapper: {
|
|
@@ -21052,28 +21054,24 @@ class TextInput extends React.Component {
|
|
|
21052
21054
|
style
|
|
21053
21055
|
} = this.props;
|
|
21054
21056
|
const formattedValue = value === null ? "" : value.toString();
|
|
21055
|
-
return (
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
21066
|
-
|
|
21067
|
-
|
|
21068
|
-
|
|
21069
|
-
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
autoCapitalize: "off",
|
|
21074
|
-
autoComplete: "off"
|
|
21075
|
-
})
|
|
21076
|
-
);
|
|
21057
|
+
return /*#__PURE__*/React.createElement(TextField, {
|
|
21058
|
+
style: style,
|
|
21059
|
+
disabled: disabled,
|
|
21060
|
+
id: this.id,
|
|
21061
|
+
value: formattedValue,
|
|
21062
|
+
type: "text",
|
|
21063
|
+
"aria-label": labelText,
|
|
21064
|
+
onChange: value => this.props.onChange(value),
|
|
21065
|
+
placeholder: placeholder,
|
|
21066
|
+
onFocus: onFocus,
|
|
21067
|
+
onBlur: onBlur,
|
|
21068
|
+
onKeyDown: onKeyDown
|
|
21069
|
+
// @ts-expect-error - TS2322 - Type '{ style: StyleType; disabled: boolean | undefined; id: string; value: string; type: "text"; "aria-label": string | undefined; onChange: (value: string) => void; placeholder: string | undefined; ... 5 more ...; autoComplete: string; }' is not assignable to type 'IntrinsicAttributes & ExportProps & RefAttributes<HTMLInputElement>'.
|
|
21070
|
+
,
|
|
21071
|
+
autoCorrect: "off",
|
|
21072
|
+
autoCapitalize: "off",
|
|
21073
|
+
autoComplete: "off"
|
|
21074
|
+
});
|
|
21077
21075
|
}
|
|
21078
21076
|
}
|
|
21079
21077
|
TextInput.defaultProps = {
|
|
@@ -44254,7 +44252,7 @@ const init = function init(options) {
|
|
|
44254
44252
|
|
|
44255
44253
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44256
44254
|
const libName = "@khanacademy/perseus";
|
|
44257
|
-
const libVersion = "28.
|
|
44255
|
+
const libVersion = "28.1.0";
|
|
44258
44256
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44259
44257
|
|
|
44260
44258
|
const apiVersion = {
|