@getcortexlabs/mavis 0.1.0-alpha.4 → 0.1.0-alpha.6

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 (216) hide show
  1. package/README.md +5 -5
  2. package/dist/app-icons.d.ts +26 -0
  3. package/dist/app-icons.d.ts.map +1 -0
  4. package/dist/app-icons.js +9 -0
  5. package/dist/app-icons.js.map +1 -0
  6. package/dist/files.d.ts +4 -0
  7. package/dist/files.d.ts.map +1 -0
  8. package/dist/files.js +3 -0
  9. package/dist/files.js.map +1 -0
  10. package/dist/native/app-icons.android.d.ts +4 -0
  11. package/dist/native/app-icons.android.d.ts.map +1 -0
  12. package/dist/native/app-icons.android.js +67 -0
  13. package/dist/native/app-icons.android.js.map +1 -0
  14. package/dist/native/app-icons.d.ts +4 -0
  15. package/dist/native/app-icons.d.ts.map +1 -0
  16. package/dist/native/app-icons.ios.d.ts +4 -0
  17. package/dist/native/app-icons.ios.d.ts.map +1 -0
  18. package/dist/native/app-icons.ios.js +45 -0
  19. package/dist/native/app-icons.ios.js.map +1 -0
  20. package/dist/native/app-icons.js +9 -0
  21. package/dist/native/app-icons.js.map +1 -0
  22. package/dist/native/combobox-editor.android.d.ts +3 -0
  23. package/dist/native/combobox-editor.android.d.ts.map +1 -0
  24. package/dist/native/combobox-editor.android.js +5 -0
  25. package/dist/native/combobox-editor.android.js.map +1 -0
  26. package/dist/native/combobox-editor.d.ts +4 -0
  27. package/dist/native/combobox-editor.d.ts.map +1 -0
  28. package/dist/native/combobox-editor.js +5 -0
  29. package/dist/native/combobox-editor.js.map +1 -0
  30. package/dist/native/file-access.d.ts +23 -0
  31. package/dist/native/file-access.d.ts.map +1 -0
  32. package/dist/native/file-access.js +55 -0
  33. package/dist/native/file-access.js.map +1 -0
  34. package/dist/native/file-picker.android.d.ts +3 -0
  35. package/dist/native/file-picker.android.d.ts.map +1 -0
  36. package/dist/native/file-picker.android.js +147 -0
  37. package/dist/native/file-picker.android.js.map +1 -0
  38. package/dist/native/file-picker.d.ts +4 -0
  39. package/dist/native/file-picker.d.ts.map +1 -0
  40. package/dist/native/file-picker.ios.d.ts +3 -0
  41. package/dist/native/file-picker.ios.d.ts.map +1 -0
  42. package/dist/native/file-picker.ios.js +152 -0
  43. package/dist/native/file-picker.ios.js.map +1 -0
  44. package/dist/native/file-picker.js +7 -0
  45. package/dist/native/file-picker.js.map +1 -0
  46. package/dist/native/motion-owner.d.ts +5 -0
  47. package/dist/native/motion-owner.d.ts.map +1 -0
  48. package/dist/native/motion-owner.js +57 -0
  49. package/dist/native/motion-owner.js.map +1 -0
  50. package/dist/native/motion-region.d.ts +6 -0
  51. package/dist/native/motion-region.d.ts.map +1 -0
  52. package/dist/native/motion-region.js +237 -0
  53. package/dist/native/motion-region.js.map +1 -0
  54. package/dist/native/motion-surface.d.ts +1 -1
  55. package/dist/native/motion-surface.d.ts.map +1 -1
  56. package/dist/native/motion-surface.js +43 -2
  57. package/dist/native/motion-surface.js.map +1 -1
  58. package/dist/native/press.d.ts +3 -2
  59. package/dist/native/press.d.ts.map +1 -1
  60. package/dist/native/press.js.map +1 -1
  61. package/dist/native/scroll-motion.d.ts +1 -0
  62. package/dist/native/scroll-motion.d.ts.map +1 -1
  63. package/dist/native/scroll-motion.js +6 -0
  64. package/dist/native/scroll-motion.js.map +1 -1
  65. package/dist/vue/components/ChoiceControl.d.ts +21 -11
  66. package/dist/vue/components/ChoiceControl.d.ts.map +1 -1
  67. package/dist/vue/components/DateCalendar.d.ts +94 -0
  68. package/dist/vue/components/DateCalendar.d.ts.map +1 -0
  69. package/dist/vue/components/DateCalendar.js +96 -0
  70. package/dist/vue/components/DateCalendar.js.map +1 -0
  71. package/dist/vue/components/MAccordion.d.ts +19 -9
  72. package/dist/vue/components/MAccordion.d.ts.map +1 -1
  73. package/dist/vue/components/MAlert.d.ts +20 -10
  74. package/dist/vue/components/MAlert.d.ts.map +1 -1
  75. package/dist/vue/components/MAvatar.d.ts +12 -6
  76. package/dist/vue/components/MAvatar.d.ts.map +1 -1
  77. package/dist/vue/components/MBadge.d.ts +12 -6
  78. package/dist/vue/components/MBadge.d.ts.map +1 -1
  79. package/dist/vue/components/MButton.d.ts +127 -39
  80. package/dist/vue/components/MButton.d.ts.map +1 -1
  81. package/dist/vue/components/MButton.js +20 -13
  82. package/dist/vue/components/MButton.js.map +1 -1
  83. package/dist/vue/components/MCard.d.ts +89 -15
  84. package/dist/vue/components/MCard.d.ts.map +1 -1
  85. package/dist/vue/components/MCard.js +12 -5
  86. package/dist/vue/components/MCard.js.map +1 -1
  87. package/dist/vue/components/MCheckbox.d.ts +20 -10
  88. package/dist/vue/components/MCheckbox.d.ts.map +1 -1
  89. package/dist/vue/components/MChip.d.ts +22 -12
  90. package/dist/vue/components/MChip.d.ts.map +1 -1
  91. package/dist/vue/components/MCombobox.d.ts +279 -0
  92. package/dist/vue/components/MCombobox.d.ts.map +1 -0
  93. package/dist/vue/components/MCombobox.js +234 -0
  94. package/dist/vue/components/MCombobox.js.map +1 -0
  95. package/dist/vue/components/MDatePicker.d.ts +1302 -0
  96. package/dist/vue/components/MDatePicker.d.ts.map +1 -0
  97. package/dist/vue/components/MDatePicker.js +35 -0
  98. package/dist/vue/components/MDatePicker.js.map +1 -0
  99. package/dist/vue/components/MDialog.d.ts +7 -5
  100. package/dist/vue/components/MDialog.d.ts.map +1 -1
  101. package/dist/vue/components/MEmptyState.d.ts +19 -9
  102. package/dist/vue/components/MEmptyState.d.ts.map +1 -1
  103. package/dist/vue/components/MFilePicker.d.ts +112 -0
  104. package/dist/vue/components/MFilePicker.d.ts.map +1 -0
  105. package/dist/vue/components/MFilePicker.js +196 -0
  106. package/dist/vue/components/MFilePicker.js.map +1 -0
  107. package/dist/vue/components/MIcon.d.ts +4 -2
  108. package/dist/vue/components/MIcon.d.ts.map +1 -1
  109. package/dist/vue/components/MInput.d.ts +132 -60
  110. package/dist/vue/components/MInput.d.ts.map +1 -1
  111. package/dist/vue/components/MInput.js +3 -3
  112. package/dist/vue/components/MInput.js.map +1 -1
  113. package/dist/vue/components/MLink.d.ts +120 -0
  114. package/dist/vue/components/MLink.d.ts.map +1 -0
  115. package/dist/vue/components/MLink.js +81 -0
  116. package/dist/vue/components/MLink.js.map +1 -0
  117. package/dist/vue/components/MListItem.d.ts +26 -12
  118. package/dist/vue/components/MListItem.d.ts.map +1 -1
  119. package/dist/vue/components/MProgress.d.ts +18 -8
  120. package/dist/vue/components/MProgress.d.ts.map +1 -1
  121. package/dist/vue/components/MRadioGroup.d.ts +19 -9
  122. package/dist/vue/components/MRadioGroup.d.ts.map +1 -1
  123. package/dist/vue/components/MReveal.d.ts +71 -35
  124. package/dist/vue/components/MReveal.d.ts.map +1 -1
  125. package/dist/vue/components/MReveal.js +80 -35
  126. package/dist/vue/components/MReveal.js.map +1 -1
  127. package/dist/vue/components/MScreen.d.ts +12 -6
  128. package/dist/vue/components/MScreen.d.ts.map +1 -1
  129. package/dist/vue/components/MSegmentedControl.d.ts +19 -9
  130. package/dist/vue/components/MSegmentedControl.d.ts.map +1 -1
  131. package/dist/vue/components/MSelect.d.ts +21 -11
  132. package/dist/vue/components/MSelect.d.ts.map +1 -1
  133. package/dist/vue/components/MSeparator.d.ts +4 -2
  134. package/dist/vue/components/MSeparator.d.ts.map +1 -1
  135. package/dist/vue/components/MSheet.d.ts +18 -12
  136. package/dist/vue/components/MSheet.d.ts.map +1 -1
  137. package/dist/vue/components/MSkeleton.d.ts +16 -8
  138. package/dist/vue/components/MSkeleton.d.ts.map +1 -1
  139. package/dist/vue/components/MSlider.d.ts +9 -5
  140. package/dist/vue/components/MSlider.d.ts.map +1 -1
  141. package/dist/vue/components/MStack.d.ts +199 -0
  142. package/dist/vue/components/MStack.d.ts.map +1 -0
  143. package/dist/vue/components/MStack.js +62 -0
  144. package/dist/vue/components/MStack.js.map +1 -0
  145. package/dist/vue/components/MSwitch.d.ts +19 -9
  146. package/dist/vue/components/MSwitch.d.ts.map +1 -1
  147. package/dist/vue/components/MTabs.d.ts +19 -9
  148. package/dist/vue/components/MTabs.d.ts.map +1 -1
  149. package/dist/vue/components/MText.d.ts +42 -26
  150. package/dist/vue/components/MText.d.ts.map +1 -1
  151. package/dist/vue/components/MText.js +3 -3
  152. package/dist/vue/components/MText.js.map +1 -1
  153. package/dist/vue/components/layout.d.ts +191 -82
  154. package/dist/vue/components/layout.d.ts.map +1 -1
  155. package/dist/vue/components/layout.js +9 -7
  156. package/dist/vue/components/layout.js.map +1 -1
  157. package/dist/vue/components/workflows.d.ts +251 -0
  158. package/dist/vue/components/workflows.d.ts.map +1 -0
  159. package/dist/vue/components/workflows.js +35 -0
  160. package/dist/vue/components/workflows.js.map +1 -0
  161. package/dist/vue/index.d.ts +9 -2
  162. package/dist/vue/index.d.ts.map +1 -1
  163. package/dist/vue/index.js +19 -2
  164. package/dist/vue/index.js.map +1 -1
  165. package/dist/vue/navigation.d.ts +4 -0
  166. package/dist/vue/navigation.d.ts.map +1 -0
  167. package/dist/vue/navigation.js +16 -0
  168. package/dist/vue/navigation.js.map +1 -0
  169. package/dist/vue/reveal-motion.d.ts.map +1 -1
  170. package/dist/vue/reveal-motion.js +6 -3
  171. package/dist/vue/reveal-motion.js.map +1 -1
  172. package/dist/vue/use-motion-region.d.ts +7 -0
  173. package/dist/vue/use-motion-region.d.ts.map +1 -0
  174. package/dist/vue/use-motion-region.js +28 -0
  175. package/dist/vue/use-motion-region.js.map +1 -0
  176. package/dist/vue/use-motion-surface.d.ts.map +1 -1
  177. package/dist/vue/use-motion-surface.js +3 -2
  178. package/dist/vue/use-motion-surface.js.map +1 -1
  179. package/dist/vue/use-press.js +3 -3
  180. package/dist/vue/use-press.js.map +1 -1
  181. package/package.json +7 -3
  182. package/src/app-icons.ts +21 -0
  183. package/src/files.ts +3 -0
  184. package/src/native/app-icons.android.ts +95 -0
  185. package/src/native/app-icons.ios.ts +74 -0
  186. package/src/native/app-icons.ts +12 -0
  187. package/src/native/combobox-editor.android.ts +11 -0
  188. package/src/native/combobox-editor.ts +6 -0
  189. package/src/native/file-access.ts +71 -0
  190. package/src/native/file-picker.android.ts +191 -0
  191. package/src/native/file-picker.ios.ts +230 -0
  192. package/src/native/file-picker.ts +8 -0
  193. package/src/native/motion-owner.ts +65 -0
  194. package/src/native/motion-region.ts +275 -0
  195. package/src/native/motion-surface.ts +55 -2
  196. package/src/native/press.ts +3 -3
  197. package/src/native/scroll-motion.ts +5 -0
  198. package/src/vue/components/DateCalendar.ts +117 -0
  199. package/src/vue/components/MButton.ts +20 -10
  200. package/src/vue/components/MCard.ts +22 -5
  201. package/src/vue/components/MCombobox.ts +257 -0
  202. package/src/vue/components/MDatePicker.ts +33 -0
  203. package/src/vue/components/MFilePicker.ts +226 -0
  204. package/src/vue/components/MInput.ts +3 -3
  205. package/src/vue/components/MLink.ts +96 -0
  206. package/src/vue/components/MReveal.ts +89 -47
  207. package/src/vue/components/MStack.ts +83 -0
  208. package/src/vue/components/MText.ts +3 -3
  209. package/src/vue/components/layout.ts +15 -7
  210. package/src/vue/components/workflows.ts +38 -0
  211. package/src/vue/index.ts +35 -1
  212. package/src/vue/navigation.ts +15 -0
  213. package/src/vue/use-motion-region.ts +29 -0
  214. package/src/vue/use-motion-surface.ts +21 -14
  215. package/src/vue/use-press.ts +3 -3
  216. package/src/vue/reveal-motion.ts +0 -61
