@triniwiz/nativescript-masonkit 1.0.0-alpha.21 → 1.0.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -3,15 +3,15 @@ import { CoreTypes } from '@nativescript/core';
3
3
  import { TextBase, ViewBase } from './common';
4
4
  import { LengthPercentage } from '@nativescript/core/css/parser';
5
5
 
6
- export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit;
6
+ export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | `${number}px` | `${number}%` | `${number}dip`;
7
7
 
8
- export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | 'auto';
8
+ export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | 'auto' | `${number}px` | `${number}%` | `${number}dip`;
9
9
 
10
10
  export type SizeLength = { width: LengthType; height: LengthType };
11
11
 
12
12
  export type Position = 'absolute' | 'relative';
13
13
 
14
- export type Display = 'none' | 'flex' | 'grid' | 'block';
14
+ export type Display = 'none' | 'flex' | 'grid' | 'block' | 'inline' | 'inline-block' | 'inline-flex' | 'inline-grid';
15
15
 
16
16
  export type BoxSizing = 'border-box' | 'content-box';
17
17
 
@@ -40,6 +40,7 @@ export type JustifyContent = AlignContent;
40
40
  export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense' | 'dense';
41
41
 
42
42
  export class View extends ViewBase {
43
+ boxSizing: BoxSizing;
43
44
  display: Display;
44
45
  position: Position;
45
46
  flexDirection: FlexDirection;
@@ -141,6 +142,8 @@ export class Img extends ViewBase {
141
142
  flexWrap: FlexWrap;
142
143
  flex: string | 'auto' | 'none' | number | 'initial';
143
144
  flexFlow: string;
145
+ minWidth: LengthAuto;
146
+ minHeight: LengthAuto;
144
147
  width: LengthAuto;
145
148
  height: LengthAuto;
146
149
  maxWidth: LengthAuto;
@@ -178,21 +181,24 @@ export class Img extends ViewBase {
178
181
  overflow: Overflow;
179
182
  overflowX: Overflow;
180
183
  overflowY: Overflow;
181
- scrollBarWidth: number | CoreTypes.LengthType;
184
+ scrollBarWidth: Length;
182
185
  }
183
186
 
184
187
  declare module '@nativescript/core/ui/styling/style' {
185
188
  interface Style {
189
+ boxSizing: BoxSizing;
186
190
  display: Display;
187
191
  position: Position;
188
192
  flexDirection: FlexDirection;
189
193
  flexWrap: FlexWrap;
190
194
  flex: string | 'auto' | 'none' | number | 'initial';
191
195
  flexFlow: string;
192
- width: LengthPercentage | string | number;
193
- height: LengthPercentage | string | number;
194
- maxWidth: LengthPercentage | string | number;
195
- maxHeight: LengthPercentage | string | number;
196
+ minWidth: LengthAuto;
197
+ minHeight: LengthAuto;
198
+ width: LengthAuto;
199
+ height: LengthAuto;
200
+ maxWidth: LengthAuto;
201
+ maxHeight: LengthAuto;
196
202
  left: Length;
197
203
  right: Length;
198
204
  top: Length;
@@ -226,6 +232,6 @@ declare module '@nativescript/core/ui/styling/style' {
226
232
  overflow: Overflow;
227
233
  overflowX: Overflow;
228
234
  overflowY: Overflow;
229
- scrollBarWidth: number | CoreTypes.LengthType;
235
+ scrollBarWidth: Length;
230
236
  }
231
237
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triniwiz/nativescript-masonkit",
3
- "version": "1.0.0-alpha.21",
3
+ "version": "1.0.0-alpha.22",
4
4
  "description": "Web Inspired Layout",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",