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

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.
Files changed (50) hide show
  1. package/index.d.ts +80 -106
  2. package/package.json +1 -1
  3. package/platforms/android/masonkit-release.aar +0 -0
  4. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +363 -268
  5. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +67 -18
  6. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  7. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  8. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +18168 -14735
  10. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +366 -126
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +366 -126
  13. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2864 -2416
  15. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +726 -536
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +67 -18
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +18168 -14735
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +366 -126
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +366 -126
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +18168 -14735
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +366 -126
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +366 -126
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2864 -2416
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2779 -2352
  33. package/common.d.ts +0 -112
  34. package/common.js +0 -1071
  35. package/common.js.map +0 -1
  36. package/helpers.d.ts +0 -255
  37. package/helpers.js +0 -1315
  38. package/helpers.js.map +0 -1
  39. package/index.android.d.ts +0 -61
  40. package/index.android.js +0 -224
  41. package/index.android.js.map +0 -1
  42. package/index.ios.d.ts +0 -77
  43. package/index.ios.js +0 -481
  44. package/index.ios.js.map +0 -1
  45. package/style.d.ts +0 -166
  46. package/style.js +0 -1705
  47. package/style.js.map +0 -1
  48. package/web.d.ts +0 -55
  49. package/web.js +0 -189
  50. package/web.js.map +0 -1
package/index.d.ts CHANGED
@@ -3,19 +3,19 @@ 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
 
18
- export type Overflow = 'visible' | 'hidden' | 'scroll';
18
+ export type Overflow = 'visible' | 'hidden' | 'scroll' | 'clip' | 'auto';
19
19
 
20
20
  export type FlexWrap = 'no-wrap' | 'wrap' | 'wrap-reverse';
21
21
 
@@ -39,74 +39,82 @@ export type JustifyContent = AlignContent;
39
39
 
40
40
  export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense' | 'dense';
41
41
 
