@aesthetic/addon-direction
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -5,10 +5,5 @@ /** | ||
*/ | ||
import { Direction, NativeProperty, Value } from '@aesthetic/types'; | ||
declare const _default: { | ||
convert<T extends Value>(from: Direction, to: Direction, property: NativeProperty, value: T): { | ||
property: NativeProperty; | ||
value: T; | ||
}; | ||
}; | ||
export default _default; | ||
import { DirectionConverter } from '@aesthetic/types'; | ||
declare const converter: DirectionConverter; | ||
export default converter; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,3 +9,3 @@ // Bundled with Packemon: https://packemon.dev | ||
const index = { | ||
const converter = { | ||
convert(from, to, property, value) { | ||
@@ -26,3 +26,3 @@ if (from === to) { | ||
}; | ||
export default index; | ||
export default converter; | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ // Bundled with Packemon: https://packemon.dev | ||
const index = { | ||
const converter = { | ||
convert(from, to, property, value) { | ||
@@ -29,3 +29,3 @@ if (from === to) { | ||
}; | ||
module.exports = index; | ||
module.exports = converter; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aesthetic/addon-direction", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Aesthetic addon to convert direction between LTR and RTL.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@aesthetic/types": "^0.6.1", | ||
"@aesthetic/types": "^0.6.2", | ||
"rtl-css-js": "^1.14.1" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "864068a1c3e4f6562bc2f920bca3de52d47bc19b" | ||
"gitHead": "1d7a8aee700f68a11bd98c7a3b3d45d2ef3f789c" | ||
} |
@@ -7,11 +7,6 @@ /** | ||
import { getPropertyDoppelganger, getValueDoppelganger } from 'rtl-css-js/core'; | ||
import { Direction, NativeProperty, Value } from '@aesthetic/types'; | ||
import { DirectionConverter, NativeProperty } from '@aesthetic/types'; | ||
export default { | ||
convert<T extends Value>( | ||
from: Direction, | ||
to: Direction, | ||
property: NativeProperty, | ||
value: T, | ||
): { property: NativeProperty; value: T } { | ||
const converter: DirectionConverter = { | ||
convert(from, to, property, value) { | ||
if (from === to) { | ||
@@ -27,1 +22,3 @@ return { property, value }; | ||
}; | ||
export default converter; |
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
6243
72
Updated@aesthetic/types@^0.6.2