@getcortexlabs/mavis 0.1.0-rc.13 → 0.1.0-rc.15
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/README.md +7 -5
- package/dist/components/bindings.d.ts +14 -0
- package/dist/components/bindings.d.ts.map +1 -0
- package/dist/components/bindings.js +21 -0
- package/dist/components/bindings.js.map +1 -0
- package/dist/components/contracts.d.ts +28 -0
- package/dist/components/contracts.d.ts.map +1 -0
- package/dist/components/contracts.js +27 -0
- package/dist/components/contracts.js.map +1 -0
- package/dist/components/controller.d.ts +56 -0
- package/dist/components/controller.d.ts.map +1 -0
- package/dist/components/controller.js +508 -0
- package/dist/components/controller.js.map +1 -0
- package/dist/components/index.d.ts +53 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +95 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/style.d.ts +52 -0
- package/dist/components/style.d.ts.map +1 -0
- package/dist/components/style.js +68 -0
- package/dist/components/style.js.map +1 -0
- package/dist/components/theme.d.ts +12 -0
- package/dist/components/theme.d.ts.map +1 -0
- package/dist/components/theme.js +29 -0
- package/dist/components/theme.js.map +1 -0
- package/dist/native/box.ios.d.ts +1 -0
- package/dist/native/box.ios.d.ts.map +1 -1
- package/dist/native/box.ios.js +21 -1
- package/dist/native/box.ios.js.map +1 -1
- package/dist/native/flex-layout.ios.d.ts.map +1 -1
- package/dist/native/flex-layout.ios.js +4 -0
- package/dist/native/flex-layout.ios.js.map +1 -1
- package/dist/native/motion-binding.d.ts +11 -0
- package/dist/native/motion-binding.d.ts.map +1 -0
- package/dist/native/motion-binding.js +132 -0
- package/dist/native/motion-binding.js.map +1 -0
- package/dist/native/motion-region.d.ts.map +1 -1
- package/dist/native/motion-region.js +1 -0
- package/dist/native/motion-region.js.map +1 -1
- package/dist/native/motion-surface.d.ts +1 -1
- package/dist/native/motion-surface.d.ts.map +1 -1
- package/dist/native/motion-surface.js +40 -8
- package/dist/native/motion-surface.js.map +1 -1
- package/dist/native/navigation.d.ts +4 -0
- package/dist/native/navigation.d.ts.map +1 -0
- package/dist/native/navigation.js +16 -0
- package/dist/native/navigation.js.map +1 -0
- package/dist/native/pointer-availability.d.ts +7 -0
- package/dist/native/pointer-availability.d.ts.map +1 -0
- package/dist/native/pointer-availability.js +43 -0
- package/dist/native/pointer-availability.js.map +1 -0
- package/dist/native/scroll-motion.d.ts +1 -1
- package/dist/native/scroll-motion.d.ts.map +1 -1
- package/dist/native/scroll-motion.js +55 -16
- package/dist/native/scroll-motion.js.map +1 -1
- package/dist/native/section-scroll.d.ts +1 -1
- package/dist/native/section-scroll.d.ts.map +1 -1
- package/dist/native/section-scroll.js +19 -6
- package/dist/native/section-scroll.js.map +1 -1
- package/dist/vue/card-input.d.ts +4 -0
- package/dist/vue/card-input.d.ts.map +1 -0
- package/dist/vue/card-input.js +37 -0
- package/dist/vue/card-input.js.map +1 -0
- package/dist/vue/components/ChoiceControl.d.ts +3 -3
- package/dist/vue/components/LoadingDecoration.d.ts +5 -5
- package/dist/vue/components/MAccordion.d.ts +3 -3
- package/dist/vue/components/MAlert.d.ts +4 -4
- package/dist/vue/components/MAvatar.d.ts +4 -4
- package/dist/vue/components/MBadge.d.ts +3 -3
- package/dist/vue/components/MButton.d.ts +20 -20
- package/dist/vue/components/MCard.d.ts +11 -11
- package/dist/vue/components/MCard.d.ts.map +1 -1
- package/dist/vue/components/MCard.js +3 -2
- package/dist/vue/components/MCard.js.map +1 -1
- package/dist/vue/components/MCheckbox.d.ts +3 -3
- package/dist/vue/components/MChip.d.ts +4 -4
- package/dist/vue/components/MCombobox.d.ts +5 -5
- package/dist/vue/components/MDatePicker.d.ts +96 -96
- package/dist/vue/components/MDatePicker.d.ts.map +1 -1
- package/dist/vue/components/MDialog.d.ts +3 -3
- package/dist/vue/components/MEmptyState.d.ts +3 -3
- package/dist/vue/components/MGrid.d.ts +7 -7
- package/dist/vue/components/MGrid.d.ts.map +1 -1
- package/dist/vue/components/MGrid.js +5 -1
- package/dist/vue/components/MGrid.js.map +1 -1
- package/dist/vue/components/MIcon.d.ts +2 -2
- package/dist/vue/components/MImage.d.ts +7 -7
- package/dist/vue/components/MImageCompare.d.ts +1 -1
- package/dist/vue/components/MInput.d.ts +22 -22
- package/dist/vue/components/MLink.d.ts +5 -5
- package/dist/vue/components/MListItem.d.ts +5 -5
- package/dist/vue/components/MPinInput.d.ts +1 -1
- package/dist/vue/components/MPopover.d.ts +3 -3
- package/dist/vue/components/MProgress.d.ts +5 -5
- package/dist/vue/components/MRadioGroup.d.ts +3 -3
- package/dist/vue/components/MRangeSlider.d.ts +1 -1
- package/dist/vue/components/MResizablePanels.d.ts +3 -3
- package/dist/vue/components/MReveal.d.ts +17 -17
- package/dist/vue/components/MScreen.d.ts +3 -3
- package/dist/vue/components/MScreen.d.ts.map +1 -1
- package/dist/vue/components/MScreen.js +11 -1
- package/dist/vue/components/MScreen.js.map +1 -1
- package/dist/vue/components/MSegmentedControl.d.ts +3 -3
- package/dist/vue/components/MSelect.d.ts +4 -4
- package/dist/vue/components/MSheet.d.ts +7 -7
- package/dist/vue/components/MSkeleton.d.ts +3 -3
- package/dist/vue/components/MSlider.d.ts +1 -1
- package/dist/vue/components/MStack.d.ts +19 -19
- package/dist/vue/components/MStack.d.ts.map +1 -1
- package/dist/vue/components/MStack.js +12 -2
- package/dist/vue/components/MStack.js.map +1 -1
- package/dist/vue/components/MSwitch.d.ts +3 -3
- package/dist/vue/components/MTabs.d.ts +3 -3
- package/dist/vue/components/MText.d.ts +8 -8
- package/dist/vue/components/MText.d.ts.map +1 -1
- package/dist/vue/components/MText.js +4 -1
- package/dist/vue/components/MText.js.map +1 -1
- package/dist/vue/components/MTimePicker.d.ts +40 -40
- package/dist/vue/components/MTimePicker.d.ts.map +1 -1
- package/dist/vue/components/MTooltip.d.ts +2 -2
- package/dist/vue/components/MVirtualList.d.ts.map +1 -1
- package/dist/vue/components/MVirtualList.js +88 -67
- package/dist/vue/components/MVirtualList.js.map +1 -1
- package/dist/vue/components/advanced.d.ts +34 -34
- package/dist/vue/components/configurator.d.ts +33 -33
- package/dist/vue/components/creative.d.ts +20 -20
- package/dist/vue/components/dashboard.d.ts +12 -12
- package/dist/vue/components/dashboard.d.ts.map +1 -1
- package/dist/vue/components/dashboard.js +185 -69
- package/dist/vue/components/dashboard.js.map +1 -1
- package/dist/vue/components/discovery.d.ts +10 -10
- package/dist/vue/components/interactive.d.ts +6 -6
- package/dist/vue/components/layout.d.ts +45 -45
- package/dist/vue/components/layout.d.ts.map +1 -1
- package/dist/vue/components/layout.js +8 -2
- package/dist/vue/components/layout.js.map +1 -1
- package/dist/vue/components/navigation.d.ts +4 -4
- package/dist/vue/components/screen-components.d.ts +23 -23
- package/dist/vue/components/screen-components.d.ts.map +1 -1
- package/dist/vue/components/screen-components.js +15 -0
- package/dist/vue/components/screen-components.js.map +1 -1
- package/dist/vue/components/wayfinding.d.ts +11 -11
- package/dist/vue/components/workflows.d.ts +5 -5
- package/dist/vue/layout-context.d.ts +4 -0
- package/dist/vue/layout-context.d.ts.map +1 -0
- package/dist/vue/layout-context.js +3 -0
- package/dist/vue/layout-context.js.map +1 -0
- package/dist/vue/navigation.d.ts +1 -3
- package/dist/vue/navigation.d.ts.map +1 -1
- package/dist/vue/navigation.js +1 -15
- package/dist/vue/navigation.js.map +1 -1
- package/dist/vue/screen-overlay.d.ts +9 -0
- package/dist/vue/screen-overlay.d.ts.map +1 -0
- package/dist/vue/screen-overlay.js +17 -0
- package/dist/vue/screen-overlay.js.map +1 -0
- package/dist/vue/use-motion-surface.d.ts +2 -3
- package/dist/vue/use-motion-surface.d.ts.map +1 -1
- package/dist/vue/use-motion-surface.js +9 -134
- package/dist/vue/use-motion-surface.js.map +1 -1
- package/package.json +8 -4
- package/platforms/android/java/com/mavis/ui/Box.java +31 -0
- package/src/components/bindings.ts +32 -0
- package/src/components/contracts.ts +60 -0
- package/src/components/controller.ts +542 -0
- package/src/components/index.ts +136 -0
- package/src/components/style.ts +84 -0
- package/src/components/theme.ts +25 -0
- package/src/native/box.ios.ts +31 -1
- package/src/native/flex-layout.ios.ts +4 -0
- package/src/native/motion-binding.ts +143 -0
- package/src/native/motion-region.ts +1 -0
- package/src/native/motion-surface.ts +41 -8
- package/src/native/navigation.ts +15 -0
- package/src/native/pointer-availability.ts +44 -0
- package/src/native/scroll-motion.ts +60 -19
- package/src/native/section-scroll.ts +16 -6
- package/src/vue/card-input.ts +44 -0
- package/src/vue/components/MCard.ts +4 -3
- package/src/vue/components/MGrid.ts +10 -1
- package/src/vue/components/MScreen.ts +12 -1
- package/src/vue/components/MStack.ts +17 -2
- package/src/vue/components/MText.ts +4 -1
- package/src/vue/components/MVirtualList.ts +104 -78
- package/src/vue/components/dashboard.ts +192 -69
- package/src/vue/components/layout.ts +8 -0
- package/src/vue/components/screen-components.ts +14 -0
- package/src/vue/layout-context.ts +4 -0
- package/src/vue/navigation.ts +1 -15
- package/src/vue/screen-overlay.ts +20 -0
- package/src/vue/use-motion-surface.ts +10 -137
|
@@ -77,13 +77,13 @@ export declare const MSkeleton: import("nativescript-vue").DefineComponent<impor
|
|
|
77
77
|
default: undefined;
|
|
78
78
|
};
|
|
79
79
|
}>> & Readonly<{}>, {
|
|
80
|
+
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
80
81
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
81
82
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
82
|
-
id: string;
|
|
83
|
-
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
84
83
|
grow: number;
|
|
85
84
|
shrink: number;
|
|
85
|
+
id: string;
|
|
86
86
|
animated: boolean;
|
|
87
|
-
effect: "
|
|
87
|
+
effect: "pulse" | "shimmer";
|
|
88
88
|
}, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
|
|
89
89
|
//# sourceMappingURL=MSkeleton.d.ts.map
|
|
@@ -69,8 +69,8 @@ export declare const MSlider: import("nativescript-vue").DefineComponent<import(
|
|
|
69
69
|
}>> & Readonly<{
|
|
70
70
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
|
-
accessibilityHidden: boolean;
|
|
73
72
|
id: string;
|
|
73
|
+
accessibilityHidden: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
75
|
modelValue: number;
|
|
76
76
|
min: number;
|
|
@@ -15,9 +15,9 @@ export declare const MStack: import("nativescript-vue").DefineComponent<import("
|
|
|
15
15
|
default: undefined;
|
|
16
16
|
};
|
|
17
17
|
align: {
|
|
18
|
-
type: import("nativescript-vue").PropType<"
|
|
18
|
+
type: import("nativescript-vue").PropType<"end" | "start" | "center" | "stretch">;
|
|
19
19
|
} & {
|
|
20
|
-
default: "
|
|
20
|
+
default: "end" | "start" | "center" | "stretch";
|
|
21
21
|
};
|
|
22
22
|
gap: {
|
|
23
23
|
type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -25,9 +25,9 @@ export declare const MStack: import("nativescript-vue").DefineComponent<import("
|
|
|
25
25
|
default: undefined;
|
|
26
26
|
};
|
|
27
27
|
justify: {
|
|
28
|
-
type: import("nativescript-vue").PropType<"
|
|
28
|
+
type: import("nativescript-vue").PropType<"end" | "start" | "center" | "between" | "around">;
|
|
29
29
|
} & {
|
|
30
|
-
default: "
|
|
30
|
+
default: "end" | "start" | "center" | "between" | "around";
|
|
31
31
|
};
|
|
32
32
|
wrap: {
|
|
33
33
|
type: import("nativescript-vue").PropType<boolean>;
|
|
@@ -110,9 +110,9 @@ export declare const MStack: import("nativescript-vue").DefineComponent<import("
|
|
|
110
110
|
default: undefined;
|
|
111
111
|
};
|
|
112
112
|
align: {
|
|
113
|
-
type: import("nativescript-vue").PropType<"
|
|
113
|
+
type: import("nativescript-vue").PropType<"end" | "start" | "center" | "stretch">;
|
|
114
114
|
} & {
|
|
115
|
-
default: "
|
|
115
|
+
default: "end" | "start" | "center" | "stretch";
|
|
116
116
|
};
|
|
117
117
|
gap: {
|
|
118
118
|
type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -120,9 +120,9 @@ export declare const MStack: import("nativescript-vue").DefineComponent<import("
|
|
|
120
120
|
default: undefined;
|
|
121
121
|
};
|
|
122
122
|
justify: {
|
|
123
|
-
type: import("nativescript-vue").PropType<"
|
|
123
|
+
type: import("nativescript-vue").PropType<"end" | "start" | "center" | "between" | "around">;
|
|
124
124
|
} & {
|
|
125
|
-
default: "
|
|
125
|
+
default: "end" | "start" | "center" | "between" | "around";
|
|
126
126
|
};
|
|
127
127
|
wrap: {
|
|
128
128
|
type: import("nativescript-vue").PropType<boolean>;
|
|
@@ -188,23 +188,23 @@ export declare const MStack: import("nativescript-vue").DefineComponent<import("
|
|
|
188
188
|
default: undefined;
|
|
189
189
|
};
|
|
190
190
|
}>> & Readonly<{}>, {
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
192
|
+
motionRegion: import("@getcortexlabs/mavis-core/experimental").MotionRegion;
|
|
193
193
|
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
direction: "row" | "column";
|
|
194
|
+
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
195
|
+
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
197
196
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
198
197
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
199
|
-
id: string;
|
|
200
|
-
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
201
|
-
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
202
|
-
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
203
198
|
grow: number;
|
|
204
199
|
shrink: number;
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
id: string;
|
|
201
|
+
accessibilityLabel: string;
|
|
202
|
+
accessibilityHidden: boolean;
|
|
203
|
+
align: "start" | "center" | "end" | "stretch";
|
|
207
204
|
gap: import("@getcortexlabs/mavis-core").Spacing;
|
|
205
|
+
justify: "start" | "center" | "end" | "between" | "around";
|
|
206
|
+
wrap: boolean;
|
|
207
|
+
direction: "row" | "column";
|
|
208
208
|
responsive: import("@getcortexlabs/mavis-core").StackResponsive;
|
|
209
209
|
}, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
|
|
210
210
|
//# sourceMappingURL=MStack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MStack.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MStack.ts"],"names":[],"mappings":"AAaA,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"MStack.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MStack.ts"],"names":[],"mappings":"AAaA,OAAO,aAAa,CAAA;AAiBpB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAyEjB,CAAA"}
|
|
@@ -5,6 +5,7 @@ import { stackProps, layoutDirection, useLayoutShrink, useMavisTheme, useCompone
|
|
|
5
5
|
import { boxStyle } from '../props.js';
|
|
6
6
|
import { useNativeViewAttrs } from '../accessibility.js';
|
|
7
7
|
import './layout.js';
|
|
8
|
+
import { useOverlayLayout } from '../screen-overlay.js';
|
|
8
9
|
const align = {
|
|
9
10
|
start: 'flex-start',
|
|
10
11
|
end: 'flex-end',
|
|
@@ -23,6 +24,7 @@ export const MStack = defineComponent({
|
|
|
23
24
|
inheritAttrs: false,
|
|
24
25
|
props: stackProps,
|
|
25
26
|
setup(props, { attrs, slots }) {
|
|
27
|
+
const overlay = useOverlayLayout();
|
|
26
28
|
const { theme } = useMavisTheme();
|
|
27
29
|
const nativeAttrs = useNativeViewAttrs(props);
|
|
28
30
|
const shrink = useLayoutShrink();
|
|
@@ -40,20 +42,28 @@ export const MStack = defineComponent({
|
|
|
40
42
|
provide(layoutDirection, direction);
|
|
41
43
|
const measure = (event) => {
|
|
42
44
|
const view = event.object;
|
|
43
|
-
const size = view.getActualSize()
|
|
45
|
+
const size = view.getActualSize()?.width ?? 0;
|
|
44
46
|
// The inner layout occupies the outer Box's content area, after padding.
|
|
45
47
|
if (size > 0 && size !== width.value)
|
|
46
48
|
width.value = size;
|
|
47
49
|
};
|
|
48
|
-
return () => h('MavisBox', mergeProps({ style: boxStyle(theme.value, props, shrink.value) }, nativeAttrs(), attrs), [
|
|
50
|
+
return () => h('MavisBox', mergeProps(overlay(attrs), { style: boxStyle(theme.value, props, shrink.value) }, nativeAttrs(), attrs), [
|
|
49
51
|
h('MavisFlexLayout', {
|
|
52
|
+
...overlay({}),
|
|
50
53
|
...motion,
|
|
54
|
+
onLoaded: (event) => {
|
|
55
|
+
motion.onLoaded(event);
|
|
56
|
+
measure(event);
|
|
57
|
+
},
|
|
51
58
|
onLayoutChanged: measure,
|
|
52
59
|
onUnloaded: () => {
|
|
53
60
|
motion.onUnloaded();
|
|
54
61
|
width.value = undefined;
|
|
55
62
|
},
|
|
56
63
|
style: {
|
|
64
|
+
// Flex growth/shrink needs an exact content width on native;
|
|
65
|
+
// a GridLayout's loose offer otherwise retains oversized columns.
|
|
66
|
+
width: '100%',
|
|
57
67
|
flexDirection: direction.value,
|
|
58
68
|
alignItems: align[layout.value.align ?? props.align],
|
|
59
69
|
justifyContent: justify[layout.value.justify ?? props.justify],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MStack.js","sourceRoot":"","sources":["../../../src/vue/components/MStack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,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,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;oBAC/C,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC;iBAC3D;aACF,EACD,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB;SACF,CACF,CAAA;IACL,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -77,12 +77,12 @@ export declare const MSwitch: import("nativescript-vue").DefineComponent<import(
|
|
|
77
77
|
}>> & Readonly<{
|
|
78
78
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
|
-
accessibilityHidden: boolean;
|
|
81
80
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
82
|
-
id: string;
|
|
83
|
-
disabled: boolean;
|
|
84
81
|
grow: number;
|
|
85
82
|
shrink: number;
|
|
83
|
+
id: string;
|
|
84
|
+
accessibilityHidden: boolean;
|
|
85
|
+
disabled: boolean;
|
|
86
86
|
modelValue: boolean;
|
|
87
87
|
helperText: string;
|
|
88
88
|
}, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -87,12 +87,12 @@ export declare const MTabs: import("nativescript-vue").DefineComponent<import("n
|
|
|
87
87
|
}>> & Readonly<{
|
|
88
88
|
"onUpdate:modelValue"?: ((value: import("@getcortexlabs/mavis-core").ChoiceValue) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
accessibilityHidden: boolean;
|
|
91
90
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
92
|
-
id: string;
|
|
93
|
-
disabled: boolean;
|
|
94
91
|
grow: number;
|
|
95
92
|
shrink: number;
|
|
93
|
+
id: string;
|
|
94
|
+
accessibilityHidden: boolean;
|
|
95
|
+
disabled: boolean;
|
|
96
96
|
modelValue: import("@getcortexlabs/mavis-core").ChoiceValue | null;
|
|
97
97
|
keepAlive: boolean;
|
|
98
98
|
}, SlotsType<{
|
|
@@ -133,16 +133,16 @@ export declare const MText: import("nativescript-vue").DefineComponent<import("n
|
|
|
133
133
|
default: undefined;
|
|
134
134
|
};
|
|
135
135
|
}>> & Readonly<{}>, {
|
|
136
|
-
|
|
137
|
-
wrap: boolean;
|
|
138
|
-
accessibilityHidden: boolean;
|
|
139
|
-
accessibilityLabel: string;
|
|
140
|
-
id: string;
|
|
136
|
+
motionSurface: import("@getcortexlabs/mavis-core/experimental").MotionSurface;
|
|
141
137
|
grow: number;
|
|
142
138
|
shrink: number;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
id: string;
|
|
140
|
+
accessibilityLabel: string;
|
|
141
|
+
accessibilityHidden: boolean;
|
|
142
|
+
align: "center" | "left" | "right";
|
|
143
|
+
wrap: boolean;
|
|
144
|
+
text: string;
|
|
145
|
+
as: "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
146
146
|
variant: "display" | "title" | "heading" | "body" | "caption" | "overline";
|
|
147
147
|
tone: keyof import("@getcortexlabs/mavis-core").Palette;
|
|
148
148
|
weight: import("@getcortexlabs/mavis-core").FontWeight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MText.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MText.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MText.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MText.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAsEhB,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { defineComponent, h, mergeProps, registerElement } from 'nativescript-vue';
|
|
1
|
+
import { defineComponent, h, inject, mergeProps, registerElement } from 'nativescript-vue';
|
|
2
2
|
import { textProps, useMavisTheme, inlineContent, useLayoutShrink, } from '@getcortexlabs/mavis-core/vue';
|
|
3
3
|
import { fontFamily, nonNegative, validateWeight } from '@getcortexlabs/mavis-core';
|
|
4
4
|
import { isAndroid } from '@nativescript/core';
|
|
5
5
|
import { MavisLabel } from '../../native/label';
|
|
6
6
|
import { useNativeViewAttrs } from '../accessibility.js';
|
|
7
7
|
import { useMotionSurface } from '../use-motion-surface.js';
|
|
8
|
+
import { boxLayer } from '../layout-context.js';
|
|
8
9
|
registerElement('MavisLabel', () => MavisLabel);
|
|
9
10
|
export const MText = defineComponent({
|
|
10
11
|
name: 'MText',
|
|
11
12
|
inheritAttrs: false,
|
|
12
13
|
props: textProps,
|
|
13
14
|
setup(props, { attrs, slots }) {
|
|
15
|
+
const layered = inject(boxLayer, false);
|
|
14
16
|
const { theme } = useMavisTheme();
|
|
15
17
|
const nativeAttrs = useNativeViewAttrs(props);
|
|
16
18
|
const shrink = useLayoutShrink();
|
|
@@ -29,6 +31,7 @@ export const MText = defineComponent({
|
|
|
29
31
|
accessible: true,
|
|
30
32
|
accessibilityRole: /^h[1-6]$/.test(props.as) ? 'header' : 'text',
|
|
31
33
|
style: {
|
|
34
|
+
...(layered ? { verticalAlignment: 'top' } : {}),
|
|
32
35
|
...type,
|
|
33
36
|
fontFamily: fontFamily(type.fontFamily, isAndroid ? 'android' : 'ios'),
|
|
34
37
|
fontWeight: props.weight ? validateWeight(props.weight) : type.fontWeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MText.js","sourceRoot":"","sources":["../../../src/vue/components/MText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"MText.js","sourceRoot":"","sources":["../../../src/vue/components/MText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAA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AAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;yBAC3D,CAAC,CAAA;oBACJ,CAAC,CAAC,CACH;iBACF;gBACH,CAAC,CAAC,SAAS,CACd,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -100,8 +100,8 @@ export declare const MTimePicker: {
|
|
|
100
100
|
};
|
|
101
101
|
}>> & Readonly<{
|
|
102
102
|
onFocus?: (() => any) | undefined;
|
|
103
|
-
onBlur?: (() => any) | undefined;
|
|
104
103
|
"onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
|
|
104
|
+
onBlur?: (() => any) | undefined;
|
|
105
105
|
"onUpdate:draft"?: ((_value: string) => any) | undefined;
|
|
106
106
|
onValidityChange?: ((_value: import("@getcortexlabs/mavis-core").TimeValidation) => any) | undefined;
|
|
107
107
|
}>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
|
|
@@ -118,23 +118,23 @@ export declare const MTimePicker: {
|
|
|
118
118
|
disabled: boolean;
|
|
119
119
|
error: string;
|
|
120
120
|
id: string;
|
|
121
|
+
grow: number;
|
|
121
122
|
modelValue: string | null;
|
|
122
123
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
123
|
-
grow: number;
|
|
124
|
-
placeholder: string;
|
|
125
|
-
helperText: string;
|
|
126
|
-
required: boolean;
|
|
127
|
-
readonly: boolean;
|
|
128
124
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
129
|
-
|
|
130
|
-
cancelLabel: string;
|
|
125
|
+
readonly: boolean;
|
|
131
126
|
clearLabel: string;
|
|
132
|
-
|
|
127
|
+
helperText: string;
|
|
133
128
|
invalidLabel: string;
|
|
134
|
-
|
|
129
|
+
placeholder: string;
|
|
130
|
+
draft: string;
|
|
131
|
+
cancelLabel: string;
|
|
132
|
+
confirmLabel: string;
|
|
135
133
|
chooseLabel: string;
|
|
134
|
+
required: boolean;
|
|
136
135
|
hourLabel: string;
|
|
137
136
|
minuteLabel: string;
|
|
137
|
+
minuteStep: number;
|
|
138
138
|
periodLabel: string;
|
|
139
139
|
}, true, {}, {}, import("nativescript-vue").GlobalComponents, import("nativescript-vue").GlobalDirectives, string, {}, any, import("nativescript-vue").ComponentProvideOptions, {
|
|
140
140
|
P: {};
|
|
@@ -244,8 +244,8 @@ export declare const MTimePicker: {
|
|
|
244
244
|
};
|
|
245
245
|
}>> & Readonly<{
|
|
246
246
|
onFocus?: (() => any) | undefined;
|
|
247
|
-
onBlur?: (() => any) | undefined;
|
|
248
247
|
"onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
|
|
248
|
+
onBlur?: (() => any) | undefined;
|
|
249
249
|
"onUpdate:draft"?: ((_value: string) => any) | undefined;
|
|
250
250
|
onValidityChange?: ((_value: import("@getcortexlabs/mavis-core").TimeValidation) => any) | undefined;
|
|
251
251
|
}>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
|
|
@@ -256,23 +256,23 @@ export declare const MTimePicker: {
|
|
|
256
256
|
disabled: boolean;
|
|
257
257
|
error: string;
|
|
258
258
|
id: string;
|
|
259
|
+
grow: number;
|
|
259
260
|
modelValue: string | null;
|
|
260
261
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
261
|
-
grow: number;
|
|
262
|
-
placeholder: string;
|
|
263
|
-
helperText: string;
|
|
264
|
-
required: boolean;
|
|
265
|
-
readonly: boolean;
|
|
266
262
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
267
|
-
|
|
268
|
-
cancelLabel: string;
|
|
263
|
+
readonly: boolean;
|
|
269
264
|
clearLabel: string;
|
|
270
|
-
|
|
265
|
+
helperText: string;
|
|
271
266
|
invalidLabel: string;
|
|
272
|
-
|
|
267
|
+
placeholder: string;
|
|
268
|
+
draft: string;
|
|
269
|
+
cancelLabel: string;
|
|
270
|
+
confirmLabel: string;
|
|
273
271
|
chooseLabel: string;
|
|
272
|
+
required: boolean;
|
|
274
273
|
hourLabel: string;
|
|
275
274
|
minuteLabel: string;
|
|
275
|
+
minuteStep: number;
|
|
276
276
|
periodLabel: string;
|
|
277
277
|
}>;
|
|
278
278
|
__isFragment?: never;
|
|
@@ -379,8 +379,8 @@ export declare const MTimePicker: {
|
|
|
379
379
|
};
|
|
380
380
|
}>> & Readonly<{
|
|
381
381
|
onFocus?: (() => any) | undefined;
|
|
382
|
-
onBlur?: (() => any) | undefined;
|
|
383
382
|
"onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
|
|
383
|
+
onBlur?: (() => any) | undefined;
|
|
384
384
|
"onUpdate:draft"?: ((_value: string) => any) | undefined;
|
|
385
385
|
onValidityChange?: ((_value: import("@getcortexlabs/mavis-core").TimeValidation) => any) | undefined;
|
|
386
386
|
}>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
|
|
@@ -397,23 +397,23 @@ export declare const MTimePicker: {
|
|
|
397
397
|
disabled: boolean;
|
|
398
398
|
error: string;
|
|
399
399
|
id: string;
|
|
400
|
+
grow: number;
|
|
400
401
|
modelValue: string | null;
|
|
401
402
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
402
|
-
grow: number;
|
|
403
|
-
placeholder: string;
|
|
404
|
-
helperText: string;
|
|
405
|
-
required: boolean;
|
|
406
|
-
readonly: boolean;
|
|
407
403
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
408
|
-
|
|
409
|
-
cancelLabel: string;
|
|
404
|
+
readonly: boolean;
|
|
410
405
|
clearLabel: string;
|
|
411
|
-
|
|
406
|
+
helperText: string;
|
|
412
407
|
invalidLabel: string;
|
|
413
|
-
|
|
408
|
+
placeholder: string;
|
|
409
|
+
draft: string;
|
|
410
|
+
cancelLabel: string;
|
|
411
|
+
confirmLabel: string;
|
|
414
412
|
chooseLabel: string;
|
|
413
|
+
required: boolean;
|
|
415
414
|
hourLabel: string;
|
|
416
415
|
minuteLabel: string;
|
|
416
|
+
minuteStep: number;
|
|
417
417
|
periodLabel: string;
|
|
418
418
|
}, {}, string, {}, import("nativescript-vue").GlobalComponents, import("nativescript-vue").GlobalDirectives, string, import("nativescript-vue").ComponentProvideOptions> & import("nativescript-vue").VNodeProps & import("nativescript-vue").AllowedComponentProps & import("nativescript-vue").ComponentCustomProps & (new () => InstanceType<import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
|
|
419
419
|
id: {
|
|
@@ -623,8 +623,8 @@ export declare const MTimePicker: {
|
|
|
623
623
|
};
|
|
624
624
|
}>> & Readonly<{
|
|
625
625
|
onFocus?: (() => any) | undefined;
|
|
626
|
-
onBlur?: (() => any) | undefined;
|
|
627
626
|
"onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
|
|
627
|
+
onBlur?: (() => any) | undefined;
|
|
628
628
|
"onUpdate:draft"?: ((_value: string) => any) | undefined;
|
|
629
629
|
onValidityChange?: ((_value: import("@getcortexlabs/mavis-core").TimeValidation) => any) | undefined;
|
|
630
630
|
}>, {
|
|
@@ -633,23 +633,23 @@ export declare const MTimePicker: {
|
|
|
633
633
|
disabled: boolean;
|
|
634
634
|
error: string;
|
|
635
635
|
id: string;
|
|
636
|
+
grow: number;
|
|
636
637
|
modelValue: string | null;
|
|
637
638
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
638
|
-
grow: number;
|
|
639
|
-
placeholder: string;
|
|
640
|
-
helperText: string;
|
|
641
|
-
required: boolean;
|
|
642
|
-
readonly: boolean;
|
|
643
639
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
644
|
-
|
|
645
|
-
cancelLabel: string;
|
|
640
|
+
readonly: boolean;
|
|
646
641
|
clearLabel: string;
|
|
647
|
-
|
|
642
|
+
helperText: string;
|
|
648
643
|
invalidLabel: string;
|
|
649
|
-
|
|
644
|
+
placeholder: string;
|
|
645
|
+
draft: string;
|
|
646
|
+
cancelLabel: string;
|
|
647
|
+
confirmLabel: string;
|
|
650
648
|
chooseLabel: string;
|
|
649
|
+
required: boolean;
|
|
651
650
|
hourLabel: string;
|
|
652
651
|
minuteLabel: string;
|
|
652
|
+
minuteStep: number;
|
|
653
653
|
periodLabel: string;
|
|
654
654
|
}, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>> & import("@getcortexlabs/mavis-core").InputHandle);
|
|
655
655
|
//# sourceMappingURL=MTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MTimePicker.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MTimePicker.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAaqtV,CAAC;
|
|
1
|
+
{"version":3,"file":"MTimePicker.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MTimeP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