@nativescript-community/ui-material-core
Advanced tools
Comparing version 5.0.14 to 5.0.16
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.0.16](https://github.com/Akylas/nativescript-material-components/compare/v5.0.15...v5.0.16) (2020-10-08) | ||
**Note:** Version bump only for package @nativescript-community/ui-material-core | ||
## [5.0.14](https://github.com/Akylas/nativescript-material-components/compare/v5.0.13...v5.0.14) (2020-10-02) | ||
@@ -8,0 +16,0 @@ |
@@ -1,3 +0,2 @@ | ||
import { Color, CssProperty, InheritedCssProperty, Length, Style } from '@nativescript/core'; | ||
import { VerticalTextAlignment } from '.'; | ||
import { Color, CssProperty, Length, Style } from '@nativescript/core'; | ||
export declare const cssProperty: (target: Object, key: string | symbol) => void; | ||
@@ -8,2 +7,1 @@ export declare const rippleColorProperty: CssProperty<Style, Color>; | ||
export declare const variantProperty: CssProperty<Style, string>; | ||
export declare const verticalTextAlignmentProperty: InheritedCssProperty<Style, VerticalTextAlignment>; |
@@ -1,2 +0,2 @@ | ||
import { Color, CssProperty, InheritedCssProperty, Style, makeParser, makeValidator } from '@nativescript/core'; | ||
import { Color, CssProperty, Style } from '@nativescript/core'; | ||
function createGetter(key) { | ||
@@ -44,10 +44,2 @@ return function () { | ||
variantProperty.register(Style); | ||
const textAlignmentConverter = makeParser(makeValidator('initial', 'top', 'middle', 'bottom')); | ||
export const verticalTextAlignmentProperty = new InheritedCssProperty({ | ||
name: 'verticalTextAlignment', | ||
cssName: 'vertical-text-align', | ||
defaultValue: 'initial', | ||
valueConverter: textAlignmentConverter | ||
}); | ||
verticalTextAlignmentProperty.register(Style); | ||
//# sourceMappingURL=cssproperties.js.map |
@@ -137,3 +137,3 @@ import { Application, Button, Color, Length, View, androidDynamicElevationOffsetProperty, androidElevationProperty, backgroundInternalProperty } from '@nativescript/core'; | ||
const newValue = Length.toDevicePixels(typeof value === 'string' ? Length.parse(value) : value, 0); | ||
this.nativeViewProtected.setElevation(newValue); | ||
androidx.core.view.ViewCompat.setElevation(this.nativeViewProtected, newValue); | ||
} | ||
@@ -148,3 +148,3 @@ } | ||
const newValue = Length.toDevicePixels(typeof value === 'string' ? Length.parse(value) : value, 0); | ||
this.nativeViewProtected.setTranslationZ(newValue); | ||
androidx.core.view.ViewCompat.setTranslationZ(this.nativeViewProtected, newValue); | ||
} | ||
@@ -151,0 +151,0 @@ } |
@@ -35,5 +35,4 @@ import { Color } from '@nativescript/core'; | ||
export type VerticalTextAlignment = 'initial' | 'top' | 'middle' | 'bottom'; | ||
type Constructor<T = {}> = new (...args: any[]) => T; | ||
export function mixin<T1 extends Constructor, T2 extends Constructor>(mix1: T1, mix2: T2): (new (...args: any[]) => InstanceType<T1> & InstanceType<T2>) & T1 & T2; |
{ | ||
"name": "@nativescript-community/ui-material-core", | ||
"version": "5.0.14", | ||
"version": "5.0.16", | ||
"description": "Material Core component", | ||
@@ -48,3 +48,3 @@ "main": "./index", | ||
"readmeFilename": "README.md", | ||
"gitHead": "b718cb9cd609e79ce676068d3837d5469d435bce", | ||
"gitHead": "ab4489246e4c747580faca24e6d7684c163d53a2", | ||
"dependencies": { | ||
@@ -51,0 +51,0 @@ "@nativescript/hook": "~2.0.0" |
import { Color, CssProperty, Style } from '@nativescript/core'; | ||
export declare const errorColorProperty: CssProperty<Style, Color>; | ||
export declare const helperProperty: CssProperty<Style, string>; | ||
export declare const helperColorProperty: CssProperty<Style, Color>; | ||
export declare const errorProperty: CssProperty<Style, string>; | ||
@@ -5,0 +6,0 @@ export declare const maxLengthProperty: CssProperty<Style, number>; |
@@ -14,2 +14,9 @@ import { Color, CssProperty, Style, booleanConverter } from '@nativescript/core'; | ||
helperProperty.register(Style); | ||
export const helperColorProperty = new CssProperty({ | ||
name: 'helperColor', | ||
cssName: 'helper-color', | ||
equalityComparer: Color.equals, | ||
valueConverter: v => new Color(v), | ||
}); | ||
helperColorProperty.register(Style); | ||
export const errorProperty = new CssProperty({ | ||
@@ -16,0 +23,0 @@ name: 'error', |
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
193660
1926