@react-md/states
Advanced tools
Comparing version 2.8.3 to 2.8.4
@@ -6,2 +6,14 @@ # Change Log | ||
## [2.8.4](https://github.com/mlaursen/react-md/compare/v2.8.3...v2.8.4) (2021-06-10) | ||
### Other Internal Changes | ||
* ran `prettier` after upgrading to v2.3.0 ([3ce236a](https://github.com/mlaursen/react-md/commit/3ce236a6008ff3d57f16cf3f6ab8e85fcce1dd4d)) | ||
## [2.8.3](https://github.com/mlaursen/react-md/compare/v2.8.2...v2.8.3) (2021-05-18) | ||
@@ -8,0 +20,0 @@ |
{ | ||
"name": "@react-md/states", | ||
"version": "2.8.3", | ||
"version": "2.8.4", | ||
"description": "A package for adding the different focus, hover, selected, active, etc states to elements", | ||
@@ -38,5 +38,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/theme": "^2.8.3", | ||
"@react-md/transition": "^2.8.3", | ||
"@react-md/utils": "^2.8.3", | ||
"@react-md/theme": "^2.8.4", | ||
"@react-md/transition": "^2.8.4", | ||
"@react-md/utils": "^2.8.4", | ||
"classnames": "^2.3.1", | ||
@@ -58,3 +58,3 @@ "react-transition-group": "^4.4.1" | ||
}, | ||
"gitHead": "c02bfcf9eca5196f9b9c415bdf6d81cabd08a980" | ||
"gitHead": "4266facbfb84ce7fbd66ef5eed040b33fd95b92b" | ||
} |
@@ -300,19 +300,21 @@ import { | ||
const makeGetItem = ({ pageX = 0, pageY = 0 } = {}) => () => ({ | ||
identifier: 0, | ||
altitudeAngle: 0, | ||
azimuthAngle: 0, | ||
clientX: 0, | ||
clientY: 0, | ||
force: 0, | ||
pageX, | ||
pageY, | ||
radiusX: 0, | ||
radiusY: 0, | ||
rotationAngle: 0, | ||
screenX: 0, | ||
screenY: 0, | ||
target: element, | ||
touchType: "direct", | ||
}); | ||
const makeGetItem = | ||
({ pageX = 0, pageY = 0 } = {}) => | ||
() => ({ | ||
identifier: 0, | ||
altitudeAngle: 0, | ||
azimuthAngle: 0, | ||
clientX: 0, | ||
clientY: 0, | ||
force: 0, | ||
pageX, | ||
pageY, | ||
radiusX: 0, | ||
radiusY: 0, | ||
rotationAngle: 0, | ||
screenX: 0, | ||
screenY: 0, | ||
target: element, | ||
touchType: "direct", | ||
}); | ||
@@ -426,19 +428,21 @@ const createTouches = ({ pageX = 0, pageY = 0 } = {}) => ({ | ||
}; | ||
const makeGetItem = ({ pageX = 0, pageY = 0 } = {}) => () => ({ | ||
identifier: 0, | ||
altitudeAngle: 0, | ||
azimuthAngle: 0, | ||
clientX: 0, | ||
clientY: 0, | ||
force: 0, | ||
pageX, | ||
pageY, | ||
radiusX: 0, | ||
radiusY: 0, | ||
rotationAngle: 0, | ||
screenX: 0, | ||
screenY: 0, | ||
target, | ||
touchType: "direct", | ||
}); | ||
const makeGetItem = | ||
({ pageX = 0, pageY = 0 } = {}) => | ||
() => ({ | ||
identifier: 0, | ||
altitudeAngle: 0, | ||
azimuthAngle: 0, | ||
clientX: 0, | ||
clientY: 0, | ||
force: 0, | ||
pageX, | ||
pageY, | ||
radiusX: 0, | ||
radiusY: 0, | ||
rotationAngle: 0, | ||
screenX: 0, | ||
screenY: 0, | ||
target, | ||
touchType: "direct", | ||
}); | ||
@@ -445,0 +449,0 @@ const createTouches = ({ pageX = 0, pageY = 0 } = {}) => ({ |
@@ -57,14 +57,4 @@ import { Reducer, useCallback, useReducer } from "react"; | ||
): CreateAction<E> { | ||
const { | ||
type, | ||
target, | ||
currentTarget, | ||
touches, | ||
pageX, | ||
pageY, | ||
button, | ||
key, | ||
} = event as React.MouseEvent<E> & | ||
React.TouchEvent<E> & | ||
React.KeyboardEvent<E>; | ||
const { type, target, currentTarget, touches, pageX, pageY, button, key } = | ||
event as React.MouseEvent<E> & React.TouchEvent<E> & React.KeyboardEvent<E>; | ||
@@ -71,0 +61,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
330119
5131
Updated@react-md/theme@^2.8.4
Updated@react-md/transition@^2.8.4
Updated@react-md/utils@^2.8.4