@getcortexlabs/mavis 0.1.0-alpha.5 → 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 (106) hide show
  1. package/README.md +5 -7
  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/native/app-icons.android.d.ts +4 -0
  7. package/dist/native/app-icons.android.d.ts.map +1 -0
  8. package/dist/native/app-icons.android.js +67 -0
  9. package/dist/native/app-icons.android.js.map +1 -0
  10. package/dist/native/app-icons.d.ts +4 -0
  11. package/dist/native/app-icons.d.ts.map +1 -0
  12. package/dist/native/app-icons.ios.d.ts +4 -0
  13. package/dist/native/app-icons.ios.d.ts.map +1 -0
  14. package/dist/native/app-icons.ios.js +45 -0
  15. package/dist/native/app-icons.ios.js.map +1 -0
  16. package/dist/native/app-icons.js +9 -0
  17. package/dist/native/app-icons.js.map +1 -0
  18. package/dist/native/motion-owner.d.ts.map +1 -1
  19. package/dist/native/motion-owner.js +4 -0
  20. package/dist/native/motion-owner.js.map +1 -1
  21. package/dist/native/motion-region.d.ts.map +1 -1
  22. package/dist/native/motion-region.js +39 -1
  23. package/dist/native/motion-region.js.map +1 -1
  24. package/dist/native/motion-surface.d.ts +1 -1
  25. package/dist/native/motion-surface.d.ts.map +1 -1
  26. package/dist/native/motion-surface.js +25 -2
  27. package/dist/native/motion-surface.js.map +1 -1
  28. package/dist/native/press.d.ts +3 -2
  29. package/dist/native/press.d.ts.map +1 -1
  30. package/dist/native/press.js.map +1 -1
  31. package/dist/vue/components/MAlert.d.ts +1 -1
  32. package/dist/vue/components/MBadge.d.ts +1 -1
  33. package/dist/vue/components/MButton.d.ts +50 -4
  34. package/dist/vue/components/MButton.d.ts.map +1 -1
  35. package/dist/vue/components/MButton.js +20 -13
  36. package/dist/vue/components/MButton.js.map +1 -1
  37. package/dist/vue/components/MCard.d.ts +49 -3
  38. package/dist/vue/components/MCard.d.ts.map +1 -1
  39. package/dist/vue/components/MCard.js +12 -5
  40. package/dist/vue/components/MCard.js.map +1 -1
  41. package/dist/vue/components/MChip.d.ts +2 -2
  42. package/dist/vue/components/MDatePicker.d.ts +56 -8
  43. package/dist/vue/components/MDatePicker.d.ts.map +1 -1
  44. package/dist/vue/components/MEmptyState.d.ts +2 -2
  45. package/dist/vue/components/MIcon.d.ts +1 -1
  46. package/dist/vue/components/MInput.d.ts +3 -3
  47. package/dist/vue/components/MInput.js +3 -3
  48. package/dist/vue/components/MInput.js.map +1 -1
  49. package/dist/vue/components/MLink.d.ts +120 -0
  50. package/dist/vue/components/MLink.d.ts.map +1 -0
  51. package/dist/vue/components/MLink.js +81 -0
  52. package/dist/vue/components/MLink.js.map +1 -0
  53. package/dist/vue/components/MListItem.d.ts +2 -0
  54. package/dist/vue/components/MListItem.d.ts.map +1 -1
  55. package/dist/vue/components/MProgress.d.ts +1 -1
  56. package/dist/vue/components/MReveal.d.ts +5 -5
  57. package/dist/vue/components/MReveal.d.ts.map +1 -1
  58. package/dist/vue/components/MReveal.js +80 -35
  59. package/dist/vue/components/MReveal.js.map +1 -1
  60. package/dist/vue/components/MSheet.d.ts +1 -1
  61. package/dist/vue/components/MSkeleton.d.ts +1 -1
  62. package/dist/vue/components/MStack.d.ts +199 -0
  63. package/dist/vue/components/MStack.d.ts.map +1 -0
  64. package/dist/vue/components/MStack.js +62 -0
  65. package/dist/vue/components/MStack.js.map +1 -0
  66. package/dist/vue/components/MText.d.ts +4 -4
  67. package/dist/vue/components/MText.js +3 -3
  68. package/dist/vue/components/MText.js.map +1 -1
  69. package/dist/vue/components/layout.d.ts +11 -11
  70. package/dist/vue/components/layout.d.ts.map +1 -1
  71. package/dist/vue/components/layout.js +5 -5
  72. package/dist/vue/components/layout.js.map +1 -1
  73. package/dist/vue/index.d.ts +3 -1
  74. package/dist/vue/index.d.ts.map +1 -1
  75. package/dist/vue/index.js +5 -1
  76. package/dist/vue/index.js.map +1 -1
  77. package/dist/vue/navigation.d.ts +4 -0
  78. package/dist/vue/navigation.d.ts.map +1 -0
  79. package/dist/vue/navigation.js +16 -0
  80. package/dist/vue/navigation.js.map +1 -0
  81. package/dist/vue/reveal-motion.d.ts.map +1 -1
  82. package/dist/vue/reveal-motion.js +6 -3
  83. package/dist/vue/reveal-motion.js.map +1 -1
  84. package/dist/vue/use-press.js +3 -3
  85. package/dist/vue/use-press.js.map +1 -1
  86. package/package.json +7 -3
  87. package/src/app-icons.ts +21 -0
  88. package/src/native/app-icons.android.ts +95 -0
  89. package/src/native/app-icons.ios.ts +74 -0
  90. package/src/native/app-icons.ts +12 -0
  91. package/src/native/motion-owner.ts +6 -0
  92. package/src/native/motion-region.ts +63 -1
  93. package/src/native/motion-surface.ts +29 -1
  94. package/src/native/press.ts +3 -3
  95. package/src/vue/components/MButton.ts +20 -10
  96. package/src/vue/components/MCard.ts +22 -5
  97. package/src/vue/components/MInput.ts +3 -3
  98. package/src/vue/components/MLink.ts +96 -0
  99. package/src/vue/components/MReveal.ts +89 -47
  100. package/src/vue/components/MStack.ts +83 -0
  101. package/src/vue/components/MText.ts +3 -3
  102. package/src/vue/components/layout.ts +10 -5
  103. package/src/vue/index.ts +6 -0
  104. package/src/vue/navigation.ts +15 -0
  105. package/src/vue/use-press.ts +3 -3
  106. package/src/vue/reveal-motion.ts +0 -61
