@getcortexlabs/mavis-web 0.1.0-alpha.10 → 0.1.0-alpha.11
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 +4 -4
- package/dist/components/ChartPlot.d.ts +65 -0
- package/dist/components/ChartPlot.d.ts.map +1 -0
- package/dist/components/ChartPlot.js +135 -0
- package/dist/components/ChartPlot.js.map +1 -0
- package/dist/components/DateCalendar.d.ts +16 -1
- package/dist/components/DateCalendar.d.ts.map +1 -1
- package/dist/components/DateCalendar.js +17 -8
- package/dist/components/DateCalendar.js.map +1 -1
- package/dist/components/MAccordion.d.ts +1 -1
- package/dist/components/MChip.d.ts +1 -1
- package/dist/components/MCombobox.d.ts +3 -3
- package/dist/components/MDatePicker.d.ts +16 -16
- package/dist/components/MDialog.d.ts +3 -3
- package/dist/components/MEmptyState.d.ts +1 -1
- package/dist/components/MFilePicker.d.ts +2 -2
- package/dist/components/MImage.d.ts +1 -1
- package/dist/components/MInput.d.ts +1 -1
- package/dist/components/MListItem.d.ts +1 -1
- package/dist/components/MRangeSlider.d.ts +104 -0
- package/dist/components/MRangeSlider.d.ts.map +1 -0
- package/dist/components/MRangeSlider.js +95 -0
- package/dist/components/MRangeSlider.js.map +1 -0
- package/dist/components/MReveal.d.ts +8 -8
- package/dist/components/MSelect.d.ts +2 -2
- package/dist/components/MSheet.d.ts +4 -4
- package/dist/components/MStack.d.ts +8 -8
- package/dist/components/MText.d.ts +1 -1
- package/dist/components/MTimePicker.d.ts +4 -4
- package/dist/components/MTooltip.d.ts +65 -0
- package/dist/components/MTooltip.d.ts.map +1 -0
- package/dist/components/MTooltip.js +259 -0
- package/dist/components/MTooltip.js.map +1 -0
- package/dist/components/configurator.d.ts +2 -2
- package/dist/components/discovery.d.ts +282 -0
- package/dist/components/discovery.d.ts.map +1 -0
- package/dist/components/discovery.js +113 -0
- package/dist/components/discovery.js.map +1 -0
- package/dist/components/layout.d.ts +24 -24
- package/dist/components/navigation.d.ts +1 -1
- package/dist/components/wayfinding.d.ts +441 -0
- package/dist/components/wayfinding.d.ts.map +1 -0
- package/dist/components/wayfinding.js +56 -0
- package/dist/components/wayfinding.js.map +1 -0
- package/dist/components/workflows.d.ts +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/base.css +117 -0
- package/src/components/ChartPlot.ts +139 -0
- package/src/components/DateCalendar.ts +20 -8
- package/src/components/MRangeSlider.ts +115 -0
- package/src/components/MTooltip.ts +293 -0
- package/src/components/discovery.ts +163 -0
- package/src/components/wayfinding.ts +68 -0
- package/src/index.ts +34 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type RangeValue } from '@getcortexlabs/mavis-core';
|
|
2
|
+
export declare const MRangeSlider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import("vue").PropType<RangeValue>;
|
|
5
|
+
default: () => readonly [0, 100];
|
|
6
|
+
};
|
|
7
|
+
lowerLabel: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
upperLabel: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
formatValue: import("vue").PropType<(value: number) => string>;
|
|
16
|
+
readonly: BooleanConstructor;
|
|
17
|
+
id: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
} & {
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
accessibilityHidden: {
|
|
23
|
+
type: import("vue").PropType<boolean>;
|
|
24
|
+
} & {
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
min: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
max: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
step: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
disabled: BooleanConstructor;
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
'update:modelValue': (_value: RangeValue) => true;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: import("vue").PropType<RangeValue>;
|
|
51
|
+
default: () => readonly [0, 100];
|
|
52
|
+
};
|
|
53
|
+
lowerLabel: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
upperLabel: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
formatValue: import("vue").PropType<(value: number) => string>;
|
|
62
|
+
readonly: BooleanConstructor;
|
|
63
|
+
id: {
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
65
|
+
} & {
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
accessibilityHidden: {
|
|
69
|
+
type: import("vue").PropType<boolean>;
|
|
70
|
+
} & {
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
min: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
max: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
step: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
disabled: BooleanConstructor;
|
|
86
|
+
label: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{
|
|
91
|
+
"onUpdate:modelValue"?: ((_value: RangeValue) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
id: string;
|
|
95
|
+
accessibilityHidden: boolean;
|
|
96
|
+
modelValue: RangeValue;
|
|
97
|
+
readonly: boolean;
|
|
98
|
+
min: number;
|
|
99
|
+
max: number;
|
|
100
|
+
step: number;
|
|
101
|
+
lowerLabel: string;
|
|
102
|
+
upperLabel: string;
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
104
|
+
//# sourceMappingURL=MRangeSlider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MRangeSlider.d.ts","sourceRoot":"","sources":["../../src/components/MRangeSlider.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAK/F,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAIgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAwGjD,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { computed, defineComponent, h, mergeProps, nextTick, useId } from 'vue';
|
|
2
|
+
import { moveRange, rangeValue, sliderScale } from '@getcortexlabs/mavis-core';
|
|
3
|
+
import { rangeSliderProps, useMavisTheme } from '@getcortexlabs/mavis-core/vue';
|
|
4
|
+
import { MColumn, MRow } from './layout.js';
|
|
5
|
+
import { MText } from './MText.js';
|
|
6
|
+
import { useHydrationEdit } from '../hydration.js';
|
|
7
|
+
export const MRangeSlider = defineComponent({
|
|
8
|
+
name: 'MRangeSlider',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: rangeSliderProps,
|
|
11
|
+
emits: { 'update:modelValue': (_value) => true },
|
|
12
|
+
setup(props, { attrs, emit }) {
|
|
13
|
+
const { theme } = useMavisTheme();
|
|
14
|
+
const id = `m-range-${useId()}`;
|
|
15
|
+
const pair = computed(() => rangeValue(props.modelValue, props.min, props.max, props.step));
|
|
16
|
+
const format = (value) => props.formatValue?.(value) ?? String(value);
|
|
17
|
+
const pending = useHydrationEdit((root) => {
|
|
18
|
+
if (props.disabled || props.readonly)
|
|
19
|
+
return;
|
|
20
|
+
const inputs = [...root.querySelectorAll('input[type="range"]')];
|
|
21
|
+
if (inputs.length !== 2)
|
|
22
|
+
return;
|
|
23
|
+
const scale = sliderScale(props.min, props.max, props.step);
|
|
24
|
+
if (!inputs.every((input, thumb) => Number(input.defaultValue) === scale.toNative(pair.value[thumb])))
|
|
25
|
+
return;
|
|
26
|
+
if (inputs.every((input) => input.value === input.defaultValue))
|
|
27
|
+
return;
|
|
28
|
+
const upper = scale.fromNative(inputs[1].valueAsNumber);
|
|
29
|
+
const value = [
|
|
30
|
+
Math.min(scale.fromNative(inputs[0].valueAsNumber), upper),
|
|
31
|
+
upper,
|
|
32
|
+
];
|
|
33
|
+
// Match the hydrated value attribute to the user's existing edit. Paint and
|
|
34
|
+
// accessible values update together after the owner accepts the pair.
|
|
35
|
+
inputs.forEach((input, thumb) => {
|
|
36
|
+
input.defaultValue = String(scale.toNative(value[thumb]));
|
|
37
|
+
});
|
|
38
|
+
return value;
|
|
39
|
+
}, (value) => emit('update:modelValue', value));
|
|
40
|
+
return () => {
|
|
41
|
+
const scale = sliderScale(props.min, props.max, props.step);
|
|
42
|
+
const shown = pending() ?? pair.value;
|
|
43
|
+
const lower = scale.toNative(pair.value[0]), upper = scale.toNative(pair.value[1]);
|
|
44
|
+
return h(MColumn, mergeProps({ id: props.id, gap: 'sm' }, attrs, {
|
|
45
|
+
class: 'm-range-slider',
|
|
46
|
+
role: 'group',
|
|
47
|
+
'aria-labelledby': id,
|
|
48
|
+
style: {
|
|
49
|
+
'--m-range-color': theme.value.colors.primary,
|
|
50
|
+
'--m-range-track': theme.value.colors.border,
|
|
51
|
+
'--m-range-surface': theme.value.colors.surface,
|
|
52
|
+
'--m-range-from': `${(lower / scale.steps) * 100}%`,
|
|
53
|
+
'--m-range-to': `${(upper / scale.steps) * 100}%`,
|
|
54
|
+
},
|
|
55
|
+
}), () => [
|
|
56
|
+
h(MRow, { justify: 'between', gap: 'md', wrap: true }, () => [
|
|
57
|
+
h(MText, { id, text: props.label, weight: '600' }),
|
|
58
|
+
h(MText, {
|
|
59
|
+
text: `${format(pair.value[0])} – ${format(pair.value[1])}`,
|
|
60
|
+
tone: 'muted',
|
|
61
|
+
}),
|
|
62
|
+
]),
|
|
63
|
+
h('div', { class: 'm-range-track' }, [0, 1].map((thumb) => h('input', {
|
|
64
|
+
type: 'range',
|
|
65
|
+
min: 0,
|
|
66
|
+
max: scale.steps,
|
|
67
|
+
step: 1,
|
|
68
|
+
value: scale.toNative(shown[thumb]),
|
|
69
|
+
disabled: props.disabled,
|
|
70
|
+
'aria-readonly': props.readonly || undefined,
|
|
71
|
+
'aria-label': `${props.label}: ${thumb === 0 ? props.lowerLabel : props.upperLabel}`,
|
|
72
|
+
'aria-valuemin': thumb === 0 ? props.min : pair.value[0],
|
|
73
|
+
'aria-valuemax': thumb === 0 ? pair.value[1] : props.max,
|
|
74
|
+
'aria-valuenow': pair.value[thumb],
|
|
75
|
+
'aria-valuetext': format(pair.value[thumb]),
|
|
76
|
+
style: { zIndex: thumb === 0 && lower === scale.steps ? 3 : thumb + 1 },
|
|
77
|
+
onKeydown: (event) => {
|
|
78
|
+
if (props.readonly)
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
},
|
|
81
|
+
onInput: (event) => {
|
|
82
|
+
const input = event.target;
|
|
83
|
+
const next = moveRange(pair.value, thumb, scale.fromNative(input.valueAsNumber), props.min, props.max, props.step);
|
|
84
|
+
if (!props.disabled && !props.readonly && next[thumb] !== pair.value[thumb])
|
|
85
|
+
emit('update:modelValue', next);
|
|
86
|
+
void nextTick(() => {
|
|
87
|
+
input.value = String(scale.toNative(pair.value[thumb]));
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
}))),
|
|
91
|
+
]);
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=MRangeSlider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MRangeSlider.js","sourceRoot":"","sources":["../../src/components/MRangeSlider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAmB,MAAM,2BAA2B,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC/E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,EAAE,mBAAmB,EAAE,CAAC,MAAkB,EAAE,EAAE,CAAC,IAAI,EAAE;IAC5D,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;QAC1B,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,CAAA;QACjC,MAAM,EAAE,GAAG,WAAW,KAAK,EAAE,EAAE,CAAA;QAC/B,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,U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AC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;wBACzD,CAAC,CAAC,CAAA;oBACJ,CAAC;iBACF,CAAC,CACH,CACF;aACF,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const MReveal: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
show: BooleanConstructor;
|
|
3
3
|
align: {
|
|
4
|
-
type: import("vue").PropType<"start" | "
|
|
4
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
5
5
|
} & {
|
|
6
|
-
default: "start" | "
|
|
6
|
+
default: "start" | "end" | "center" | "stretch";
|
|
7
7
|
};
|
|
8
8
|
gap: {
|
|
9
9
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -11,9 +11,9 @@ export declare const MReveal: import("vue").DefineComponent<import("vue").Extrac
|
|
|
11
11
|
default: undefined;
|
|
12
12
|
};
|
|
13
13
|
justify: {
|
|
14
|
-
type: import("vue").PropType<"start" | "
|
|
14
|
+
type: import("vue").PropType<"start" | "end" | "center" | "between" | "around">;
|
|
15
15
|
} & {
|
|
16
|
-
default: "start" | "
|
|
16
|
+
default: "start" | "end" | "center" | "between" | "around";
|
|
17
17
|
};
|
|
18
18
|
wrap: {
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
@@ -83,9 +83,9 @@ export declare const MReveal: import("vue").DefineComponent<import("vue").Extrac
|
|
|
83
83
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
84
|
show: BooleanConstructor;
|
|
85
85
|
align: {
|
|
86
|
-
type: import("vue").PropType<"start" | "
|
|
86
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
87
87
|
} & {
|
|
88
|
-
default: "start" | "
|
|
88
|
+
default: "start" | "end" | "center" | "stretch";
|
|
89
89
|
};
|
|
90
90
|
gap: {
|
|
91
91
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -93,9 +93,9 @@ export declare const MReveal: import("vue").DefineComponent<import("vue").Extrac
|
|
|
93
93
|
default: undefined;
|
|
94
94
|
};
|
|
95
95
|
justify: {
|
|
96
|
-
type: import("vue").PropType<"start" | "
|
|
96
|
+
type: import("vue").PropType<"start" | "end" | "center" | "between" | "around">;
|
|
97
97
|
} & {
|
|
98
|
-
default: "start" | "
|
|
98
|
+
default: "start" | "end" | "center" | "between" | "around";
|
|
99
99
|
};
|
|
100
100
|
wrap: {
|
|
101
101
|
type: import("vue").PropType<boolean>;
|
|
@@ -131,10 +131,10 @@ export declare const MSelect: import("vue").DefineComponent<import("vue").Extrac
|
|
|
131
131
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
132
132
|
grow: number;
|
|
133
133
|
accessibilityHidden: boolean;
|
|
134
|
-
|
|
134
|
+
closeLabel: string;
|
|
135
135
|
placeholder: string;
|
|
136
|
+
modelValue: import("@getcortexlabs/mavis-core").ChoiceValue | null;
|
|
136
137
|
helperText: string;
|
|
137
|
-
closeLabel: string;
|
|
138
138
|
emptyText: string;
|
|
139
139
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
140
|
//# sourceMappingURL=MSelect.d.ts.map
|
|
@@ -38,9 +38,9 @@ declare const Sheet: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
38
38
|
default: undefined;
|
|
39
39
|
};
|
|
40
40
|
align: {
|
|
41
|
-
type: import("vue").PropType<"start" | "
|
|
41
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
42
42
|
} & {
|
|
43
|
-
default: "start" | "
|
|
43
|
+
default: "start" | "end" | "center" | "stretch";
|
|
44
44
|
};
|
|
45
45
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
@@ -87,9 +87,9 @@ declare const Sheet: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
87
87
|
default: undefined;
|
|
88
88
|
};
|
|
89
89
|
align: {
|
|
90
|
-
type: import("vue").PropType<"start" | "
|
|
90
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
91
91
|
} & {
|
|
92
|
-
default: "start" | "
|
|
92
|
+
default: "start" | "end" | "center" | "stretch";
|
|
93
93
|
};
|
|
94
94
|
}>> & Readonly<{
|
|
95
95
|
onClose?: ((reason: SheetCloseReason) => any) | undefined;
|
|
@@ -9,9 +9,9 @@ export declare const MStack: import("vue").DefineComponent<import("vue").Extract
|
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
11
|
align: {
|
|
12
|
-
type: import("vue").PropType<"start" | "
|
|
12
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
13
13
|
} & {
|
|
14
|
-
default: "start" | "
|
|
14
|
+
default: "start" | "end" | "center" | "stretch";
|
|
15
15
|
};
|
|
16
16
|
gap: {
|
|
17
17
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -19,9 +19,9 @@ export declare const MStack: import("vue").DefineComponent<import("vue").Extract
|
|
|
19
19
|
default: undefined;
|
|
20
20
|
};
|
|
21
21
|
justify: {
|
|
22
|
-
type: import("vue").PropType<"start" | "
|
|
22
|
+
type: import("vue").PropType<"start" | "end" | "center" | "between" | "around">;
|
|
23
23
|
} & {
|
|
24
|
-
default: "start" | "
|
|
24
|
+
default: "start" | "end" | "center" | "between" | "around";
|
|
25
25
|
};
|
|
26
26
|
wrap: {
|
|
27
27
|
type: import("vue").PropType<boolean>;
|
|
@@ -99,9 +99,9 @@ export declare const MStack: import("vue").DefineComponent<import("vue").Extract
|
|
|
99
99
|
default: undefined;
|
|
100
100
|
};
|
|
101
101
|
align: {
|
|
102
|
-
type: import("vue").PropType<"start" | "
|
|
102
|
+
type: import("vue").PropType<"start" | "end" | "center" | "stretch">;
|
|
103
103
|
} & {
|
|
104
|
-
default: "start" | "
|
|
104
|
+
default: "start" | "end" | "center" | "stretch";
|
|
105
105
|
};
|
|
106
106
|
gap: {
|
|
107
107
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -109,9 +109,9 @@ export declare const MStack: import("vue").DefineComponent<import("vue").Extract
|
|
|
109
109
|
default: undefined;
|
|
110
110
|
};
|
|
111
111
|
justify: {
|
|
112
|
-
type: import("vue").PropType<"start" | "
|
|
112
|
+
type: import("vue").PropType<"start" | "end" | "center" | "between" | "around">;
|
|
113
113
|
} & {
|
|
114
|
-
default: "start" | "
|
|
114
|
+
default: "start" | "end" | "center" | "between" | "around";
|
|
115
115
|
};
|
|
116
116
|
wrap: {
|
|
117
117
|
type: import("vue").PropType<boolean>;
|
|
@@ -143,8 +143,8 @@ export declare const MText: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
143
143
|
align: "center" | "left" | "right";
|
|
144
144
|
wrap: boolean;
|
|
145
145
|
motionSurface: import("@getcortexlabs/mavis-core/experimental").MotionSurface;
|
|
146
|
-
variant: "title" | "body" | "caption" | "display" | "heading" | "overline";
|
|
147
146
|
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span";
|
|
147
|
+
variant: "title" | "body" | "caption" | "display" | "heading" | "overline";
|
|
148
148
|
tone: keyof import("@getcortexlabs/mavis-core").Palette;
|
|
149
149
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
150
150
|
//# sourceMappingURL=MText.d.ts.map
|
|
@@ -128,8 +128,8 @@ export declare const MTimePicker: {
|
|
|
128
128
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
129
129
|
confirmLabel: string;
|
|
130
130
|
cancelLabel: string;
|
|
131
|
-
clearLabel: string;
|
|
132
131
|
draft: string;
|
|
132
|
+
clearLabel: string;
|
|
133
133
|
minuteStep: number;
|
|
134
134
|
chooseLabel: string;
|
|
135
135
|
hourLabel: string;
|
|
@@ -266,8 +266,8 @@ export declare const MTimePicker: {
|
|
|
266
266
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
267
267
|
confirmLabel: string;
|
|
268
268
|
cancelLabel: string;
|
|
269
|
-
clearLabel: string;
|
|
270
269
|
draft: string;
|
|
270
|
+
clearLabel: string;
|
|
271
271
|
minuteStep: number;
|
|
272
272
|
chooseLabel: string;
|
|
273
273
|
hourLabel: string;
|
|
@@ -407,8 +407,8 @@ export declare const MTimePicker: {
|
|
|
407
407
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
408
408
|
confirmLabel: string;
|
|
409
409
|
cancelLabel: string;
|
|
410
|
-
clearLabel: string;
|
|
411
410
|
draft: string;
|
|
411
|
+
clearLabel: string;
|
|
412
412
|
minuteStep: number;
|
|
413
413
|
chooseLabel: string;
|
|
414
414
|
hourLabel: string;
|
|
@@ -643,8 +643,8 @@ export declare const MTimePicker: {
|
|
|
643
643
|
locale: import("@getcortexlabs/mavis-core").TimeLocale;
|
|
644
644
|
confirmLabel: string;
|
|
645
645
|
cancelLabel: string;
|
|
646
|
-
clearLabel: string;
|
|
647
646
|
draft: string;
|
|
647
|
+
clearLabel: string;
|
|
648
648
|
minuteStep: number;
|
|
649
649
|
chooseLabel: string;
|
|
650
650
|
hourLabel: string;
|