@khanacademy/math-input 6.0.0 → 6.0.1
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 +6 -0
- package/dist/es/index.js +12 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/keypad/keypad-button.tsx +6 -14
- package/src/components/tabbar/item.tsx +6 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -4908,6 +4908,11 @@ const styles$8 = StyleSheet.create({
|
|
|
4908
4908
|
width: 36,
|
|
4909
4909
|
height: 3,
|
|
4910
4910
|
marginLeft: 3
|
|
4911
|
+
},
|
|
4912
|
+
clickable: {
|
|
4913
|
+
":focus": {
|
|
4914
|
+
outline: `none`
|
|
4915
|
+
}
|
|
4911
4916
|
}
|
|
4912
4917
|
});
|
|
4913
4918
|
function imageTintColor(itemState, hovered, focused, pressed) {
|
|
@@ -4933,6 +4938,7 @@ class TabbarItem extends React.Component {
|
|
|
4933
4938
|
onClick: onClick,
|
|
4934
4939
|
disabled: itemState === "disabled",
|
|
4935
4940
|
"aria-label": itemType,
|
|
4941
|
+
style: styles$8.clickable,
|
|
4936
4942
|
"aria-selected": itemState === "active",
|
|
4937
4943
|
role: "tab"
|
|
4938
4944
|
}, ({
|
|
@@ -8263,7 +8269,7 @@ const KeypadButton = ({
|
|
|
8263
8269
|
pressed
|
|
8264
8270
|
}) => {
|
|
8265
8271
|
return /*#__PURE__*/React.createElement(View$1, {
|
|
8266
|
-
style: [styles$1.outerBoxBase
|
|
8272
|
+
style: [styles$1.outerBoxBase]
|
|
8267
8273
|
}, /*#__PURE__*/React.createElement(View$1, {
|
|
8268
8274
|
style: [styles$1.base, tintColor != null ? {
|
|
8269
8275
|
background: tintColor
|
|
@@ -8289,7 +8295,7 @@ const styles$1 = StyleSheet.create({
|
|
|
8289
8295
|
padding: 1
|
|
8290
8296
|
},
|
|
8291
8297
|
hovered: {
|
|
8292
|
-
border: `
|
|
8298
|
+
border: `2px solid ${Color.blue}`,
|
|
8293
8299
|
padding: 1,
|
|
8294
8300
|
boxShadow: "none"
|
|
8295
8301
|
},
|
|
@@ -8312,16 +8318,13 @@ const styles$1 = StyleSheet.create({
|
|
|
8312
8318
|
borderRadius: 7,
|
|
8313
8319
|
border: "2px solid transparent"
|
|
8314
8320
|
},
|
|
8315
|
-
outerBoxHover: {
|
|
8316
|
-
border: `2px solid ${Color.blue}`
|
|
8317
|
-
},
|
|
8318
|
-
outerBoxPressed: {
|
|
8319
|
-
border: "2px solid #1B50B3"
|
|
8320
|
-
},
|
|
8321
8321
|
clickable: {
|
|
8322
8322
|
width: "100%",
|
|
8323
8323
|
height: "100%",
|
|
8324
|
-
boxSizing: "border-box"
|
|
8324
|
+
boxSizing: "border-box",
|
|
8325
|
+
":focus": {
|
|
8326
|
+
outline: `none`
|
|
8327
|
+
}
|
|
8325
8328
|
}
|
|
8326
8329
|
});
|
|
8327
8330
|
|