@@ -0,0 +1,120 @@
1
+ export declare const MLink: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
2
+ href: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ text: {
7
+ type: StringConstructor;
8
+ default: undefined;
9
+ };
10
+ navigate: {
11
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").LinkNavigate>;
12
+ default: undefined;
13
+ };
14
+ target: {
15
+ type: import("nativescript-vue").PropType<"_self" | "_blank">;
16
+ default: "_self" | "_blank";
17
+ validator: (value: "_self" | "_blank") => boolean;
18
+ };
19
+ rel: {
20
+ type: StringConstructor;
21
+ default: undefined;
22
+ };
23
+ disabled: BooleanConstructor;
24
+ inline: BooleanConstructor;
25
+ grow: {
26
+ type: import("nativescript-vue").PropType<number>;
27
+ } & {
28
+ default: number;
29
+ };
30
+ shrink: {
31
+ type: import("nativescript-vue").PropType<number>;
32
+ } & {
33
+ default: undefined;
34
+ };
35
+ id: {
36
+ type: import("nativescript-vue").PropType<string>;
37
+ } & {
38
+ default: undefined;
39
+ };
40
+ accessibilityLabel: {
41
+ type: import("nativescript-vue").PropType<string>;
42
+ } & {
43
+ default: undefined;
44
+ };
45
+ accessibilityHidden: {
46
+ type: import("nativescript-vue").PropType<boolean>;
47
+ } & {
48
+ default: undefined;
49
+ };
50
+ }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {
53
+ click: () => boolean;
54
+ error: (_error: unknown) => boolean;
55
+ }, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
56
+ href: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ text: {
61
+ type: StringConstructor;
62
+ default: undefined;
63
+ };
64
+ navigate: {
65
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").LinkNavigate>;
66
+ default: undefined;
67
+ };
68
+ target: {
69
+ type: import("nativescript-vue").PropType<"_self" | "_blank">;
70
+ default: "_self" | "_blank";
71
+ validator: (value: "_self" | "_blank") => boolean;
72
+ };
73
+ rel: {
74
+ type: StringConstructor;
75
+ default: undefined;
76
+ };
77
+ disabled: BooleanConstructor;
78
+ inline: BooleanConstructor;
79
+ grow: {
80
+ type: import("nativescript-vue").PropType<number>;
81
+ } & {
82
+ default: number;
83
+ };
84
+ shrink: {
85
+ type: import("nativescript-vue").PropType<number>;
86
+ } & {
87
+ default: undefined;
88
+ };
89
+ id: {
90
+ type: import("nativescript-vue").PropType<string>;
91
+ } & {
92
+ default: undefined;
93
+ };
94
+ accessibilityLabel: {
95
+ type: import("nativescript-vue").PropType<string>;
96
+ } & {
97
+ default: undefined;
98
+ };
99
+ accessibilityHidden: {
100
+ type: import("nativescript-vue").PropType<boolean>;
101
+ } & {
102
+ default: undefined;
103
+ };
104
+ }>> & Readonly<{
105
+ onClick?: (() => any) | undefined;
106
+ onError?: ((_error: unknown) => any) | undefined;
107
+ }>, {
108
+ text: string;
109
+ accessibilityHidden: boolean;
110
+ accessibilityLabel: string;
111
+ id: string;
112
+ disabled: boolean;
113
+ grow: number;
114
+ shrink: number;
115
+ navigate: import("@getcortexlabs/mavis-core").LinkNavigate;
116
+ target: "_self" | "_blank";
117
+ rel: string;
118
+ inline: boolean;
119
+ }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
120
+ //# sourceMappingURL=MLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MLink.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MLink.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAsFhB,CAAA"}
@@ -0,0 +1,81 @@
1
+ import { defineComponent, h, mergeProps, onBeforeUnmount, ref } from 'nativescript-vue';
2
+ import { Utils } from '@nativescript/core';
3
+ import { linkDestination } from '@getcortexlabs/mavis-core';
4
+ import { linkProps, linkEmits, textContent, useMavisTheme } from '@getcortexlabs/mavis-core/vue';
5
+ import { MRow } from './layout.js';
6
+ import { MText } from './MText.js';
7
+ import { ActionChildren, useNativeViewAttrs } from '../accessibility.js';
8
+ import { observeComposedButton } from '../../native/composed-button';
9
+ export const MLink = defineComponent({
10
+ name: 'MLink',
11
+ inheritAttrs: false,
12
+ props: linkProps,
13
+ emits: linkEmits,
14
+ setup(props, { attrs, slots, emit }) {
15
+ const { theme } = useMavisTheme();
16
+ const nativeAttrs = useNativeViewAttrs(props);
17
+ const focused = ref(false);
18
+ let release;
19
+ const clear = () => {
20
+ release?.();
21
+ release = undefined;
22
+ focused.value = false;
23
+ };
24
+ onBeforeUnmount(clear);
25
+ const activate = async () => {
26
+ if (props.disabled)
27
+ return;
28
+ const href = linkDestination(props.href);
29
+ emit('click');
30
+ try {
31
+ if (props.navigate)
32
+ await props.navigate(href);
33
+ else if (!(await Utils.openUrl(href)))
34
+ throw new Error(`The system could not open ${href}.`);
35
+ }
36
+ catch (error) {
37
+ emit('error', error);
38
+ }
39
+ };
40
+ return () => {
41
+ const href = linkDestination(props.href);
42
+ if (!props.navigate && !/^[a-z][a-z\d+.-]*:/i.test(href))
43
+ throw new TypeError('Native MLink needs a navigate handler for in-app destinations.');
44
+ const text = props.text ?? textContent(slots.default?.());
45
+ const label = props.accessibilityLabel ?? text;
46
+ if (!label.trim())
47
+ throw new TypeError('MLink requires a name.');
48
+ return h(MRow, mergeProps({
49
+ align: 'center',
50
+ justify: 'center',
51
+ grow: props.grow,
52
+ shrink: props.shrink,
53
+ style: {
54
+ minHeight: props.inline ? 0 : 44,
55
+ opacity: props.disabled ? 0.45 : 1,
56
+ borderWidth: focused.value ? 1 : 0,
57
+ borderColor: theme.value.colors.primary,
58
+ },
59
+ }, nativeAttrs(), attrs, {
60
+ accessible: true,
61
+ accessibilityRole: 'link',
62
+ accessibilityLabel: label,
63
+ accessibilityState: props.disabled ? 'disabled' : '',
64
+ isEnabled: !props.disabled,
65
+ onTap: activate,
66
+ onLoaded(event) {
67
+ clear();
68
+ release = observeComposedButton(event.object, (value) => {
69
+ focused.value = value;
70
+ }, activate, () => { });
71
+ },
72
+ onUnloaded: clear,
73
+ }), {
74
+ default: () => h(ActionChildren, { hidden: true }, {
75
+ default: () => h(MText, { text, tone: 'primary', style: { textDecoration: 'underline' } }),
76
+ }),
77
+ });
78
+ };
79
+ },
80
+ });
81
+ //# sourceMappingURL=MLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MLink.js","sourceRoot":"","sources":["../../../src/vue/components/MLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAAE,KAAK,EAA6B,MAAM,oBAAoB,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAChG,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEpE,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;QACjC,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,CAAA;QACjC,MAAM,WAAW,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAA;QAC7C,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;QAC1B,IAAI,OAAiC,CAAA;QACrC,MAAM,KAAK,GAAG,GAAG,EAAE;YACjB,OAAO,EAAE,EAAE,CAAA;YACX,OAAO,GAAG,SAAS,CAAA;YACnB,OAAO,CAAC,KAAK,GAAG,KAAK,CAAA;QACvB,CAAC,CAAA;QAC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AC;CACF,CAAC,CAAA"}
@@ -44,6 +44,7 @@ export declare const MListItem: import("nativescript-vue").DefineComponent<impor
44
44
  [key: string]: any;