@@ -1,131 +1,167 @@
1
1
  export declare const MReveal: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
2
2
  show: BooleanConstructor;
3
+ align: {
4
+ type: import("nativescript-vue").PropType<"start" | "center" | "end" | "stretch">;
5
+ } & {
6
+ default: "start" | "center" | "end" | "stretch";
7
+ };
3
8
  gap: {
4
9
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
10
+ } & {
5
11
  default: undefined;
6
12
  };
7
- align: {
8
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core/vue").Align>;
9
- default: import("@getcortexlabs/mavis-core/vue").Align;
10
- validator: (value: import("@getcortexlabs/mavis-core/vue").Align) => boolean;
11
- };
12
13
  justify: {
13
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core/vue").Justify>;
14
- default: import("@getcortexlabs/mavis-core/vue").Justify;
15
- validator: (value: import("@getcortexlabs/mavis-core/vue").Justify) => boolean;
14
+ type: import("nativescript-vue").PropType<"start" | "center" | "end" | "between" | "around">;
15
+ } & {
16
+ default: "start" | "center" | "end" | "between" | "around";
17
+ };
18
+ wrap: {
19
+ type: import("nativescript-vue").PropType<boolean>;
20
+ } & {
21
+ default: boolean;
16
22
  };
17
- wrap: BooleanConstructor;
18
23
  padding: {
19
24
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
25
+ } & {
20
26
  default: undefined;
21
27
  };
