@nativescript-community/ui-material-core
Advanced tools
Comparing version 5.2.20 to 5.2.21
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.2.21](https://github.com/nativescript-community/ui-material-components/compare/v5.2.20...v5.2.21) (2021-04-16) | ||
**Note:** Version bump only for package @nativescript-community/ui-material-core | ||
## [5.2.20](https://github.com/nativescript-community/ui-material-components/compare/v5.2.19...v5.2.20) (2021-04-12) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@nativescript-community/ui-material-core", | ||
"version": "5.2.20", | ||
"version": "5.2.21", | ||
"description": "Material Core component", | ||
@@ -48,3 +48,3 @@ "main": "./index", | ||
"readmeFilename": "README.md", | ||
"gitHead": "29ee31ae16d66567ce91af375297b9448979cf41", | ||
"gitHead": "da6168d684fe45421008d580764bcea743b355f0", | ||
"dependencies": { | ||
@@ -51,0 +51,0 @@ "@nativescript/hook": "~2.0.0" |
@@ -1,8 +0,8 @@ | ||
import { AddArrayFromBuilder, AddChildFromBuilder, Color, Property, View, ViewBase } from '@nativescript/core'; | ||
import { AddArrayFromBuilder, AddChildFromBuilder, Color, CssProperty, Property, Style, View, ViewBase } from '@nativescript/core'; | ||
import { TabStripItem } from '../tab-strip-item'; | ||
import { TabStrip as TabStripDefinition } from './'; | ||
export declare const traceCategory = "TabView"; | ||
export declare const highlightColorProperty: Property<TabStripDefinition, Color>; | ||
export declare const selectedItemColorProperty: Property<TabStripDefinition, Color>; | ||
export declare const unSelectedItemColorProperty: Property<TabStripDefinition, Color>; | ||
export declare const highlightColorProperty: CssProperty<Style, Color>; | ||
export declare const selectedItemColorProperty: CssProperty<Style, Color>; | ||
export declare const unSelectedItemColorProperty: CssProperty<Style, Color>; | ||
export declare class TabStrip extends View implements TabStripDefinition, AddChildFromBuilder, AddArrayFromBuilder { | ||
@@ -9,0 +9,0 @@ static itemTapEvent: string; |
@@ -1,2 +0,2 @@ | ||
import { CSSType, Color, Property, View, booleanConverter } from '@nativescript/core'; | ||
import { CSSType, Color, CssProperty, Property, Style, View, booleanConverter } from '@nativescript/core'; | ||
import { backgroundColorProperty, backgroundInternalProperty, colorProperty, fontInternalProperty } from '@nativescript/core/ui/styling/style-properties'; | ||
@@ -6,14 +6,17 @@ import { textTransformProperty } from '@nativescript/core/ui/text-base'; | ||
export const traceCategory = 'TabView'; | ||
export const highlightColorProperty = new Property({ | ||
export const highlightColorProperty = new CssProperty({ | ||
name: 'highlightColor', | ||
cssName: 'highlight-color', | ||
equalityComparer: Color.equals, | ||
valueConverter: (v) => new Color(v) | ||
}); | ||
export const selectedItemColorProperty = new Property({ | ||
export const selectedItemColorProperty = new CssProperty({ | ||
name: 'selectedItemColor', | ||
cssName: 'selected-item-color', | ||
equalityComparer: Color.equals, | ||
valueConverter: (v) => new Color(v) | ||
}); | ||
export const unSelectedItemColorProperty = new Property({ | ||
export const unSelectedItemColorProperty = new CssProperty({ | ||
name: 'unSelectedItemColor', | ||
cssName: 'un-selected-item-color', | ||
equalityComparer: Color.equals, | ||
@@ -105,2 +108,3 @@ valueConverter: (v) => new Color(v) | ||
[selectedItemColorProperty.setNative](value) { | ||
console.log('selectedItemColorProperty', value, new Error().stack); | ||
const parent = this.parent; | ||
@@ -138,5 +142,5 @@ return parent && parent.setTabBarSelectedItemColor(value); | ||
isIconSizeFixedProperty.register(TabStrip); | ||
highlightColorProperty.register(TabStrip); | ||
selectedItemColorProperty.register(TabStrip); | ||
unSelectedItemColorProperty.register(TabStrip); | ||
highlightColorProperty.register(Style); | ||
selectedItemColorProperty.register(Style); | ||
unSelectedItemColorProperty.register(Style); | ||
//# sourceMappingURL=index.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
311486
3527