45
45
  }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {
46
46
  click: () => boolean;
47
+ error: (_error: unknown) => boolean;
47
48
  }, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
48
49
  width: {
49
50
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
@@ -87,6 +88,7 @@ export declare const MListItem: import("nativescript-vue").DefineComponent<impor
87
88
  };
88
89
  }>> & Readonly<{
89
90
  onClick?: (() => any) | undefined;
91
+ onError?: ((_error: unknown) => any) | undefined;
90
92
  }>, {
91
93
  accessibilityHidden: boolean;
92
94
  accessibilityLabel: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MListItem.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAQ7F,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKmB,MAAM,KAAK,EAAE;eAAa,MAAM,KAAK,EAAE;sFAoD9E,CAAA"}
1
+ {"version":3,"file":"MListItem.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAQ7F,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKmB,MAAM,KAAK,EAAE;eAAa,MAAM,KAAK,EAAE;sFAoD9E,CAAA"}
@@ -111,10 +111,10 @@ export declare const MProgress: import("nativescript-vue").DefineComponent<impor
111
111
  width: import("@getcortexlabs/mavis-core").Dimension;
112
112
  id: string;
113
113
  value: number;
114
- tone: "primary" | "accent" | "warning" | "success" | "danger";
115
114
  grow: number;
116
115
  shrink: number;
117
116
  size: "sm" | "md" | "lg";
117
+ tone: "primary" | "accent" | "warning" | "success" | "danger";
118
118
  max: number;
119
119
  indeterminate: boolean;
120
120
  indeterminateLabel: string;
@@ -80,7 +80,7 @@ export declare const MReveal: import("nativescript-vue").DefineComponent<import(
80
80
  };
81
81
  }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