22
28
  paddingX: {
23
29
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
30
+ } & {
24
31
  default: undefined;
25
32
  };
26
33
  paddingY: {
27
34
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
35
+ } & {
28
36
  default: undefined;
29
37
  };
30
38
  radius: {
31
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Radius | number>;
39
+ type: import("nativescript-vue").PropType<number | import("@getcortexlabs/mavis-core").Radius>;
40
+ } & {
32
41
  default: undefined;
33
42
  };
34
43
  width: {
35
44
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
45
+ } & {
36
46
  default: undefined;
37
47
  };
38
48
  height: {
39
49
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
50
+ } & {
40
51
  default: undefined;
41
52
  };
42
- backgroundColor: StringConstructor;
53
+ backgroundColor: {
54
+ type: import("nativescript-vue").PropType<string>;
55
+ };
43
56
  grow: {
44
- type: NumberConstructor;
57
+ type: import("nativescript-vue").PropType<number>;
58
+ } & {
45
59
  default: number;
46
60
  };
47
61
  shrink: {
48
- type: NumberConstructor;
62
+ type: import("nativescript-vue").PropType<number>;
63
+ } & {
49
64
  default: undefined;
50
65
  };
51
66
  id: {
52
- type: StringConstructor;
67
+ type: import("nativescript-vue").PropType<string>;
68
+ } & {
53
69
  default: undefined;
54
70
  };
