bpk-react-utils
Advanced tools
Comparing version 2.7.10 to 2.8.0-css.0
@@ -26,2 +26,3 @@ /* | ||
import withDefaultProps from './src/withDefaultProps'; | ||
import isRTL from './src/isRTL'; | ||
@@ -35,2 +36,3 @@ export { | ||
wrapDisplayName, | ||
isRTL, | ||
}; | ||
@@ -44,2 +46,3 @@ export default { | ||
wrapDisplayName, | ||
isRTL, | ||
}; |
{ | ||
"name": "bpk-react-utils", | ||
"version": "2.7.10", | ||
"version": "2.8.0-css.0", | ||
"description": "Utilities for Backpack's React components.", | ||
@@ -24,4 +24,3 @@ "main": "index.js", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"gitHead": "a9633f5cc0af2596bcd9d4bae78c7967bdbc6a33" | ||
} | ||
} |
@@ -184,1 +184,18 @@ # bpk-react-utils | ||
| transitionTimeout | number | true | - | | ||
## `isRTL` | ||
Returns true if the browser is showing content right-to-left. | ||
### Usage | ||
```js | ||
import React from 'react'; | ||
import { isRTL } from 'bpk-react-utils'; | ||
if (isRTL()) { | ||
// do RTL stuff | ||
} else { | ||
// do LTR stuff | ||
} | ||
``` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17
1044
201
42032
2