@getcortexlabs/mavis 0.1.0-alpha.1 → 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 +9 -5
- package/dist/app-icons.d.ts +26 -0
- package/dist/app-icons.d.ts.map +1 -0
- package/dist/app-icons.js +9 -0
- package/dist/app-icons.js.map +1 -0
- package/dist/date-format.d.ts +3 -0
- package/dist/date-format.d.ts.map +1 -0
- package/dist/date-format.js +2 -0
- package/dist/date-format.js.map +1 -0
- package/dist/files.d.ts +4 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +3 -0
- package/dist/files.js.map +1 -0
- package/dist/native/app-icons.android.d.ts +4 -0
- package/dist/native/app-icons.android.d.ts.map +1 -0
- package/dist/native/app-icons.android.js +67 -0
- package/dist/native/app-icons.android.js.map +1 -0
- package/dist/native/app-icons.d.ts +4 -0
- package/dist/native/app-icons.d.ts.map +1 -0
- package/dist/native/app-icons.ios.d.ts +4 -0
- package/dist/native/app-icons.ios.d.ts.map +1 -0
- package/dist/native/app-icons.ios.js +45 -0
- package/dist/native/app-icons.ios.js.map +1 -0
- package/dist/native/app-icons.js +9 -0
- package/dist/native/app-icons.js.map +1 -0
- package/dist/native/appearance.android.d.ts +4 -0
- package/dist/native/appearance.android.d.ts.map +1 -0
- package/dist/native/appearance.android.js +55 -0
- package/dist/native/appearance.android.js.map +1 -0
- package/dist/native/appearance.d.ts +4 -0
- package/dist/native/appearance.d.ts.map +1 -0
- package/dist/native/appearance.js +31 -0
- package/dist/native/appearance.js.map +1 -0
- package/dist/native/avatar-image.d.ts +4 -0
- package/dist/native/avatar-image.d.ts.map +1 -0
- package/dist/native/avatar-image.js +12 -0
- package/dist/native/avatar-image.js.map +1 -0
- package/dist/native/avatar-label.android.d.ts +9 -0
- package/dist/native/avatar-label.android.d.ts.map +1 -0
- package/dist/native/avatar-label.android.js +9 -0
- package/dist/native/avatar-label.android.js.map +1 -0
- package/dist/native/avatar-label.d.ts +2 -0
- package/dist/native/avatar-label.d.ts.map +1 -0
- package/dist/native/avatar-label.js +2 -0
- package/dist/native/avatar-label.js.map +1 -0
- package/dist/native/box.android.d.ts +5 -0
- package/dist/native/box.android.d.ts.map +1 -0
- package/dist/native/box.android.js +7 -0
- package/dist/native/box.android.js.map +1 -0
- package/dist/native/box.d.ts +2 -0
- package/dist/native/box.d.ts.map +1 -0
- package/dist/native/box.ios.d.ts +10 -0
- package/dist/native/box.ios.d.ts.map +1 -0
- package/dist/native/box.ios.js +40 -0
- package/dist/native/box.ios.js.map +1 -0
- package/dist/native/box.js +3 -0
- package/dist/native/box.js.map +1 -0
- package/dist/native/button.android.d.ts +11 -0
- package/dist/native/button.android.d.ts.map +1 -0
- package/dist/native/button.android.js +31 -0
- package/dist/native/button.android.js.map +1 -0
- package/dist/native/button.ios.d.ts +13 -1
- package/dist/native/button.ios.d.ts.map +1 -1
- package/dist/native/button.ios.js +29 -1
- package/dist/native/button.ios.js.map +1 -1
- package/dist/native/checkbox.android.d.ts +7 -0
- package/dist/native/checkbox.android.d.ts.map +1 -0
- package/dist/native/checkbox.android.js +26 -0
- package/dist/native/checkbox.android.js.map +1 -0
- package/dist/native/checkbox.d.ts +7 -0
- package/dist/native/checkbox.d.ts.map +1 -0
- package/dist/native/checkbox.js +7 -0
- package/dist/native/checkbox.js.map +1 -0
- package/dist/native/collection-motion.d.ts +5 -0
- package/dist/native/collection-motion.d.ts.map +1 -0
- package/dist/native/collection-motion.js +157 -0
- package/dist/native/collection-motion.js.map +1 -0
- package/dist/native/combobox-editor.android.d.ts +3 -0
- package/dist/native/combobox-editor.android.d.ts.map +1 -0
- package/dist/native/combobox-editor.android.js +5 -0
- package/dist/native/combobox-editor.android.js.map +1 -0
- package/dist/native/combobox-editor.d.ts +4 -0
- package/dist/native/combobox-editor.d.ts.map +1 -0
- package/dist/native/combobox-editor.js +5 -0
- package/dist/native/combobox-editor.js.map +1 -0
- package/dist/native/composed-button.android.d.ts +4 -0
- package/dist/native/composed-button.android.d.ts.map +1 -0
- package/dist/native/composed-button.android.js +53 -0
- package/dist/native/composed-button.android.js.map +1 -0
- package/dist/native/composed-button.d.ts +3 -0
- package/dist/native/composed-button.d.ts.map +1 -0
- package/dist/native/composed-button.js +4 -0
- package/dist/native/composed-button.js.map +1 -0
- package/dist/native/date-format.android.d.ts +5 -0
- package/dist/native/date-format.android.d.ts.map +1 -0
- package/dist/native/date-format.android.js +39 -0
- package/dist/native/date-format.android.js.map +1 -0
- package/dist/native/date-format.d.ts +6 -0
- package/dist/native/date-format.d.ts.map +1 -0
- package/dist/native/date-format.ios.d.ts +5 -0
- package/dist/native/date-format.ios.d.ts.map +1 -0
- package/dist/native/date-format.ios.js +29 -0
- package/dist/native/date-format.ios.js.map +1 -0
- package/dist/native/date-format.js +8 -0
- package/dist/native/date-format.js.map +1 -0
- package/dist/native/dialog.android.d.ts +12 -0
- package/dist/native/dialog.android.d.ts.map +1 -0
- package/dist/native/dialog.android.js +46 -0
- package/dist/native/dialog.android.js.map +1 -0
- package/dist/native/dialog.d.ts +12 -0
- package/dist/native/dialog.d.ts.map +1 -0
- package/dist/native/dialog.ios.d.ts +12 -0
- package/dist/native/dialog.ios.d.ts.map +1 -0
- package/dist/native/dialog.ios.js +13 -0
- package/dist/native/dialog.ios.js.map +1 -0
- package/dist/native/dialog.js +4 -0
- package/dist/native/dialog.js.map +1 -0
- package/dist/native/dynamic-type.d.ts +15 -0
- package/dist/native/dynamic-type.d.ts.map +1 -0
- package/dist/native/dynamic-type.js +47 -0
- package/dist/native/dynamic-type.js.map +1 -0
- package/dist/native/file-access.d.ts +23 -0
- package/dist/native/file-access.d.ts.map +1 -0
- package/dist/native/file-access.js +55 -0
- package/dist/native/file-access.js.map +1 -0
- package/dist/native/file-picker.android.d.ts +3 -0
- package/dist/native/file-picker.android.d.ts.map +1 -0
- package/dist/native/file-picker.android.js +147 -0
- package/dist/native/file-picker.android.js.map +1 -0
- package/dist/native/file-picker.d.ts +4 -0
- package/dist/native/file-picker.d.ts.map +1 -0
- package/dist/native/file-picker.ios.d.ts +3 -0
- package/dist/native/file-picker.ios.d.ts.map +1 -0
- package/dist/native/file-picker.ios.js +152 -0
- package/dist/native/file-picker.ios.js.map +1 -0
- package/dist/native/file-picker.js +7 -0
- package/dist/native/file-picker.js.map +1 -0
- package/dist/native/flex-children.d.ts +4 -0
- package/dist/native/flex-children.d.ts.map +1 -0
- package/dist/native/flex-children.js +12 -0
- package/dist/native/flex-children.js.map +1 -0
- package/dist/native/flex-layout.android.d.ts +3 -1
- package/dist/native/flex-layout.android.d.ts.map +1 -1
- package/dist/native/flex-layout.android.js +9 -0
- package/dist/native/flex-layout.android.js.map +1 -1
- package/dist/native/flex-layout.ios.d.ts +14 -1
- package/dist/native/flex-layout.ios.d.ts.map +1 -1
- package/dist/native/flex-layout.ios.js +113 -0
- package/dist/native/flex-layout.ios.js.map +1 -1
- package/dist/native/image-effects.d.ts +11 -0
- package/dist/native/image-effects.d.ts.map +1 -0
- package/dist/native/image-effects.js +61 -0
- package/dist/native/image-effects.js.map +1 -0
- package/dist/native/input-action.d.ts +5 -0
- package/dist/native/input-action.d.ts.map +1 -0
- package/dist/native/input-action.js +13 -0
- package/dist/native/input-action.js.map +1 -0
- package/dist/native/keyboard-dismiss.android.d.ts +8 -0
- package/dist/native/keyboard-dismiss.android.d.ts.map +1 -0
- package/dist/native/keyboard-dismiss.android.js +9 -0
- package/dist/native/keyboard-dismiss.android.js.map +1 -0
- package/dist/native/keyboard-dismiss.d.ts +10 -0
- package/dist/native/keyboard-dismiss.d.ts.map +1 -0
- package/dist/native/keyboard-dismiss.ios.d.ts +8 -0
- package/dist/native/keyboard-dismiss.ios.d.ts.map +1 -0
- package/dist/native/keyboard-dismiss.ios.js +91 -0
- package/dist/native/keyboard-dismiss.ios.js.map +1 -0
- package/dist/native/keyboard-dismiss.js +6 -0
- package/dist/native/keyboard-dismiss.js.map +1 -0
- package/dist/native/label.android.d.ts +12 -0
- package/dist/native/label.android.d.ts.map +1 -0
- package/dist/native/label.android.js +19 -0
- package/dist/native/label.android.js.map +1 -0
- package/dist/native/label.ios.d.ts +14 -1
- package/dist/native/label.ios.d.ts.map +1 -1
- package/dist/native/label.ios.js +37 -1
- package/dist/native/label.ios.js.map +1 -1
- package/dist/native/measure-memo.d.ts +37 -0
- package/dist/native/measure-memo.d.ts.map +1 -0
- package/dist/native/measure-memo.js +82 -0
- package/dist/native/measure-memo.js.map +1 -0
- package/dist/native/motion-owner.d.ts +5 -0
- package/dist/native/motion-owner.d.ts.map +1 -0
- package/dist/native/motion-owner.js +58 -0
- package/dist/native/motion-owner.js.map +1 -0
- package/dist/native/motion-region.d.ts +7 -0
- package/dist/native/motion-region.d.ts.map +1 -0
- package/dist/native/motion-region.js +249 -0
- package/dist/native/motion-region.js.map +1 -0
- package/dist/native/motion-surface.d.ts +9 -0
- package/dist/native/motion-surface.d.ts.map +1 -0
- package/dist/native/motion-surface.js +229 -0
- package/dist/native/motion-surface.js.map +1 -0
- package/dist/native/platform-motion.d.ts +5 -0
- package/dist/native/platform-motion.d.ts.map +1 -0
- package/dist/native/platform-motion.js +90 -0
- package/dist/native/platform-motion.js.map +1 -0
- package/dist/native/press.d.ts +8 -2
- package/dist/native/press.d.ts.map +1 -1
- package/dist/native/press.js +58 -8
- package/dist/native/press.js.map +1 -1
- package/dist/native/progress.d.ts +7 -0
- package/dist/native/progress.d.ts.map +1 -0
- package/dist/native/progress.js +77 -0
- package/dist/native/progress.js.map +1 -0
- package/dist/native/screen.android.d.ts +6 -0
- package/dist/native/screen.android.d.ts.map +1 -0
- package/dist/native/screen.android.js +8 -0
- package/dist/native/screen.android.js.map +1 -0
- package/dist/native/screen.d.ts +2 -0
- package/dist/native/screen.d.ts.map +1 -0
- package/dist/native/screen.js +3 -0
- package/dist/native/screen.js.map +1 -0
- package/dist/native/scroll-motion.d.ts +12 -0
- package/dist/native/scroll-motion.d.ts.map +1 -0
- package/dist/native/scroll-motion.js +100 -0
- package/dist/native/scroll-motion.js.map +1 -0
- package/dist/native/section-scroll.d.ts +9 -0
- package/dist/native/section-scroll.d.ts.map +1 -0
- package/dist/native/section-scroll.js +69 -0
- package/dist/native/section-scroll.js.map +1 -0
- package/dist/native/segmented.d.ts +14 -0
- package/dist/native/segmented.d.ts.map +1 -0
- package/dist/native/segmented.js +86 -0
- package/dist/native/segmented.js.map +1 -0
- package/dist/native/sheet.android.d.ts +18 -0
- package/dist/native/sheet.android.d.ts.map +1 -0
- package/dist/native/sheet.android.js +16 -0
- package/dist/native/sheet.android.js.map +1 -0
- package/dist/native/sheet.d.ts +21 -0
- package/dist/native/sheet.d.ts.map +1 -0
- package/dist/native/sheet.ios.d.ts +19 -0
- package/dist/native/sheet.ios.d.ts.map +1 -0
- package/dist/native/sheet.ios.js +41 -0
- package/dist/native/sheet.ios.js.map +1 -0
- package/dist/native/sheet.js +17 -0
- package/dist/native/sheet.js.map +1 -0
- package/dist/native/surface-effects.d.ts +4 -0
- package/dist/native/surface-effects.d.ts.map +1 -0
- package/dist/native/surface-effects.js +31 -0
- package/dist/native/surface-effects.js.map +1 -0
- package/dist/native/tabs.android.d.ts +3 -0
- package/dist/native/tabs.android.d.ts.map +1 -0
- package/dist/native/tabs.android.js +29 -0
- package/dist/native/tabs.android.js.map +1 -0
- package/dist/native/tabs.d.ts +3 -0
- package/dist/native/tabs.d.ts.map +1 -0
- package/dist/native/tabs.js +4 -0
- package/dist/native/tabs.js.map +1 -0
- package/dist/native/text-field.android.d.ts +1 -0
- package/dist/native/text-field.android.d.ts.map +1 -1
- package/dist/native/text-field.android.js +13 -0
- package/dist/native/text-field.android.js.map +1 -1
- package/dist/native/text-field.ios.d.ts +9 -0
- package/dist/native/text-field.ios.d.ts.map +1 -0
- package/dist/native/text-field.ios.js +52 -0
- package/dist/native/text-field.ios.js.map +1 -0
- package/dist/native/text-view.ios.d.ts +7 -0
- package/dist/native/text-view.ios.d.ts.map +1 -0
- package/dist/native/text-view.ios.js +10 -0
- package/dist/native/text-view.ios.js.map +1 -0
- package/dist/native/toast.android.d.ts +4 -0
- package/dist/native/toast.android.d.ts.map +1 -0
- package/dist/native/toast.android.js +10 -0
- package/dist/native/toast.android.js.map +1 -0
- package/dist/native/toast.d.ts +4 -0
- package/dist/native/toast.d.ts.map +1 -0
- package/dist/native/toast.ios.d.ts +4 -0
- package/dist/native/toast.ios.d.ts.map +1 -0
- package/dist/native/toast.ios.js +8 -0
- package/dist/native/toast.ios.js.map +1 -0
- package/dist/native/toast.js +5 -0
- package/dist/native/toast.js.map +1 -0
- package/dist/native/visual-effects.d.ts +5 -0
- package/dist/native/visual-effects.d.ts.map +1 -0
- package/dist/native/visual-effects.js +126 -0
- package/dist/native/visual-effects.js.map +1 -0
- package/dist/vue/components/ChartPlot.d.ts +65 -0
- package/dist/vue/components/ChartPlot.d.ts.map +1 -0
- package/dist/vue/components/ChartPlot.js +100 -0
- package/dist/vue/components/ChartPlot.js.map +1 -0
- package/dist/vue/components/ChoiceControl.d.ts +114 -0
- package/dist/vue/components/ChoiceControl.d.ts.map +1 -0
- package/dist/vue/components/ChoiceControl.js +218 -0
- package/dist/vue/components/ChoiceControl.js.map +1 -0
- package/dist/vue/components/DateCalendar.d.ts +109 -0
- package/dist/vue/components/DateCalendar.d.ts.map +1 -0
- package/dist/vue/components/DateCalendar.js +98 -0
- package/dist/vue/components/DateCalendar.js.map +1 -0
- package/dist/vue/components/LoadingDecoration.d.ts +116 -0
- package/dist/vue/components/LoadingDecoration.d.ts.map +1 -0
- package/dist/vue/components/LoadingDecoration.js +34 -0
- package/dist/vue/components/LoadingDecoration.js.map +1 -0
- package/dist/vue/components/MAccordion.d.ts +119 -0
- package/dist/vue/components/MAccordion.d.ts.map +1 -0
- package/dist/vue/components/MAccordion.js +83 -0
- package/dist/vue/components/MAccordion.js.map +1 -0
- package/dist/vue/components/MAlert.d.ts +109 -0
- package/dist/vue/components/MAlert.d.ts.map +1 -0
- package/dist/vue/components/MAlert.js +126 -0
- package/dist/vue/components/MAlert.js.map +1 -0
- package/dist/vue/components/MAvatar.d.ts +80 -0
- package/dist/vue/components/MAvatar.d.ts.map +1 -0
- package/dist/vue/components/MAvatar.js +86 -0
- package/dist/vue/components/MAvatar.js.map +1 -0
- package/dist/vue/components/MBadge.d.ts +70 -0
- package/dist/vue/components/MBadge.d.ts.map +1 -0
- package/dist/vue/components/MBadge.js +30 -0
- package/dist/vue/components/MBadge.js.map +1 -0
- package/dist/vue/components/MButton.d.ts +212 -32
- package/dist/vue/components/MButton.d.ts.map +1 -1
- package/dist/vue/components/MButton.js +192 -20
- package/dist/vue/components/MButton.js.map +1 -1
- package/dist/vue/components/MCard.d.ts +113 -21
- package/dist/vue/components/MCard.d.ts.map +1 -1
- package/dist/vue/components/MCard.js +24 -6
- package/dist/vue/components/MCard.js.map +1 -1
- package/dist/vue/components/MCheckbox.d.ts +103 -0
- package/dist/vue/components/MCheckbox.d.ts.map +1 -0
- package/dist/vue/components/MCheckbox.js +26 -0
- package/dist/vue/components/MCheckbox.js.map +1 -0
- package/dist/vue/components/MChip.d.ts +117 -0
- package/dist/vue/components/MChip.d.ts.map +1 -0
- package/dist/vue/components/MChip.js +120 -0
- package/dist/vue/components/MChip.js.map +1 -0
- package/dist/vue/components/MCombobox.d.ts +279 -0
- package/dist/vue/components/MCombobox.d.ts.map +1 -0
- package/dist/vue/components/MCombobox.js +234 -0
- package/dist/vue/components/MCombobox.js.map +1 -0
- package/dist/vue/components/MDatePicker.d.ts +1350 -0
- package/dist/vue/components/MDatePicker.d.ts.map +1 -0
- package/dist/vue/components/MDatePicker.js +25 -0
- package/dist/vue/components/MDatePicker.js.map +1 -0
- package/dist/vue/components/MDialog.d.ts +100 -0
- package/dist/vue/components/MDialog.d.ts.map +1 -0
- package/dist/vue/components/MDialog.js +245 -0
- package/dist/vue/components/MDialog.js.map +1 -0
- package/dist/vue/components/MEmptyState.d.ts +117 -0
- package/dist/vue/components/MEmptyState.d.ts.map +1 -0
- package/dist/vue/components/MEmptyState.js +79 -0
- package/dist/vue/components/MEmptyState.js.map +1 -0
- package/dist/vue/components/MFilePicker.d.ts +112 -0
- package/dist/vue/components/MFilePicker.d.ts.map +1 -0
- package/dist/vue/components/MFilePicker.js +196 -0
- package/dist/vue/components/MFilePicker.js.map +1 -0
- package/dist/vue/components/MGrid.d.ts +165 -0
- package/dist/vue/components/MGrid.d.ts.map +1 -0
- package/dist/vue/components/MGrid.js +52 -0
- package/dist/vue/components/MGrid.js.map +1 -0
- package/dist/vue/components/MIcon.d.ts +75 -0
- package/dist/vue/components/MIcon.d.ts.map +1 -0
- package/dist/vue/components/MIcon.js +45 -0
- package/dist/vue/components/MIcon.js.map +1 -0
- package/dist/vue/components/MImage.d.ts +248 -0
- package/dist/vue/components/MImage.d.ts.map +1 -0
- package/dist/vue/components/MImage.js +157 -0
- package/dist/vue/components/MImage.js.map +1 -0
- package/dist/vue/components/MInput.d.ts +195 -50
- package/dist/vue/components/MInput.d.ts.map +1 -1
- package/dist/vue/components/MInput.js +134 -20
- package/dist/vue/components/MInput.js.map +1 -1
- package/dist/vue/components/MLink.d.ts +120 -0
- package/dist/vue/components/MLink.d.ts.map +1 -0
- package/dist/vue/components/MLink.js +76 -0
- package/dist/vue/components/MLink.js.map +1 -0
- package/dist/vue/components/MListItem.d.ts +106 -0
- package/dist/vue/components/MListItem.d.ts.map +1 -0
- package/dist/vue/components/MListItem.js +53 -0
- package/dist/vue/components/MListItem.js.map +1 -0
- package/dist/vue/components/MPopover.d.ts +106 -0
- package/dist/vue/components/MPopover.d.ts.map +1 -0
- package/dist/vue/components/MPopover.js +209 -0
- package/dist/vue/components/MPopover.js.map +1 -0
- package/dist/vue/components/MProgress.d.ts +122 -0
- package/dist/vue/components/MProgress.d.ts.map +1 -0
- package/dist/vue/components/MProgress.js +75 -0
- package/dist/vue/components/MProgress.js.map +1 -0
- package/dist/vue/components/MRadioGroup.d.ts +103 -0
- package/dist/vue/components/MRadioGroup.d.ts.map +1 -0
- package/dist/vue/components/MRadioGroup.js +57 -0
- package/dist/vue/components/MRadioGroup.js.map +1 -0
- package/dist/vue/components/MRangeSlider.d.ts +105 -0
- package/dist/vue/components/MRangeSlider.d.ts.map +1 -0
- package/dist/vue/components/MRangeSlider.js +107 -0
- package/dist/vue/components/MRangeSlider.js.map +1 -0
- package/dist/vue/components/MReveal.d.ts +73 -37
- package/dist/vue/components/MReveal.d.ts.map +1 -1
- package/dist/vue/components/MReveal.js +80 -37
- package/dist/vue/components/MReveal.js.map +1 -1
- package/dist/vue/components/MScreen.d.ts +42 -8
- package/dist/vue/components/MScreen.d.ts.map +1 -1
- package/dist/vue/components/MScreen.js +91 -6
- package/dist/vue/components/MScreen.js.map +1 -1
- package/dist/vue/components/MSegmentedControl.d.ts +95 -0
- package/dist/vue/components/MSegmentedControl.d.ts.map +1 -0
- package/dist/vue/components/MSegmentedControl.js +172 -0
- package/dist/vue/components/MSegmentedControl.js.map +1 -0
- package/dist/vue/components/MSelect.d.ts +140 -0
- package/dist/vue/components/MSelect.d.ts.map +1 -0
- package/dist/vue/components/MSelect.js +158 -0
- package/dist/vue/components/MSelect.js.map +1 -0
- package/dist/vue/components/MSeparator.d.ts +56 -0
- package/dist/vue/components/MSeparator.d.ts.map +1 -0
- package/dist/vue/components/MSeparator.js +36 -0
- package/dist/vue/components/MSeparator.js.map +1 -0
- package/dist/vue/components/MSheet.d.ts +116 -0
- package/dist/vue/components/MSheet.d.ts.map +1 -0
- package/dist/vue/components/MSheet.js +313 -0
- package/dist/vue/components/MSheet.js.map +1 -0
- package/dist/vue/components/MSkeleton.d.ts +89 -0
- package/dist/vue/components/MSkeleton.d.ts.map +1 -0
- package/dist/vue/components/MSkeleton.js +89 -0
- package/dist/vue/components/MSkeleton.js.map +1 -0
- package/dist/vue/components/MSlider.d.ts +8 -4
- package/dist/vue/components/MSlider.d.ts.map +1 -1
- package/dist/vue/components/MSlider.js +3 -2
- package/dist/vue/components/MSlider.js.map +1 -1
- package/dist/vue/components/MStack.d.ts +199 -0
- package/dist/vue/components/MStack.d.ts.map +1 -0
- package/dist/vue/components/MStack.js +62 -0
- package/dist/vue/components/MStack.js.map +1 -0
- package/dist/vue/components/MSwitch.d.ts +89 -0
- package/dist/vue/components/MSwitch.d.ts.map +1 -0
- package/dist/vue/components/MSwitch.js +173 -0
- package/dist/vue/components/MSwitch.js.map +1 -0
- package/dist/vue/components/MTabs.d.ts +101 -0
- package/dist/vue/components/MTabs.d.ts.map +1 -0
- package/dist/vue/components/MTabs.js +245 -0
- package/dist/vue/components/MTabs.js.map +1 -0
- package/dist/vue/components/MText.d.ts +61 -25
- package/dist/vue/components/MText.d.ts.map +1 -1
- package/dist/vue/components/MText.js +47 -19
- package/dist/vue/components/MText.js.map +1 -1
- package/dist/vue/components/MTimePicker.d.ts +655 -0
- package/dist/vue/components/MTimePicker.d.ts.map +1 -0
- package/dist/vue/components/MTimePicker.js +50 -0
- package/dist/vue/components/MTimePicker.js.map +1 -0
- package/dist/vue/components/MToast.d.ts +23 -0
- package/dist/vue/components/MToast.d.ts.map +1 -0
- package/dist/vue/components/MToast.js +242 -0
- package/dist/vue/components/MToast.js.map +1 -0
- package/dist/vue/components/MTooltip.d.ts +65 -0
- package/dist/vue/components/MTooltip.d.ts.map +1 -0
- package/dist/vue/components/MTooltip.js +35 -0
- package/dist/vue/components/MTooltip.js.map +1 -0
- package/dist/vue/components/MVirtualList.d.ts +3 -0
- package/dist/vue/components/MVirtualList.d.ts.map +1 -0
- package/dist/vue/components/MVirtualList.js +88 -0
- package/dist/vue/components/MVirtualList.js.map +1 -0
- package/dist/vue/components/configurator.d.ts +541 -0
- package/dist/vue/components/configurator.d.ts.map +1 -0
- package/dist/vue/components/configurator.js +24 -0
- package/dist/vue/components/configurator.js.map +1 -0
- package/dist/vue/components/discovery.d.ts +282 -0
- package/dist/vue/components/discovery.d.ts.map +1 -0
- package/dist/vue/components/discovery.js +67 -0
- package/dist/vue/components/discovery.js.map +1 -0
- package/dist/vue/components/layout.d.ts +230 -88
- package/dist/vue/components/layout.d.ts.map +1 -1
- package/dist/vue/components/layout.js +16 -9
- package/dist/vue/components/layout.js.map +1 -1
- package/dist/vue/components/navigation.d.ts +225 -0
- package/dist/vue/components/navigation.d.ts.map +1 -0
- package/dist/vue/components/navigation.js +16 -0
- package/dist/vue/components/navigation.js.map +1 -0
- package/dist/vue/components/wayfinding.d.ts +441 -0
- package/dist/vue/components/wayfinding.d.ts.map +1 -0
- package/dist/vue/components/wayfinding.js +37 -0
- package/dist/vue/components/wayfinding.js.map +1 -0
- package/dist/vue/components/workflows.d.ts +251 -0
- package/dist/vue/components/workflows.d.ts.map +1 -0
- package/dist/vue/components/workflows.js +35 -0
- package/dist/vue/components/workflows.js.map +1 -0
- package/dist/vue/index.d.ts +54 -9
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +105 -7
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/layers.d.ts +19 -0
- package/dist/vue/layers.d.ts.map +1 -0
- package/dist/vue/layers.js +26 -0
- package/dist/vue/layers.js.map +1 -0
- package/dist/vue/native-view.d.ts +6 -0
- package/dist/vue/native-view.d.ts.map +1 -0
- package/dist/vue/native-view.js +5 -0
- package/dist/vue/native-view.js.map +1 -0
- package/dist/vue/navigation.d.ts +4 -0
- package/dist/vue/navigation.d.ts.map +1 -0
- package/dist/vue/navigation.js +16 -0
- package/dist/vue/navigation.js.map +1 -0
- package/dist/vue/props.d.ts +12 -11
- package/dist/vue/props.d.ts.map +1 -1
- package/dist/vue/props.js +25 -10
- package/dist/vue/props.js.map +1 -1
- package/dist/vue/router-navigation.d.ts +25 -0
- package/dist/vue/router-navigation.d.ts.map +1 -0
- package/dist/vue/router-navigation.js +15 -0
- package/dist/vue/router-navigation.js.map +1 -0
- package/dist/vue/services.d.ts +16 -0
- package/dist/vue/services.d.ts.map +1 -0
- package/dist/vue/services.js +23 -0
- package/dist/vue/services.js.map +1 -0
- package/dist/vue/system-back.d.ts +11 -0
- package/dist/vue/system-back.d.ts.map +1 -0
- package/dist/vue/system-back.js +2 -0
- package/dist/vue/system-back.js.map +1 -0
- package/dist/vue/use-choice-paint.d.ts +9 -0
- package/dist/vue/use-choice-paint.d.ts.map +1 -0
- package/dist/vue/use-choice-paint.js +32 -0
- package/dist/vue/use-choice-paint.js.map +1 -0
- package/dist/vue/use-motion-region.d.ts +7 -0
- package/dist/vue/use-motion-region.d.ts.map +1 -0
- package/dist/vue/use-motion-region.js +28 -0
- package/dist/vue/use-motion-region.js.map +1 -0
- package/dist/vue/use-motion-surface.d.ts +8 -0
- package/dist/vue/use-motion-surface.d.ts.map +1 -0
- package/dist/vue/use-motion-surface.js +105 -0
- package/dist/vue/use-motion-surface.js.map +1 -0
- package/dist/vue/use-press.d.ts +1 -1
- package/dist/vue/use-press.d.ts.map +1 -1
- package/dist/vue/use-press.js +13 -5
- package/dist/vue/use-press.js.map +1 -1
- package/dist/vue/use-scroll-motion.d.ts +7 -0
- package/dist/vue/use-scroll-motion.d.ts.map +1 -0
- package/dist/vue/use-scroll-motion.js +30 -0
- package/dist/vue/use-scroll-motion.js.map +1 -0
- package/fonts/LICENSE +45 -0
- package/fonts/lucide.ttf +0 -0
- package/package.json +20 -4
- package/platforms/android/java/com/mavis/ui/Box.java +65 -0
- package/platforms/android/java/com/mavis/ui/ContentWidth.java +77 -0
- package/platforms/android/java/com/mavis/ui/FlexLayout.java +101 -4
- package/platforms/android/java/com/mavis/ui/MeasureMemo.java +145 -0
- package/platforms/android/java/com/mavis/ui/Screen.java +108 -0
- package/src/app-icons.ts +21 -0
- package/src/date-format.ts +2 -0
- package/src/files.ts +3 -0
- package/src/native/app-icons.android.ts +95 -0
- package/src/native/app-icons.ios.ts +74 -0
- package/src/native/app-icons.ts +12 -0
- package/src/native/appearance.android.ts +75 -0
- package/src/native/appearance.ts +33 -0
- package/src/native/avatar-image.ts +9 -0
- package/src/native/avatar-label.android.ts +14 -0
- package/src/native/avatar-label.ts +1 -0
- package/src/native/box.android.ts +11 -0
- package/src/native/box.ios.ts +61 -0
- package/src/native/box.ts +2 -0
- package/src/native/button.android.ts +38 -0
- package/src/native/button.ios.ts +53 -1
- package/src/native/checkbox.android.ts +35 -0
- package/src/native/checkbox.ts +9 -0
- package/src/native/collection-motion.ts +166 -0
- package/src/native/combobox-editor.android.ts +11 -0
- package/src/native/combobox-editor.ts +6 -0
- package/src/native/composed-button.android.ts +74 -0
- package/src/native/composed-button.ts +9 -0
- package/src/native/date-format.android.ts +72 -0
- package/src/native/date-format.ios.ts +54 -0
- package/src/native/date-format.ts +17 -0
- package/src/native/dialog.android.ts +56 -0
- package/src/native/dialog.ios.ts +23 -0
- package/src/native/dialog.ts +10 -0
- package/src/native/dynamic-type.ts +71 -0
- package/src/native/file-access.ts +71 -0
- package/src/native/file-picker.android.ts +191 -0
- package/src/native/file-picker.ios.ts +230 -0
- package/src/native/file-picker.ts +8 -0
- package/src/native/flex-children.ts +12 -0
- package/src/native/flex-layout.android.ts +12 -1
- package/src/native/flex-layout.ios.ts +148 -1
- package/src/native/image-effects.ts +71 -0
- package/src/native/input-action.ts +15 -0
- package/src/native/keyboard-dismiss.android.ts +17 -0
- package/src/native/keyboard-dismiss.ios.ts +124 -0
- package/src/native/keyboard-dismiss.ts +14 -0
- package/src/native/label.android.ts +27 -0
- package/src/native/label.ios.ts +54 -1
- package/src/native/measure-memo.ts +116 -0
- package/src/native/motion-owner.ts +66 -0
- package/src/native/motion-region.ts +293 -0
- package/src/native/motion-surface.ts +273 -0
- package/src/native/platform-motion.ts +103 -0
- package/src/native/press.ts +58 -10
- package/src/native/progress.ts +78 -0
- package/src/native/screen.android.ts +12 -0
- package/src/native/screen.ts +2 -0
- package/src/native/scroll-motion.ts +106 -0
- package/src/native/section-scroll.ts +81 -0
- package/src/native/segmented.ts +95 -0
- package/src/native/sheet.android.ts +24 -0
- package/src/native/sheet.ios.ts +52 -0
- package/src/native/sheet.ts +26 -0
- package/src/native/surface-effects.ts +33 -0
- package/src/native/tabs.android.ts +58 -0
- package/src/native/tabs.ts +8 -0
- package/src/native/text-field.android.ts +19 -0
- package/src/native/text-field.ios.ts +53 -0
- package/src/native/text-view.ios.ts +10 -0
- package/src/native/toast.android.ts +9 -0
- package/src/native/toast.ios.ts +13 -0
- package/src/native/toast.ts +6 -0
- package/src/native/visual-effects.ts +147 -0
- package/src/vue/components/ChartPlot.ts +114 -0
- package/src/vue/components/ChoiceControl.ts +265 -0
- package/src/vue/components/DateCalendar.ts +121 -0
- package/src/vue/components/LoadingDecoration.ts +38 -0
- package/src/vue/components/MAccordion.ts +123 -0
- package/src/vue/components/MAlert.ts +156 -0
- package/src/vue/components/MAvatar.ts +103 -0
- package/src/vue/components/MBadge.ts +34 -0
- package/src/vue/components/MButton.ts +255 -18
- package/src/vue/components/MCard.ts +44 -5
- package/src/vue/components/MCheckbox.ts +25 -0
- package/src/vue/components/MChip.ts +134 -0
- package/src/vue/components/MCombobox.ts +257 -0
- package/src/vue/components/MDatePicker.ts +25 -0
- package/src/vue/components/MDialog.ts +312 -0
- package/src/vue/components/MEmptyState.ts +96 -0
- package/src/vue/components/MFilePicker.ts +226 -0
- package/src/vue/components/MGrid.ts +86 -0
- package/src/vue/components/MIcon.ts +53 -0
- package/src/vue/components/MImage.ts +181 -0
- package/src/vue/components/MInput.ts +143 -21
- package/src/vue/components/MLink.ts +99 -0
- package/src/vue/components/MListItem.ts +66 -0
- package/src/vue/components/MPopover.ts +254 -0
- package/src/vue/components/MProgress.ts +94 -0
- package/src/vue/components/MRadioGroup.ts +64 -0
- package/src/vue/components/MRangeSlider.ts +125 -0
- package/src/vue/components/MReveal.ts +89 -48
- package/src/vue/components/MScreen.ts +122 -6
- package/src/vue/components/MSegmentedControl.ts +214 -0
- package/src/vue/components/MSelect.ts +185 -0
- package/src/vue/components/MSeparator.ts +40 -0
- package/src/vue/components/MSheet.ts +375 -0
- package/src/vue/components/MSkeleton.ts +102 -0
- package/src/vue/components/MSlider.ts +8 -2
- package/src/vue/components/MStack.ts +83 -0
- package/src/vue/components/MSwitch.ts +200 -0
- package/src/vue/components/MTabs.ts +302 -0
- package/src/vue/components/MText.ts +48 -10
- package/src/vue/components/MTimePicker.ts +57 -0
- package/src/vue/components/MToast.ts +289 -0
- package/src/vue/components/MTooltip.ts +39 -0
- package/src/vue/components/MVirtualList.ts +120 -0
- package/src/vue/components/configurator.ts +27 -0
- package/src/vue/components/discovery.ts +92 -0
- package/src/vue/components/layout.ts +24 -9
- package/src/vue/components/navigation.ts +19 -0
- package/src/vue/components/wayfinding.ts +46 -0
- package/src/vue/components/workflows.ts +38 -0
- package/src/vue/index.ts +217 -22
- package/src/vue/layers.ts +48 -0
- package/src/vue/native-view.ts +6 -0
- package/src/vue/navigation.ts +15 -0
- package/src/vue/props.ts +37 -12
- package/src/vue/router-navigation.ts +39 -0
- package/src/vue/services.ts +39 -0
- package/src/vue/system-back.ts +12 -0
- package/src/vue/use-choice-paint.ts +39 -0
- package/src/vue/use-motion-region.ts +29 -0
- package/src/vue/use-motion-surface.ts +115 -0
- package/src/vue/use-press.ts +13 -5
- package/src/vue/use-scroll-motion.ts +31 -0
- package/dist/native/input-description.android.d.ts +0 -4
- package/dist/native/input-description.android.d.ts.map +0 -1
- package/dist/native/input-description.android.js +0 -18
- package/dist/native/input-description.android.js.map +0 -1
- package/dist/theme/resolve.d.ts +0 -3
- package/dist/theme/resolve.d.ts.map +0 -1
- package/dist/theme/resolve.js +0 -8
- package/dist/theme/resolve.js.map +0 -1
- package/dist/theme/themes.d.ts +0 -6
- package/dist/theme/themes.d.ts.map +0 -1
- package/dist/theme/themes.js +0 -83
- package/dist/theme/themes.js.map +0 -1
- package/dist/theme/types.d.ts +0 -50
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme/types.js +0 -2
- package/dist/theme/types.js.map +0 -1
- package/dist/vue/global-components.d.ts +0 -21
- package/dist/vue/global-components.d.ts.map +0 -1
- package/dist/vue/global-components.js +0 -2
- package/dist/vue/global-components.js.map +0 -1
- package/dist/vue/layout-context.d.ts +0 -5
- package/dist/vue/layout-context.d.ts.map +0 -1
- package/dist/vue/layout-context.js +0 -7
- package/dist/vue/layout-context.js.map +0 -1
- package/dist/vue/text-content.d.ts +0 -4
- package/dist/vue/text-content.d.ts.map +0 -1
- package/dist/vue/text-content.js +0 -17
- package/dist/vue/text-content.js.map +0 -1
- package/dist/vue/theme.d.ts +0 -177
- package/dist/vue/theme.d.ts.map +0 -1
- package/dist/vue/theme.js +0 -17
- package/dist/vue/theme.js.map +0 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { useButtonAction, themeKey, type MavisThemeContext } from '@getcortexlabs/mavis-core/vue'
|
|
2
|
+
import {
|
|
3
|
+
provide,
|
|
4
|
+
defineComponent,
|
|
5
|
+
h,
|
|
6
|
+
onBeforeUnmount,
|
|
7
|
+
onActivated,
|
|
8
|
+
onDeactivated,
|
|
9
|
+
ref,
|
|
10
|
+
watch,
|
|
11
|
+
type PropType,
|
|
12
|
+
} from 'nativescript-vue'
|
|
13
|
+
import { Application, isIOS, Utils, type EventData, type View } from '@nativescript/core'
|
|
14
|
+
import { JoltTransition } from '@rafaelaugusto/jolt/vue'
|
|
15
|
+
import { toastProps, useMavisTheme, useToastHost } from '@getcortexlabs/mavis-core/vue'
|
|
16
|
+
import type { IconName, ToastTone } from '@getcortexlabs/mavis-core'
|
|
17
|
+
import { useLayerHost } from '../layers.js'
|
|
18
|
+
import { announceToast, toastReaderActive } from '../../native/toast'
|
|
19
|
+
import { observeCheckbox } from '../../native/checkbox'
|
|
20
|
+
import { MColumn, MBox } from './layout.js'
|
|
21
|
+
import { MText } from './MText.js'
|
|
22
|
+
import { MIcon } from './MIcon.js'
|
|
23
|
+
import { MButton } from './MButton.js'
|
|
24
|
+
|
|
25
|
+
const icons: Record<ToastTone, IconName> = {
|
|
26
|
+
success: 'circle-check',
|
|
27
|
+
error: 'circle-alert',
|
|
28
|
+
warning: 'triangle-alert',
|
|
29
|
+
info: 'info',
|
|
30
|
+
}
|
|
31
|
+
const tones = { success: 'success', error: 'danger', warning: 'warning', info: 'accent' } as const
|
|
32
|
+
|
|
33
|
+
type Bridge = {
|
|
34
|
+
context: MavisThemeContext
|
|
35
|
+
host: ReturnType<typeof useToastHost>
|
|
36
|
+
theme: ReturnType<typeof useMavisTheme>['theme']
|
|
37
|
+
props: Readonly<{
|
|
38
|
+
controller: import('@getcortexlabs/mavis-core').ToastController
|
|
39
|
+
closeLabel: string
|
|
40
|
+
}>
|
|
41
|
+
}
|
|
42
|
+
const ToastLayer = defineComponent({
|
|
43
|
+
name: 'MToastLayer',
|
|
44
|
+
props: { bridge: { type: Object as PropType<Bridge>, required: true }, covered: Boolean },
|
|
45
|
+
setup(props) {
|
|
46
|
+
provide(themeKey, props.bridge.context)
|
|
47
|
+
const { host, theme } = props.bridge
|
|
48
|
+
const width = ref(320)
|
|
49
|
+
const height = ref(600)
|
|
50
|
+
let enteredId: number | undefined
|
|
51
|
+
let announcedId: number | undefined
|
|
52
|
+
let root: View | undefined
|
|
53
|
+
let parent: View | undefined
|
|
54
|
+
let focus: ReturnType<typeof observeCheckbox> | undefined
|
|
55
|
+
const size = () => {
|
|
56
|
+
const bounds = parent?.getActualSize()
|
|
57
|
+
if (bounds) {
|
|
58
|
+
// The parent includes iOS safe areas even though Core lays this layer inside them.
|
|
59
|
+
const insets = isIOS ? parent?.getSafeAreaInsets() : undefined
|
|
60
|
+
const horizontal = insets
|
|
61
|
+
? Utils.layout.toDeviceIndependentPixels(insets.left + insets.right)
|
|
62
|
+
: 0
|
|
63
|
+
const vertical = insets
|
|
64
|
+
? Utils.layout.toDeviceIndependentPixels(insets.top + insets.bottom)
|
|
65
|
+
: 0
|
|
66
|
+
width.value = Math.max(0, Math.min(440, bounds.width - horizontal - 32))
|
|
67
|
+
height.value = Math.max(48, bounds.height - vertical - 32)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
let background = false
|
|
71
|
+
const suspend = () => {
|
|
72
|
+
background = true
|
|
73
|
+
host.pause('background', true)
|
|
74
|
+
}
|
|
75
|
+
const resume = () => {
|
|
76
|
+
background = false
|
|
77
|
+
if (root?.isLoaded) host.pause('background', false)
|
|
78
|
+
}
|
|
79
|
+
Application.on(Application.suspendEvent, suspend)
|
|
80
|
+
Application.on(Application.resumeEvent, resume)
|
|
81
|
+
function unload() {
|
|
82
|
+
parent?.off('layoutChanged', size)
|
|
83
|
+
focus?.dispose()
|
|
84
|
+
focus = undefined
|
|
85
|
+
root = parent = undefined
|
|
86
|
+
// NativeScript also unloads the page when the app enters the background.
|
|
87
|
+
if (!background) host.deactivate()
|
|
88
|
+
}
|
|
89
|
+
function announce() {
|
|
90
|
+
const item = host.snapshot.value.message
|
|
91
|
+
if (!root || props.covered || !item || item.id !== enteredId || item.id === announcedId)
|
|
92
|
+
return
|
|
93
|
+
announceToast(root, [item.title, item.message].filter(Boolean).join('. '))
|
|
94
|
+
announcedId = item.id
|
|
95
|
+
}
|
|
96
|
+
watch(
|
|
97
|
+
() => props.covered,
|
|
98
|
+
(covered) => {
|
|
99
|
+
host.pause('modal', covered)
|
|
100
|
+
if (!covered) announce()
|
|
101
|
+
},
|
|
102
|
+
{ immediate: true },
|
|
103
|
+
)
|
|
104
|
+
onBeforeUnmount(() => {
|
|
105
|
+
unload()
|
|
106
|
+
host.deactivate()
|
|
107
|
+
Application.off(Application.suspendEvent, suspend)
|
|
108
|
+
Application.off(Application.resumeEvent, resume)
|
|
109
|
+
})
|
|
110
|
+
return () => {
|
|
111
|
+
const { colors, radius } = theme.value
|
|
112
|
+
const { message, visible } = host.snapshot.value
|
|
113
|
+
const tone = message ? tones[message.tone] : 'accent'
|
|
114
|
+
return h(
|
|
115
|
+
'MavisBox',
|
|
116
|
+
{
|
|
117
|
+
width: width.value,
|
|
118
|
+
margin: 16,
|
|
119
|
+
verticalAlignment: 'top',
|
|
120
|
+
horizontalAlignment: 'center',
|
|
121
|
+
visibility: props.covered || !message ? 'collapse' : 'visible',
|
|
122
|
+
accessibilityHidden: props.covered || !message,
|
|
123
|
+
onLoaded: (event: EventData) => {
|
|
124
|
+
root = event.object as View
|
|
125
|
+
parent = root.parent as View
|
|
126
|
+
size()
|
|
127
|
+
parent?.on('layoutChanged', size)
|
|
128
|
+
host.pause('background', background)
|
|
129
|
+
host.pause('modal', props.covered)
|
|
130
|
+
host.activate()
|
|
131
|
+
},
|
|
132
|
+
onUnloaded: unload,
|
|
133
|
+
},
|
|
134
|
+
[
|
|
135
|
+
h(
|
|
136
|
+
JoltTransition,
|
|
137
|
+
{
|
|
138
|
+
appear: true,
|
|
139
|
+
enter: [{ opacity: [0, 1], y: [-8, 0] }, { duration: 180 }],
|
|
140
|
+
leave: [{ opacity: 0, y: -4 }, { duration: 120 }],
|
|
141
|
+
onBeforeEnter: () => {
|
|
142
|
+
if (message) host.begin(message.id)
|
|
143
|
+
},
|
|
144
|
+
onAfterEnter: () => {
|
|
145
|
+
if (!message) return
|
|
146
|
+
host.pause('reader', toastReaderActive())
|
|
147
|
+
enteredId = message.id
|
|
148
|
+
announce()
|
|
149
|
+
host.entered(message.id)
|
|
150
|
+
},
|
|
151
|
+
onBeforeLeave: (element: { nativeView?: View }) => {
|
|
152
|
+
if (element.nativeView) element.nativeView.accessibilityHidden = true
|
|
153
|
+
},
|
|
154
|
+
onAfterLeave: () => {
|
|
155
|
+
if (message) host.left(message.id)
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
default: () =>
|
|
160
|
+
message && visible
|
|
161
|
+
? h(
|
|
162
|
+
'MavisBox',
|
|
163
|
+
{
|
|
164
|
+
key: message.id,
|
|
165
|
+
columns: '40,*,44',
|
|
166
|
+
padding: 16,
|
|
167
|
+
borderWidth: 1,
|
|
168
|
+
borderColor: colors.border,
|
|
169
|
+
borderRadius: radius.lg,
|
|
170
|
+
backgroundColor: colors.surface,
|
|
171
|
+
style: isIOS ? { boxShadow: '0 6 18 0 rgba(26, 15, 25, 0.12)' } : undefined,
|
|
172
|
+
},
|
|
173
|
+
[
|
|
174
|
+
h(
|
|
175
|
+
MBox,
|
|
176
|
+
{
|
|
177
|
+
col: 0,
|
|
178
|
+
width: 40,
|
|
179
|
+
height: 40,
|
|
180
|
+
radius: 'full',
|
|
181
|
+
backgroundColor: colors.elevated,
|
|
182
|
+
verticalAlignment: 'top',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
default: () =>
|
|
186
|
+
h(MIcon, {
|
|
187
|
+
name: icons[message.tone],
|
|
188
|
+
tone,
|
|
189
|
+
horizontalAlignment: 'center',
|
|
190
|
+
verticalAlignment: 'middle',
|
|
191
|
+
}),
|
|
192
|
+
},
|
|
193
|
+
),
|
|
194
|
+
h(
|
|
195
|
+
'ScrollView',
|
|
196
|
+
{
|
|
197
|
+
col: 1,
|
|
198
|
+
marginLeft: 12,
|
|
199
|
+
style: { maxHeight: height.value - 34 },
|
|
200
|
+
},
|
|
201
|
+
[
|
|
202
|
+
h(
|
|
203
|
+
MColumn,
|
|
204
|
+
{
|
|
205
|
+
gap: 'xs',
|
|
206
|
+
verticalAlignment: 'top',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
default: () => [
|
|
210
|
+
message.title
|
|
211
|
+
? h(MText, {
|
|
212
|
+
text: message.title,
|
|
213
|
+
style: { fontWeight: '600' },
|
|
214
|
+
})
|
|
215
|
+
: null,
|
|
216
|
+
h(MText, {
|
|
217
|
+
text: message.message,
|
|
218
|
+
tone: message.title ? 'muted' : 'text',
|
|
219
|
+
}),
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
),
|
|
223
|
+
],
|
|
224
|
+
),
|
|
225
|
+
h(MButton, {
|
|
226
|
+
col: 2,
|
|
227
|
+
size: 'sm',
|
|
228
|
+
variant: 'ghost',
|
|
229
|
+
icon: 'x',
|
|
230
|
+
width: 44,
|
|
231
|
+
verticalAlignment: 'top',
|
|
232
|
+
accessibilityLabel: props.bridge.props.closeLabel,
|
|
233
|
+
style: { paddingLeft: 0, paddingRight: 0 },
|
|
234
|
+
onClick: () => props.bridge.props.controller.dismiss(message.id),
|
|
235
|
+
onLoaded: (event: EventData) => {
|
|
236
|
+
focus?.dispose()
|
|
237
|
+
focus = observeCheckbox(event.object as View, (value) =>
|
|
238
|
+
host.pause('focus', value),
|
|
239
|
+
)
|
|
240
|
+
},
|
|
241
|
+
onUnloaded: () => {
|
|
242
|
+
focus?.dispose()
|
|
243
|
+
focus = undefined
|
|
244
|
+
host.pause('focus', false)
|
|
245
|
+
},
|
|
246
|
+
}),
|
|
247
|
+
],
|
|
248
|
+
)
|
|
249
|
+
: null,
|
|
250
|
+
},
|
|
251
|
+
),
|
|
252
|
+
],
|
|
253
|
+
)
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
})
|
|
257
|
+
|
|
258
|
+
export const MToast = defineComponent({
|
|
259
|
+
name: 'MToast',
|
|
260
|
+
inheritAttrs: false,
|
|
261
|
+
props: toastProps,
|
|
262
|
+
setup(props) {
|
|
263
|
+
useButtonAction()
|
|
264
|
+
const layers = useLayerHost('MToast')
|
|
265
|
+
const host = useToastHost(() => props.controller)
|
|
266
|
+
const context = useMavisTheme()
|
|
267
|
+
const { theme } = context
|
|
268
|
+
let remove: (() => void) | undefined
|
|
269
|
+
const attach = () => {
|
|
270
|
+
if (!remove)
|
|
271
|
+
remove = layers.add({
|
|
272
|
+
component: ToastLayer,
|
|
273
|
+
props: { bridge: { host, theme, props, context } },
|
|
274
|
+
presented: ref(true),
|
|
275
|
+
modal: false,
|
|
276
|
+
})
|
|
277
|
+
}
|
|
278
|
+
const detach = () => {
|
|
279
|
+
remove?.()
|
|
280
|
+
remove = undefined
|
|
281
|
+
host.deactivate()
|
|
282
|
+
}
|
|
283
|
+
attach()
|
|
284
|
+
onActivated(attach)
|
|
285
|
+
onDeactivated(detach)
|
|
286
|
+
onBeforeUnmount(detach)
|
|
287
|
+
return () => null
|
|
288
|
+
},
|
|
289
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'nativescript-vue'
|
|
2
|
+
import { tooltipProps } from '@getcortexlabs/mavis-core/vue'
|
|
3
|
+
import { MPopover } from './MPopover.js'
|
|
4
|
+
import { MText } from './MText.js'
|
|
5
|
+
|
|
6
|
+
/** Native help uses an explicit touch/assistive trigger; it never depends on hover or long press. */
|
|
7
|
+
export const MTooltip = defineComponent({
|
|
8
|
+
name: 'MTooltip',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: tooltipProps,
|
|
11
|
+
setup(props, { attrs }) {
|
|
12
|
+
const open = ref(false)
|
|
13
|
+
return () => {
|
|
14
|
+
if (!props.text.trim() || !props.triggerLabel.trim())
|
|
15
|
+
throw new TypeError('Tooltip requires text and a trigger label.')
|
|
16
|
+
if (!Number.isFinite(props.delay) || props.delay < 0)
|
|
17
|
+
throw new RangeError('Tooltip delay must be nonnegative and finite.')
|
|
18
|
+
return h(
|
|
19
|
+
MPopover,
|
|
20
|
+
{
|
|
21
|
+
...attrs,
|
|
22
|
+
id: props.id,
|
|
23
|
+
open: open.value,
|
|
24
|
+
label: props.triggerLabel,
|
|
25
|
+
triggerLabel: props.triggerLabel,
|
|
26
|
+
icon: props.icon,
|
|
27
|
+
variant: props.variant,
|
|
28
|
+
disabled: props.disabled,
|
|
29
|
+
placement: props.placement,
|
|
30
|
+
width: 280,
|
|
31
|
+
'onUpdate:open': (value: boolean) => {
|
|
32
|
+
open.value = value
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
() => h(MText, { text: props.text }),
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
})
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { VirtualListComponent } from '@getcortexlabs/mavis-core/vue'
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
defineComponent,
|
|
5
|
+
h,
|
|
6
|
+
ListView,
|
|
7
|
+
mergeProps,
|
|
8
|
+
nextTick,
|
|
9
|
+
shallowRef,
|
|
10
|
+
watch,
|
|
11
|
+
} from 'nativescript-vue'
|
|
12
|
+
import { isAndroid, type EventData, type ListView as NativeList } from '@nativescript/core'
|
|
13
|
+
import { virtualListProps } from '@getcortexlabs/mavis-core/vue'
|
|
14
|
+
import {
|
|
15
|
+
choiceKey,
|
|
16
|
+
virtualKeys,
|
|
17
|
+
virtualWindow,
|
|
18
|
+
type VirtualItemSlot,
|
|
19
|
+
type VirtualListHandle,
|
|
20
|
+
} from '@getcortexlabs/mavis-core'
|
|
21
|
+
import { MText } from './MText.js'
|
|
22
|
+
|
|
23
|
+
const VirtualList = defineComponent({
|
|
24
|
+
name: 'MVirtualList',
|
|
25
|
+
inheritAttrs: false,
|
|
26
|
+
props: virtualListProps,
|
|
27
|
+
setup(props, { attrs, slots, expose }) {
|
|
28
|
+
const keys = computed(() => virtualKeys(props.items, props.itemKey))
|
|
29
|
+
const list = shallowRef<NativeList>()
|
|
30
|
+
let requested = props.initialIndex
|
|
31
|
+
function scrollToIndex(index: number) {
|
|
32
|
+
if (!Number.isInteger(index) || index < 0 || index >= props.items.length)
|
|
33
|
+
throw new RangeError('List index is out of range.')
|
|
34
|
+
requested = index
|
|
35
|
+
list.value?.scrollToIndex(index)
|
|
36
|
+
}
|
|
37
|
+
expose({ scrollToIndex } satisfies VirtualListHandle)
|
|
38
|
+
watch(
|
|
39
|
+
keys,
|
|
40
|
+
(next, previous) => {
|
|
41
|
+
const view = list.value
|
|
42
|
+
const first = view
|
|
43
|
+
? isAndroid
|
|
44
|
+
? view.android?.getFirstVisiblePosition()
|
|
45
|
+
: view.ios?.indexPathsForVisibleRows?.firstObject?.row
|
|
46
|
+
: requested
|
|
47
|
+
const key = previous[Math.max(0, first ?? requested)]
|
|
48
|
+
const index = key === undefined ? -1 : next.indexOf(key)
|
|
49
|
+
requested = Math.max(0, Math.min(index < 0 ? requested : index, next.length - 1))
|
|
50
|
+
void nextTick(() => {
|
|
51
|
+
if (next.length && view?.isLoaded) view.scrollToIndex(requested)
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
{ flush: 'pre' },
|
|
55
|
+
)
|
|
56
|
+
return () => {
|
|
57
|
+
virtualWindow(props.items.length, props.rowHeight, props.height, 0, props.overscan)
|
|
58
|
+
void keys.value
|
|
59
|
+
if (!props.label.trim()) throw new TypeError('Virtual lists require a label.')
|
|
60
|
+
if (!Number.isInteger(props.initialIndex) || props.initialIndex < 0)
|
|
61
|
+
throw new RangeError('initialIndex must be a nonnegative integer.')
|
|
62
|
+
if (!props.items.length)
|
|
63
|
+
return h(
|
|
64
|
+
'GridLayout',
|
|
65
|
+
mergeProps(attrs, {
|
|
66
|
+
id: props.id,
|
|
67
|
+
height: props.height,
|
|
68
|
+
accessibilityLabel: props.label,
|
|
69
|
+
}),
|
|
70
|
+
slots.empty?.() ?? [h(MText, { text: props.emptyLabel, tone: 'muted' })],
|
|
71
|
+
)
|
|
72
|
+
const content = h(
|
|
73
|
+
ListView,
|
|
74
|
+
mergeProps(attrs, {
|
|
75
|
+
id: props.id,
|
|
76
|
+
items: props.items,
|
|
77
|
+
rowHeight: props.rowHeight,
|
|
78
|
+
height: props.height,
|
|
79
|
+
separatorColor: 'transparent',
|
|
80
|
+
accessibilityLabel: props.label,
|
|
81
|
+
onLoaded: (event: EventData) => {
|
|
82
|
+
list.value = event.object as NativeList
|
|
83
|
+
// Core iOS coerces a pre-mount rowHeight to auto. Reapply it once the
|
|
84
|
+
// UITableView exists so its delegate and scroll geometry use fixed rows.
|
|
85
|
+
if (!isAndroid) {
|
|
86
|
+
list.value.rowHeight = 'auto'
|
|
87
|
+
list.value.rowHeight = props.rowHeight
|
|
88
|
+
}
|
|
89
|
+
void nextTick(() => {
|
|
90
|
+
if (list.value?.isLoaded)
|
|
91
|
+
list.value.scrollToIndex(Math.min(requested, props.items.length - 1))
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
onUnloaded: () => {
|
|
95
|
+
list.value = undefined
|
|
96
|
+
},
|
|
97
|
+
}),
|
|
98
|
+
{
|
|
99
|
+
default: ({ item, index }: VirtualItemSlot) =>
|
|
100
|
+
h('GridLayout', { height: props.rowHeight }, [
|
|
101
|
+
// NativeScript owns cell reuse. A keyed child remounts local state when its logical item changes.
|
|
102
|
+
h(
|
|
103
|
+
'GridLayout',
|
|
104
|
+
{ key: choiceKey(keys.value[index]!), height: props.rowHeight },
|
|
105
|
+
slots.default?.({ item, index, itemKey: keys.value[index]! }),
|
|
106
|
+
),
|
|
107
|
+
]),
|
|
108
|
+
},
|
|
109
|
+
)
|
|
110
|
+
// A flex parent's intrinsic/exact passes alternate width measure modes.
|
|
111
|
+
// Core iOS reloads UITableView when that spec changes, losing its scroll
|
|
112
|
+
// offset during cell reuse. The bounded grid gives the list one exact width.
|
|
113
|
+
return isAndroid
|
|
114
|
+
? content
|
|
115
|
+
: h('GridLayout', { rows: '*', columns: '*', height: props.height }, [content])
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
export const MVirtualList = VirtualList as unknown as VirtualListComponent
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Utils, type View } from '@nativescript/core'
|
|
2
|
+
import { createConfiguratorControls } from '@getcortexlabs/mavis-core/vue'
|
|
3
|
+
import { MText } from './MText.js'
|
|
4
|
+
import { MButton } from './MButton.js'
|
|
5
|
+
import { MInput } from './MInput.js'
|
|
6
|
+
import { MChip } from './MChip.js'
|
|
7
|
+
import { MCheckbox } from './MCheckbox.js'
|
|
8
|
+
import { MSheet } from './MSheet.js'
|
|
9
|
+
import { MColumn, MRow } from './layout.js'
|
|
10
|
+
|
|
11
|
+
export const { MNumberInput, MMultiSelect } = createConfiguratorControls(
|
|
12
|
+
{
|
|
13
|
+
Column: MColumn,
|
|
14
|
+
Row: MRow,
|
|
15
|
+
Text: MText,
|
|
16
|
+
Button: MButton,
|
|
17
|
+
Input: MInput,
|
|
18
|
+
Chip: MChip,
|
|
19
|
+
Checkbox: MCheckbox,
|
|
20
|
+
Sheet: MSheet,
|
|
21
|
+
focusTrigger: (component) => {
|
|
22
|
+
Utils.dismissKeyboard()
|
|
23
|
+
;(component as { $el?: { nativeView?: View } } | undefined)?.$el?.nativeView?.focus()
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
'native',
|
|
27
|
+
)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { h, type Component } from 'nativescript-vue'
|
|
2
|
+
import type { SwipeGestureEventData } from '@nativescript/core'
|
|
3
|
+
import {
|
|
4
|
+
createDiscoveryControls,
|
|
5
|
+
createCarousel,
|
|
6
|
+
createTreeView,
|
|
7
|
+
createDataTable,
|
|
8
|
+
} from '@getcortexlabs/mavis-core/vue'
|
|
9
|
+
import { MRow, MColumn, MBox } from './layout.js'
|
|
10
|
+
import { MText } from './MText.js'
|
|
11
|
+
import { MButton } from './MButton.js'
|
|
12
|
+
import { MIcon } from './MIcon.js'
|
|
13
|
+
import { MSlider } from './MSlider.js'
|
|
14
|
+
import { MCheckbox } from './MCheckbox.js'
|
|
15
|
+
import { MProgress } from './MProgress.js'
|
|
16
|
+
import { MReveal } from './MReveal.js'
|
|
17
|
+
import { DateCalendar } from './DateCalendar.js'
|
|
18
|
+
const ui = {
|
|
19
|
+
Row: MRow,
|
|
20
|
+
Column: MColumn,
|
|
21
|
+
Box: MBox,
|
|
22
|
+
Text: MText,
|
|
23
|
+
Button: MButton,
|
|
24
|
+
Icon: MIcon,
|
|
25
|
+
Slider: MSlider,
|
|
26
|
+
Checkbox: MCheckbox,
|
|
27
|
+
Progress: MProgress,
|
|
28
|
+
Reveal: MReveal,
|
|
29
|
+
Calendar: DateCalendar,
|
|
30
|
+
}
|
|
31
|
+
export const { MCalendar, MRating } = createDiscoveryControls(ui, 'native')
|
|
32
|
+
export const MTreeView = createTreeView(ui, 'native')
|
|
33
|
+
export const MCarousel = createCarousel(
|
|
34
|
+
{
|
|
35
|
+
...ui,
|
|
36
|
+
gestures: (move) => ({
|
|
37
|
+
onSwipe: (event: SwipeGestureEventData) => {
|
|
38
|
+
if (event.direction === 2) move(1)
|
|
39
|
+
else if (event.direction === 1) move(-1)
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
'native',
|
|
44
|
+
)
|
|
45
|
+
export const MDataTable = createDataTable(
|
|
46
|
+
{
|
|
47
|
+
...ui,
|
|
48
|
+
Checkbox: (props: Record<string, unknown>) =>
|
|
49
|
+
h(MCheckbox as Component, { ...props, labelHidden: true }),
|
|
50
|
+
table: (columns, header, rows, label) =>
|
|
51
|
+
h('ScrollView', { orientation: 'horizontal', accessibilityLabel: label }, [
|
|
52
|
+
h('StackLayout', { verticalAlignment: 'top', horizontalAlignment: 'left' }, [
|
|
53
|
+
h(
|
|
54
|
+
'GridLayout',
|
|
55
|
+
{
|
|
56
|
+
columns: columns.map((column) => column.width ?? 160).join(','),
|
|
57
|
+
rows: 'auto',
|
|
58
|
+
padding: 8,
|
|
59
|
+
},
|
|
60
|
+
header.map((content, index) =>
|
|
61
|
+
h('StackLayout', { col: index, padding: 8, verticalAlignment: 'middle' }, [content]),
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
...rows.map((row) =>
|
|
65
|
+
h(
|
|
66
|
+
'GridLayout',
|
|
67
|
+
{
|
|
68
|
+
key: row.key,
|
|
69
|
+
columns: columns.map((column) => column.width ?? 160).join(','),
|
|
70
|
+
rows: 'auto',
|
|
71
|
+
padding: 8,
|
|
72
|
+
},
|
|
73
|
+
row.cells.map((content, index) =>
|
|
74
|
+
h('StackLayout', { col: index, padding: 8, verticalAlignment: 'middle' }, [
|
|
75
|
+
columns[index]!.label
|
|
76
|
+
? h(MText, {
|
|
77
|
+
text: columns[index]!.label,
|
|
78
|
+
variant: 'caption',
|
|
79
|
+
tone: 'muted',
|
|
80
|
+
align: columns[index]!.align === 'end' ? 'right' : 'left',
|
|
81
|
+
})
|
|
82
|
+
: null,
|
|
83
|
+
content,
|
|
84
|
+
]),
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
]),
|
|
89
|
+
]),
|
|
90
|
+
},
|
|
91
|
+
'native',
|
|
92
|
+
)
|
|
@@ -3,13 +3,17 @@ import {
|
|
|
3
3
|
columnProps,
|
|
4
4
|
useMavisTheme,
|
|
5
5
|
layoutDirection,
|
|
6
|
-
|
|
6
|
+
useLayoutShrink,
|
|
7
|
+
motionBoxProps,
|
|
7
8
|
} from '@getcortexlabs/mavis-core/vue'
|
|
8
9
|
import { defineComponent, h, mergeProps, provide, registerElement } from 'nativescript-vue'
|
|
9
10
|
import { resolveSpace } from '@getcortexlabs/mavis-core'
|
|
10
|
-
import {
|
|
11
|
-
import { MavisFlexLayout } from '../../native/flex-layout
|
|
11
|
+
import { boxStyle } from '../props.js'
|
|
12
|
+
import { MavisFlexLayout } from '../../native/flex-layout'
|
|
13
|
+
import { MavisBox } from '../../native/box'
|
|
12
14
|
import { useNativeViewAttrs } from '../accessibility.js'
|
|
15
|
+
import { useMotionRegion } from '../use-motion-region.js'
|
|
16
|
+
import { useMotionSurface } from '../use-motion-surface.js'
|
|
13
17
|
|
|
14
18
|
export type { Align, Justify } from '@getcortexlabs/mavis-core/vue'
|
|
15
19
|
|
|
@@ -17,6 +21,7 @@ registerElement('MavisFlexLayout', () => MavisFlexLayout, {
|
|
|
17
21
|
// NSVViewFlags.LAYOUT_VIEW is a const enum with no runtime export.
|
|
18
22
|
viewFlags: 4,
|
|
19
23
|
})
|
|
24
|
+
registerElement('MavisBox', () => MavisBox, { viewFlags: 4 })
|
|
20
25
|
|
|
21
26
|
const alignment = {
|
|
22
27
|
start: 'flex-start',
|
|
@@ -38,9 +43,10 @@ function createLayout(name: string, direction: 'row' | 'column') {
|
|
|
38
43
|
inheritAttrs: false,
|
|
39
44
|
props: direction === 'row' ? rowProps : columnProps,
|
|
40
45
|
setup(props, { attrs, slots }) {
|
|
46
|
+
const region = useMotionRegion(() => props.motionRegion)
|
|
41
47
|
const { theme } = useMavisTheme()
|
|
42
48
|
const nativeAttrs = useNativeViewAttrs(props)
|
|
43
|
-
const shrink =
|
|
49
|
+
const shrink = useLayoutShrink()
|
|
44
50
|
provide(layoutDirection, direction)
|
|
45
51
|
return () =>
|
|
46
52
|
h(
|
|
@@ -48,7 +54,7 @@ function createLayout(name: string, direction: 'row' | 'column') {
|
|
|
48
54
|
mergeProps(
|
|
49
55
|
{
|
|
50
56
|
style: {
|
|
51
|
-
...boxStyle(theme.value, props, shrink),
|
|
57
|
+
...boxStyle(theme.value, props, shrink.value),
|
|
52
58
|
flexDirection: direction,
|
|
53
59
|
alignItems: alignment[props.align],
|
|
54
60
|
justifyContent: distribution[props.justify],
|
|
@@ -58,6 +64,7 @@ function createLayout(name: string, direction: 'row' | 'column') {
|
|
|
58
64
|
},
|
|
59
65
|
nativeAttrs(),
|
|
60
66
|
attrs,
|
|
67
|
+
region,
|
|
61
68
|
),
|
|
62
69
|
slots.default?.(),
|
|
63
70
|
)
|
|
@@ -72,15 +79,23 @@ export const MColumn = createLayout('MColumn', 'column')
|
|
|
72
79
|
export const MBox = defineComponent({
|
|
73
80
|
name: 'MBox',
|
|
74
81
|
inheritAttrs: false,
|
|
75
|
-
props:
|
|
82
|
+
props: motionBoxProps,
|
|
76
83
|
setup(props, { attrs, slots }) {
|
|
84
|
+
const region = useMotionRegion(() => props.motionRegion)
|
|
85
|
+
const surface = useMotionSurface(() => props.motionSurface)
|
|
77
86
|
const { theme } = useMavisTheme()
|
|
78
87
|
const nativeAttrs = useNativeViewAttrs(props)
|
|
79
|
-
const shrink =
|
|
88
|
+
const shrink = useLayoutShrink()
|
|
80
89
|
return () =>
|
|
81
90
|
h(
|
|
82
|
-
'
|
|
83
|
-
mergeProps(
|
|
91
|
+
'MavisBox',
|
|
92
|
+
mergeProps(
|
|
93
|
+
{ style: boxStyle(theme.value, props, shrink.value) },
|
|
94
|
+
nativeAttrs(),
|
|
95
|
+
attrs,
|
|
96
|
+
region,
|
|
97
|
+
{ onLoaded: surface.onLoaded, onUnloaded: surface.onUnloaded },
|
|
98
|
+
),
|
|
84
99
|
slots.default?.(),
|
|
85
100
|
)
|
|
86
101
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createMenu, createNavigationControls } from '@getcortexlabs/mavis-core/vue'
|
|
2
|
+
import { MPopover } from './MPopover.js'
|
|
3
|
+
import { MRow, MColumn } from './layout.js'
|
|
4
|
+
import { MButton } from './MButton.js'
|
|
5
|
+
import { MText } from './MText.js'
|
|
6
|
+
import { MBadge } from './MBadge.js'
|
|
7
|
+
import { MSeparator } from './MSeparator.js'
|
|
8
|
+
|
|
9
|
+
export const { MAppBar, MTabBar } = createNavigationControls(
|
|
10
|
+
{ Row: MRow, Column: MColumn, Text: MText, Button: MButton, Badge: MBadge },
|
|
11
|
+
'native',
|
|
12
|
+
)
|
|
13
|
+
export const MMenu = createMenu({
|
|
14
|
+
Popover: MPopover,
|
|
15
|
+
Column: MColumn,
|
|
16
|
+
Text: MText,
|
|
17
|
+
Button: MButton,
|
|
18
|
+
Separator: MSeparator,
|
|
19
|
+
})
|