55
71
  accessibilityLabel: {
56
- type: StringConstructor;
72
+ type: import("nativescript-vue").PropType<string>;
73
+ } & {
57
74
  default: undefined;
58
75
  };
59
76
  accessibilityHidden: {
60
- type: BooleanConstructor;
77
+ type: import("nativescript-vue").PropType<boolean>;
78
+ } & {
61
79
  default: undefined;
62
80
  };
63
81
  }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
64
82
  [key: string]: any;
65
- }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {}, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
83
+ }> | null, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {}, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
66
84
  show: BooleanConstructor;
85
+ align: {
86
+ type: import("nativescript-vue").PropType<"start" | "center" | "end" | "stretch">;
87
+ } & {
88
+ default: "start" | "center" | "end" | "stretch";
89
+ };
67
90
  gap: {
68
91
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
92
+ } & {
69
93
  default: undefined;
70
94
  };
71
- align: {
72
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core/vue").Align>;
73
- default: import("@getcortexlabs/mavis-core/vue").Align;
74
- validator: (value: import("@getcortexlabs/mavis-core/vue").Align) => boolean;
75
- };
76
95
  justify: {
77
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core/vue").Justify>;
78
- default: import("@getcortexlabs/mavis-core/vue").Justify;
79
- validator: (value: import("@getcortexlabs/mavis-core/vue").Justify) => boolean;
96
+ type: import("nativescript-vue").PropType<"start" | "center" | "end" | "between" | "around">;
97
+ } & {
98
+ default: "start" | "center" | "end" | "between" | "around";
99
+ };
100
+ wrap: {
101
+ type: import("nativescript-vue").PropType<boolean>;
102
+ } & {
103
+ default: boolean;
80
104
  };
81
- wrap: BooleanConstructor;
82
105
  padding: {
83
106
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
107
+ } & {
84
108
  default: undefined;
85
109
  };