82
82
  [key: string]: any;
83
- }>, {}, {}, {}, 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<{
84
84
  show: BooleanConstructor;
85
85
  align: {
86
86
  type: import("nativescript-vue").PropType<"start" | "center" | "end" | "stretch">;
@@ -169,12 +169,12 @@ export declare const MReveal: import("nativescript-vue").DefineComponent<import(
169
169
  width: import("@getcortexlabs/mavis-core").Dimension;
170
170
  height: import("@getcortexlabs/mavis-core").Dimension;
171
171
  id: string;
172
- align: "center" | "start" | "end" | "stretch";
173
- grow: number;
174
- shrink: number;
175
- radius: number | import("@getcortexlabs/mavis-core").Radius;
176
172
  paddingX: import("@getcortexlabs/mavis-core").Spacing;
177
173
  paddingY: import("@getcortexlabs/mavis-core").Spacing;
174
+ radius: number | import("@getcortexlabs/mavis-core").Radius;
175
+ grow: number;
176
+ shrink: number;
177
+ align: "center" | "start" | "end" | "stretch";
178
178
  gap: import("@getcortexlabs/mavis-core").Spacing;
179
179
  show: boolean;
180
180
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
@@ -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":"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94
  align: "center" | "start" | "end" | "stretch";
95
- fullscreen: boolean;
96
95
  gap: import("@getcortexlabs/mavis-core").Spacing;
96
+ fullscreen: boolean;
97
97
  open: boolean;
98
98
  dismissible: boolean;
99
99
  closeLabel: string;
@@ -70,9 +70,9 @@ export declare const MSkeleton: import("nativescript-vue").DefineComponent<impor
70
70
  width: import("@getcortexlabs/mavis-core").Dimension;
71
71
  height: import("@getcortexlabs/mavis-core").Dimension;
72
72
  id: string;
73
+ radius: number | import("@getcortexlabs/mavis-core").Radius;
73
74
  grow: number;
74
75
  shrink: number;
75
- radius: number | import("@getcortexlabs/mavis-core").Radius;
76
76
  animated: boolean;
77
77
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
78
78
  //# sourceMappingURL=MSkeleton.d.ts.map