42
- export class View extends ViewBase {
43
- display: Display;
44
- position: Position;
45
- flexDirection: FlexDirection;
46
- flexWrap: FlexWrap;
47
- flex: string | 'auto' | 'none' | number | 'initial';
48
- flexFlow: string;
49
- width: LengthAuto;
50
- height: LengthAuto;
51
- maxWidth: LengthAuto;
52
- maxHeight: LengthAuto;
53
- left: Length;
54
- right: Length;
55
- top: Length;
56
- bottom: Length;
57
- gridGap: Gap;
58
- gap: Gap;
59
- rowGap: Length;
60
- columnGap: Length;
61
- aspectRatio: number;
62
- flexBasis: Length;
63
- alignItems: AlignItems;
64
- alignSelf: AlignSelf;
65
- alignContent: AlignContent;
66
- justifyItems: JustifyItems;
67
- justifySelf: JustifySelf;
68
- justifyContent: JustifyContent;
69
- gridAutoRows: string;
70
- gridAutoColumns: string;
71
- gridAutoFlow: GridAutoFlow;
72
- gridRowGap: Gap;
73
- gridColumnGap: Gap;
74
- gridArea: string;
75
- gridColumn: string;
76
- gridColumnStart: string;
77
- gridColumnEnd: string;
78
- gridRow: string;
79
- gridRowStart: string;
80
- gridRowEnd: string;
81
- gridTemplateRows: string;
82
- gridTemplateColumns: string;
83
- overflow: Overflow;
84
- overflowX: Overflow;
85
- overflowY: Overflow;
86
- scrollBarWidth: number | CoreTypes.LengthType;
42
+ declare module '@nativescript/core/ui/styling/style' {
43
+ interface Style {
44
+ boxSizing: BoxSizing;
45
+ display: Display;
46
+ position: Position;
47
+ flexDirection: FlexDirection;
48
+ flexWrap: FlexWrap;
49
+ flex: string | 'auto' | 'none' | number | 'initial';
50
+ flexFlow: string;
51
+ minWidth: LengthAuto;
52
+ minHeight: LengthAuto;
53
+ width: LengthAuto;
54
+ height: LengthAuto;
55
+ maxWidth: LengthAuto;
56
+ maxHeight: LengthAuto;
57
+ left: LengthAuto;
58
+ right: LengthAuto;
59
+ top: LengthAuto;
60
+ bottom: LengthAuto;
61
+ gridGap: Gap;
62
+ gap: Gap;
63
+ rowGap: Length;
64
+ columnGap: Length;
65
+ aspectRatio: number;
66
+ flexBasis: LengthPercentage | string | number;
67
+ alignItems: AlignItems;
68
+ alignSelf: AlignSelf;
69
+ alignContent: AlignContent;
70
+ justifyItems: JustifyItems;
71
+ justifySelf: JustifySelf;
72
+ justifyContent: JustifyContent;
73
+ gridAutoRows: string;
74
+ gridAutoColumns: string;
75
+ gridAutoFlow: GridAutoFlow;
76
+ gridRowGap: Gap;
77
+ gridColumnGap: Gap;
78
+ gridArea: string;
79
+ gridColumn: string;
80
+ gridColumnStart: string;
81
+ gridColumnEnd: string;
82
+ gridRow: string;
83
+ gridRowStart: string;
84
+ gridRowEnd: string;
85
+ gridTemplateRows: string;
86
+ gridTemplateColumns: string;
87
+ overflow: Overflow | `${Overflow} ${Overflow}`;
88
+ overflowX: Overflow;
89
+ overflowY: Overflow;
90
+ scrollBarWidth: Length;
91
+ }
87
92
  }
88
93
 
89
- export class Text extends TextBase {
94
+ interface Style {
95
+ boxSizing: BoxSizing;
90
96
  display: Display;
91
97
  position: Position;
92
98
  flexDirection: FlexDirection;
93
99
  flexWrap: FlexWrap;
94
100
  flex: string | 'auto' | 'none' | number | 'initial';
95
101
  flexFlow: string;
102
+ minWidth: LengthAuto;
103
+ minHeight: LengthAuto;
96
104
  width: LengthAuto;
97
105
  height: LengthAuto;
98
106
  maxWidth: LengthAuto;
99
107
  maxHeight: LengthAuto;
100
- left: Length;
101
- right: Length;
102
- top: Length;
103
- bottom: Length;
108
+ left: LengthAuto;
109
+ right: LengthAuto;
110
+ top: LengthAuto;
111
+ bottom: LengthAuto;
104
112
  gridGap: Gap;
105
113
  gap: Gap;
106
114
  rowGap: Length;
107
115
  columnGap: Length;
108
116
  aspectRatio: number;
109
- flexBasis: Length;
117
+ flexBasis: LengthPercentage | string | number;
110
118
  alignItems: AlignItems;
111
119
  alignSelf: AlignSelf;
112
120
  alignContent: AlignContent;
@@ -127,14 +135,15 @@ export class Text extends TextBase {
127
135
  gridRowEnd: string;
128
136
  gridTemplateRows: string;
129
137
  gridTemplateColumns: string;
130
- overflow: Overflow;
138
+ overflow: Overflow | `${Overflow} ${Overflow}`;
131
139
  overflowX: Overflow;
132
140
  overflowY: Overflow;
133
- scrollBarWidth: number | CoreTypes.LengthType;
141
+ scrollBarWidth: Length;
134
142
  }
135
143
 
136
- export class Img extends ViewBase {
137
- src: string;
144
+ interface IViewBase {
145
+ style: Style;
146
+ boxSizing: BoxSizing;
138
147
  display: Display;
139
148
  position: Position;
140
149
  flexDirection: FlexDirection;
@@ -181,51 +190,16 @@ export class Img extends ViewBase {
181
190
  scrollBarWidth: number | CoreTypes.LengthType;
182
191
  }
183
192
 
184
- declare module '@nativescript/core/ui/styling/style' {
185
- interface Style {
186
- display: Display;
187
- position: Position;
188
- flexDirection: FlexDirection;
189
- flexWrap: FlexWrap;
190
- flex: string | 'auto' | 'none' | number | 'initial';
191
- flexFlow: string;
192
- width: LengthPercentage | string | number;
193
- height: LengthPercentage | string | number;
194
- maxWidth: LengthPercentage | string | number;
195
- maxHeight: LengthPercentage | string | number;
196
- left: Length;
197
- right: Length;
198
- top: Length;
199
- bottom: Length;
200
- gridGap: Gap;
201
- gap: Gap;
202
- rowGap: Length;
203
- columnGap: Length;
204
- aspectRatio: number;
205
- flexBasis: LengthPercentage | string | number;
206
- alignItems: AlignItems;
207
- alignSelf: AlignSelf;
208
- alignContent: AlignContent;
209
- justifyItems: JustifyItems;
210
- justifySelf: JustifySelf;
211
- justifyContent: JustifyContent;
212
- gridAutoRows: string;
213
- gridAutoColumns: string;
214
- gridAutoFlow: GridAutoFlow;
215
- gridRowGap: Gap;
216
- gridColumnGap: Gap;
217
- gridArea: string;
218
- gridColumn: string;
219
- gridColumnStart: string;
220
- gridColumnEnd: string;
221
- gridRow: string;
222
- gridRowStart: string;
223
- gridRowEnd: string;
224
- gridTemplateRows: string;
225
- gridTemplateColumns: string;
226
- overflow: Overflow;
227
- overflowX: Overflow;
228
- overflowY: Overflow;
229
- scrollBarWidth: number | CoreTypes.LengthType;
230
- }
193
+ class VBase extends ViewBase implements IViewBase {
194
+ style: Style;
195
+ }
196
+
197
+ export class View extends VBase {}
198
+
199
+ export class Text extends VBase {}
200
+
201
+ export class Img extends VBase {
202
+ src: string;
231
203
  }
204
+
205
+ export class Scroll extends VBase {}
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.23",
4
4
  "description": "Web Inspired Layout",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",