86
110
  paddingX: {
87
111
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
112
+ } & {
88
113
  default: undefined;
89
114
  };
90
115
  paddingY: {
91
116
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
117
+ } & {
92
118
  default: undefined;
93
119
  };
94
120
  radius: {
95
- type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Radius | number>;
121
+ type: import("nativescript-vue").PropType<number | import("@getcortexlabs/mavis-core").Radius>;
122
+ } & {
96
123
  default: undefined;
97
124
  };
98
125
  width: {
99
126
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
127
+ } & {
100
128
  default: undefined;
101
129
  };
102
130
  height: {
103
131
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
132
+ } & {
104
133
  default: undefined;
105
134
  };
106
- backgroundColor: StringConstructor;
135
+ backgroundColor: {
136
+ type: import("nativescript-vue").PropType<string>;
137
+ };
107
138
  grow: {
108
- type: NumberConstructor;
139
+ type: import("nativescript-vue").PropType<number>;
140
+ } & {
109
141
  default: number;
110
142
  };
111
143
  shrink: {
112
- type: NumberConstructor;
144
+ type: import("nativescript-vue").PropType<number>;
145
+ } & {
113
146
  default: undefined;
114
147
  };
115
148
  id: {
116
- type: StringConstructor;
149
+ type: import("nativescript-vue").PropType<string>;
150
+ } & {
117
151
  default: undefined;
118
152
  };
119
153
  accessibilityLabel: {
120
- type: StringConstructor;
154
+ type: import("nativescript-vue").PropType<string>;
155
+ } & {
121
156
  default: undefined;
122
157
  };
123
158
  accessibilityHidden: {
124
- type: BooleanConstructor;
159
+ type: import("nativescript-vue").PropType<boolean>;
160
+ } & {
125
161
  default: undefined;
126
162
  };
127
163
  }>> & Readonly<{}>, {
128
- justify: import("@getcortexlabs/mavis-core/vue").Justify;
164
+ justify: "center" | "start" | "end" | "between" | "around";
129
165
  wrap: boolean;
130
166
  padding: import("@getcortexlabs/mavis-core").Spacing;
131
167
  accessibilityHidden: boolean;
@@ -138,8 +174,8 @@ export declare const MReveal: import("nativescript-vue").DefineComponent<import(
138
174
  radius: number | import("@getcortexlabs/mavis-core").Radius;
139
175
  grow: number;
140
176
  shrink: number;
177
+ align: "center" | "start" | "end" | "stretch";
141
178
  gap: import("@getcortexlabs/mavis-core").Spacing;
142
- align: import("@getcortexlabs/mavis-core/vue").Align;
143
179
  show: boolean;
144
180
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
145
181
  //# sourceMappingURL=MReveal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MReveal.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MReveal.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAoDlB,CAAA"}
1
+ {"version":3,"file":"MReveal.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MReveal.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA6FlB,CAAA"}
@@ -1,7 +1,8 @@
1
- import { defineComponent, h, mergeProps, BaseTransition } from 'nativescript-vue';
2
- import { useRevealMotion } from '../reveal-motion.js';
3
- import { revealProps } from '@getcortexlabs/mavis-core/vue';
4
- import { MColumn } from './layout.js';
1
+ import { defineComponent, h, mergeProps } from 'nativescript-vue';
2
+ import { animate, animateSize } from '@rafaelaugusto/jolt';
3
+ import { motionRecipe } from '@getcortexlabs/mavis-core';
4
+ import { revealProps, useMavisTheme, useRevealState } from '@getcortexlabs/mavis-core/vue';
5
+ import { MColumn, MBox } from './layout.js';
5
6
  import { isAndroid } from '@nativescript/core';
6
7
  import { focusedView } from '../accessibility.js';
7
8
  import { notifyAccessibilityLayout } from '../../native/accessibility-layout';
@@ -10,49 +11,93 @@ export const MReveal = defineComponent({
10
11
  inheritAttrs: false,
11
12
  props: revealProps,
12
13
  setup(props, { attrs, slots }) {
13
- const motion = useRevealMotion();
14
+ const { theme } = useMavisTheme();
15
+ const state = useRevealState(() => props.show);
14
16
  let trigger;
15
- let restore = false;
16
- return () => {
17
- const { show, ...layout } = props;
18
- return h(BaseTransition, {
19
- ...motion,
20
- onBeforeEnter: (element) => {
21
- if (element.nativeView)
22
- element.nativeView.accessibilityHidden = Boolean(props.accessibilityHidden);
23
- const page = element.nativeView?.page;
24
- const focused = page && focusedView(page);
25
- trigger = focused ? new WeakRef(focused) : undefined;
26
- restore = false;
17
+ function activeView(root) {
18
+ if (isAndroid
19
+ ? root.android?.hasFocus?.() && !root.android?.getFocusedChild?.()
20
+ : root.ios?.isFirstResponder)
21
+ return root;
22
+ let found;
23
+ root.eachChildView((child) => {
24
+ found = activeView(child);
25
+ return !found;
26
+ });
27
+ return found;
28
+ }
29
+ function currentFocus(view) {
30
+ return view.page && (activeView(view.page) ?? focusedView(view.page));
31
+ }
32
+ function attach(view) {
33
+ const focusability = isAndroid ? view.android.getDescendantFocusability() : undefined;
34
+ return state.attach({
35
+ animate(open, fromClosed) {
36
+ if (fromClosed) {
37
+ view.height = 0;
38
+ view.opacity = 0;
39
+ }
40
+ const recipe = motionRecipe(theme.value, open ? 'enter' : 'exit');
41
+ const size = animateSize(view, { height: open ? 'auto' : 0 }, recipe.transition);
42
+ const opacity = animate(view, { opacity: open ? 1 : 0 }, recipe.transition);
43
+ return {
44
+ finished: size.finished,
45
+ stop() {
46
+ size.stop({ restore: true });
47
+ opacity.stop();
48
+ },
49
+ };
27
50
  },
28
- onAfterEnter: (element) => {
29
- const page = element.nativeView?.page;
30
- notifyAccessibilityLayout(page ? focusedView(page) : undefined);
51
+ interactive(enabled) {
52
+ view.accessibilityHidden = !enabled || Boolean(props.accessibilityHidden);
53
+ view.isUserInteractionEnabled = enabled;
54
+ if (isAndroid)
55
+ view.android.setDescendantFocusability(enabled ? focusability : 393216);
31
56
  },
32
- onBeforeLeave: (element) => {
33
- const view = element.nativeView;
34
- if (!view?.page)
35
- return;
36
- let focused = focusedView(view.page);
37
- while (focused && focused !== view)
38
- focused = focused.parent;
39
- restore = focused === view;
40
- view.accessibilityHidden = true;
57
+ captureFocus() {
58
+ const active = currentFocus(view);
59
+ let ancestor = active;
60
+ while (ancestor && ancestor !== view)
61
+ ancestor = ancestor.parent;
62
+ if (active && !ancestor)
63
+ trigger = new WeakRef(active);
41
64
  },
42
- onAfterLeave: () => {
65
+ restoreFocus() {
66
+ const focused = currentFocus(view);
67
+ let active = focused;
68
+ while (active && active !== view)
69
+ active = active.parent;
43
70
  const target = trigger?.deref();
44
- if (restore && target?.isLoaded) {
71
+ if (active === view && target?.isLoaded) {
72
+ ;
73
+ focused?.dismissSoftInput?.();
74
+ target.focus();
45
75
  if (isAndroid)
46
76
  target.android.performAccessibilityAction(64, null);
47
77
  else
48
78
  notifyAccessibilityLayout(target);
49
79
  }
50
- trigger = undefined;
51
- restore = false;
52
80
  },
53
- }, {
54
- default: () => show ? h(MColumn, mergeProps(layout, attrs, { key: 'content' }), slots) : null,
81
+ release() {
82
+ view.height = 'auto';
83
+ view.opacity = 1;
84
+ if (isAndroid && view.android)
85
+ view.android.setDescendantFocusability(focusability);
86
+ },
55
87
  });
88
+ }
89
+ return () => {
90
+ const { show, grow, shrink, width, id, ...content } = props;
91
+ return state.present.value
92
+ ? h(MBox, mergeProps({ grow, shrink, width, id }, attrs), {
93
+ default: () => h(MBox, {
94
+ clipToBounds: true,
95
+ accessibilityHidden: !show || props.accessibilityHidden,
96
+ onLoaded: (event) => attach(event.object),
97
+ onUnloaded: state.detach,
98
+ }, { default: () => h(MColumn, content, slots) }),
99
+ })
100
+ : null;
56
101
  };
57
102
  },
58
103
  });
@@ -1 +1 @@
1
- {"version":3,"file":"MReveal.js","sourceRoot":"","sources":["../../../src/vue/components/MReveal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,SAAS,EAAa,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAE7E,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;IACrC,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,WAAW;IAClB,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3B,MAAM,MAAM,GAAG,eAAe,EAAE,CAAA;QAChC,IAAI,OAAkC,CAAA;QACtC,IAAI,OAAO,GAAG,KAAK,CAAA;QACnB,OAAO,GAAG,EAAE;YACV,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAA;YACjC,O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EAAE,CAAC,IAAI,IAAI,KAAK,CAAC,mBAAmB;wBACvD,QAAQ,EAAE,CAAC,KAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAc,CAAC;wBAC5D,UAAU,EAAE,KAAK,CAAC,MAAM;qBACzB,EACD,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,CAC9C;iBACJ,CAAC;gBACJ,CAAC,CAAC,IAAI,CAAA;QACV,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -5,15 +5,18 @@ export declare const MScreen: import("nativescript-vue").DefineComponent<import(
5
5
  default: boolean;
6
6
  };
7
7
  id: {
8
- type: StringConstructor;
8
+ type: import("nativescript-vue").PropType<string>;
9
+ } & {
9
10
  default: undefined;
10
11
  };
11
12
  accessibilityLabel: {
12
- type: StringConstructor;
13
+ type: import("nativescript-vue").PropType<string>;
14
+ } & {
13
15
  default: undefined;
14
16
  };
15
17
  accessibilityHidden: {
16
- type: BooleanConstructor;
18
+ type: import("nativescript-vue").PropType<boolean>;
19
+ } & {
17
20
  default: undefined;
18
21
  };
19
22
  motionScroll: {
@@ -29,15 +32,18 @@ export declare const MScreen: import("nativescript-vue").DefineComponent<import(
29
32
  default: boolean;
30
33
  };
31
34
  id: {
32
- type: StringConstructor;
35
+ type: import("nativescript-vue").PropType<string>;
36
+ } & {
33
37
  default: undefined;
34
38
  };
35
39
  accessibilityLabel: {
36
- type: StringConstructor;
40
+ type: import("nativescript-vue").PropType<string>;
41
+ } & {
37
42
  default: undefined;
38
43
  };
39
44
  accessibilityHidden: {
40
- type: BooleanConstructor;
45
+ type: import("nativescript-vue").PropType<boolean>;
46
+ } & {
41
47
  default: undefined;
42
48
  };
43
49
  motionScroll: {
@@ -1 +1 @@
1
- {"version":3,"file":"MScreen.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MScreen.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAqGlB,CAAA"}
1
+ {"version":3,"file":"MScreen.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MScreen.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAqGlB,CAAA"}
@@ -2,6 +2,7 @@ import { type SegmentedOption } from '@getcortexlabs/mavis-core';
2
2
  export declare const MSegmentedControl: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
3
3
  width: {
4
4
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
5
+ } & {
5
6
  default: undefined;
6
7
  };
7
8
  options: {
@@ -18,19 +19,23 @@ export declare const MSegmentedControl: import("nativescript-vue").DefineCompone
18
19
  };
19
20
  disabled: BooleanConstructor;
20
21
  grow: {
21
- type: NumberConstructor;
22
+ type: import("nativescript-vue").PropType<number>;
23
+ } & {
22
24
  default: number;
23
25
  };
24
26
  shrink: {
25
- type: NumberConstructor;
27
+ type: import("nativescript-vue").PropType<number>;
28
+ } & {
26
29
  default: undefined;
27
30
  };
28
31
  id: {
29
- type: StringConstructor;
32
+ type: import("nativescript-vue").PropType<string>;
33
+ } & {
30
34
  default: undefined;
31
35
  };
32
36
  accessibilityHidden: {
33
- type: BooleanConstructor;
37
+ type: import("nativescript-vue").PropType<boolean>;
38
+ } & {
34
39
  default: undefined;
35
40
  };
36
41
  }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
@@ -40,6 +45,7 @@ export declare const MSegmentedControl: import("nativescript-vue").DefineCompone
40
45
  }, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
41
46
  width: {
42
47
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
48
+ } & {
43
49
  default: undefined;
44
50
  };
45
51
  options: {
@@ -56,19 +62,23 @@ export declare const MSegmentedControl: import("nativescript-vue").DefineCompone
56
62
  };
57
63
  disabled: BooleanConstructor;
58
64
  grow: {
59
- type: NumberConstructor;
65
+ type: import("nativescript-vue").PropType<number>;
66
+ } & {
60
67
  default: number;
61
68
  };
62
69
  shrink: {
63
- type: NumberConstructor;
70
+ type: import("nativescript-vue").PropType<number>;
71
+ } & {
64
72
  default: undefined;
65
73
  };
66
74
  id: {
67
- type: StringConstructor;
75
+ type: import("nativescript-vue").PropType<string>;
76
+ } & {
68
77
  default: undefined;
69
78
  };
70
79
  accessibilityHidden: {
71
- type: BooleanConstructor;
80
+ type: import("nativescript-vue").PropType<boolean>;
81
+ } & {
72
82
  default: undefined;
73
83
  };
74
84
  }>> & Readonly<{
@@ -77,9 +87,9 @@ export declare const MSegmentedControl: import("nativescript-vue").DefineCompone
77
87
  accessibilityHidden: boolean;
78
88
  width: import("@getcortexlabs/mavis-core").Dimension;
79
89
  id: string;
90
+ disabled: boolean;
80
91
  grow: number;
81
92
  shrink: number;
82
- disabled: boolean;
83
93
  modelValue: import("@getcortexlabs/mavis-core").ChoiceValue | null;
84
94
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
85
95
  //# sourceMappingURL=MSegmentedControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MSegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSegmentedControl.ts"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAA;AAelC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAsL5B,CAAA"}
1
+ {"version":3,"file":"MSegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSegmentedControl.ts"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAA;AAelC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAsL5B,CAAA"}
@@ -18,6 +18,7 @@ export declare const MSelect: import("nativescript-vue").DefineComponent<import(
18
18
  };
19
19
  width: {
20
20
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
21
+ } & {
21
22
  default: undefined;
22
23
  };
23
24
  modelValue: {
@@ -38,19 +39,23 @@ export declare const MSelect: import("nativescript-vue").DefineComponent<import(
38
39
  };
39
40
  disabled: BooleanConstructor;
40
41
  grow: {
41
- type: NumberConstructor;
42
+ type: import("nativescript-vue").PropType<number>;
43
+ } & {
42
44
  default: number;
43
45
  };
44
46
  shrink: {
45
- type: NumberConstructor;
47
+ type: import("nativescript-vue").PropType<number>;
48
+ } & {
46
49
  default: undefined;
47
50
  };
48
51
  id: {
49
- type: StringConstructor;
52
+ type: import("nativescript-vue").PropType<string>;
53
+ } & {
50
54
  default: undefined;
51
55
  };
52
56
  accessibilityHidden: {
53
- type: BooleanConstructor;
57
+ type: import("nativescript-vue").PropType<boolean>;
58
+ } & {
54
59
  default: undefined;
55
60
  };
56
61
  }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
@@ -76,6 +81,7 @@ export declare const MSelect: import("nativescript-vue").DefineComponent<import(
76
81
  };
77
82
  width: {
78
83
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
84
+ } & {
79
85
  default: undefined;
80
86
  };
81
87
  modelValue: {
@@ -96,19 +102,23 @@ export declare const MSelect: import("nativescript-vue").DefineComponent<import(
96
102
  };
97
103
  disabled: BooleanConstructor;
98
104
  grow: {
99
- type: NumberConstructor;
105
+ type: import("nativescript-vue").PropType<number>;
106
+ } & {
100
107
  default: number;
101
108
  };
102
109
  shrink: {
103
- type: NumberConstructor;
110
+ type: import("nativescript-vue").PropType<number>;
111
+ } & {
104
112
  default: undefined;
105
113
  };
106
114
  id: {
107
- type: StringConstructor;
115
+ type: import("nativescript-vue").PropType<string>;
116
+ } & {
108
117
  default: undefined;
109
118
  };
110
119
  accessibilityHidden: {
111
- type: BooleanConstructor;
120
+ type: import("nativescript-vue").PropType<boolean>;
121
+ } & {
112
122
  default: undefined;
113
123
  };
114
124
  }>> & Readonly<{
@@ -117,14 +127,14 @@ export declare const MSelect: import("nativescript-vue").DefineComponent<import(
117
127
  accessibilityHidden: boolean;
118
128
  width: import("@getcortexlabs/mavis-core").Dimension;
119
129
  id: string;
130
+ disabled: boolean;
120
131
  grow: number;
121
132
  shrink: number;
122
133
  error: string;
123
- disabled: boolean;
124
134
  modelValue: import("@getcortexlabs/mavis-core").ChoiceValue | null;
125
- closeLabel: string;
126
- helperText: string;
127
135
  placeholder: string;
136
+ helperText: string;
137
+ closeLabel: string;
128
138
  emptyText: string;
129
139
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
130
140
  //# sourceMappingURL=MSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MSelect.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSelect.ts"],"names":[],"mappings":"AAUA,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAepG,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA+JlB,CAAA"}
1
+ {"version":3,"file":"MSelect.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSelect.ts"],"names":[],"mappings":"AAUA,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAepG,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA+JlB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export declare const MSeparator: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
2
2
  id: {
3
- type: StringConstructor;
3
+ type: import("nativescript-vue").PropType<string>;
4
+ } & {
4
5
  default: undefined;
5
6
  };
6
7
  orientation: {
@@ -24,7 +25,8 @@ export declare const MSeparator: import("nativescript-vue").DefineComponent<impo
24
25
  [key: string]: any;
25
26
  }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {}, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
26
27
  id: {
27
- type: StringConstructor;
28
+ type: import("nativescript-vue").PropType<string>;
29
+ } & {
28
30
  default: undefined;
29
31
  };
30
32
  orientation: {
@@ -1 +1 @@
1
- {"version":3,"file":"MSeparator.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSeparator.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAkCrB,CAAA"}
1
+ {"version":3,"file":"MSeparator.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MSeparator.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAkCrB,CAAA"}