@getcortexlabs/mavis 0.1.0-alpha.3 → 0.1.0-alpha.5
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/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/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.ios.d.ts.map +1 -1
- package/dist/native/box.ios.js +16 -1
- package/dist/native/box.ios.js.map +1 -1
- package/dist/native/button.ios.d.ts +9 -1
- package/dist/native/button.ios.d.ts.map +1 -1
- package/dist/native/button.ios.js +17 -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/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/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-layout.ios.d.ts +5 -0
- package/dist/native/flex-layout.ios.d.ts.map +1 -1
- package/dist/native/flex-layout.ios.js +63 -2
- package/dist/native/flex-layout.ios.js.map +1 -1
- 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.ios.d.ts.map +1 -1
- package/dist/native/keyboard-dismiss.ios.js +3 -0
- package/dist/native/keyboard-dismiss.ios.js.map +1 -1
- 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 +10 -1
- package/dist/native/label.ios.d.ts.map +1 -1
- package/dist/native/label.ios.js +25 -1
- package/dist/native/label.ios.js.map +1 -1
- 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 +53 -0
- package/dist/native/motion-owner.js.map +1 -0
- package/dist/native/motion-region.d.ts +6 -0
- package/dist/native/motion-region.d.ts.map +1 -0
- package/dist/native/motion-region.js +199 -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 +137 -0
- package/dist/native/motion-surface.js.map +1 -0
- package/dist/native/press.d.ts +5 -2
- package/dist/native/press.d.ts.map +1 -1
- package/dist/native/press.js +52 -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/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/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 +5 -1
- package/dist/native/sheet.android.d.ts.map +1 -1
- package/dist/native/sheet.android.js +2 -2
- package/dist/native/sheet.android.js.map +1 -1
- package/dist/native/sheet.d.ts +5 -1
- package/dist/native/sheet.d.ts.map +1 -1
- package/dist/native/sheet.ios.d.ts +5 -1
- package/dist/native/sheet.ios.d.ts.map +1 -1
- package/dist/native/sheet.ios.js +12 -3
- package/dist/native/sheet.ios.js.map +1 -1
- package/dist/native/sheet.js +2 -2
- package/dist/native/sheet.js.map +1 -1
- 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/vue/components/ChoiceControl.d.ts +111 -0
- package/dist/vue/components/ChoiceControl.d.ts.map +1 -0
- package/dist/vue/components/ChoiceControl.js +196 -0
- package/dist/vue/components/ChoiceControl.js.map +1 -0
- package/dist/vue/components/DateCalendar.d.ts +94 -0
- package/dist/vue/components/DateCalendar.d.ts.map +1 -0
- package/dist/vue/components/DateCalendar.js +96 -0
- package/dist/vue/components/DateCalendar.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 +126 -32
- package/dist/vue/components/MButton.d.ts.map +1 -1
- package/dist/vue/components/MButton.js +129 -11
- package/dist/vue/components/MButton.js.map +1 -1
- package/dist/vue/components/MCard.d.ts +70 -24
- package/dist/vue/components/MCard.d.ts.map +1 -1
- package/dist/vue/components/MCard.js +14 -4
- 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 +1254 -0
- package/dist/vue/components/MDatePicker.d.ts.map +1 -0
- package/dist/vue/components/MDatePicker.js +35 -0
- package/dist/vue/components/MDatePicker.js.map +1 -0
- package/dist/vue/components/MDialog.d.ts +97 -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/MIcon.d.ts +5 -3
- package/dist/vue/components/MIcon.d.ts.map +1 -1
- package/dist/vue/components/MInput.d.ts +178 -51
- package/dist/vue/components/MInput.d.ts.map +1 -1
- package/dist/vue/components/MInput.js +88 -14
- package/dist/vue/components/MInput.js.map +1 -1
- package/dist/vue/components/MListItem.d.ts +104 -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/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/MReveal.d.ts +75 -39
- package/dist/vue/components/MReveal.d.ts.map +1 -1
- package/dist/vue/components/MReveal.js +5 -7
- package/dist/vue/components/MReveal.js.map +1 -1
- package/dist/vue/components/MScreen.d.ts +21 -6
- package/dist/vue/components/MScreen.d.ts.map +1 -1
- package/dist/vue/components/MScreen.js +19 -4
- 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 +26 -14
- package/dist/vue/components/MSheet.d.ts.map +1 -1
- package/dist/vue/components/MSheet.js +66 -34
- package/dist/vue/components/MSheet.js.map +1 -1
- package/dist/vue/components/MSkeleton.d.ts +78 -0
- package/dist/vue/components/MSkeleton.d.ts.map +1 -0
- package/dist/vue/components/MSkeleton.js +87 -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 +2 -1
- package/dist/vue/components/MSlider.js.map +1 -1
- 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 +163 -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 +51 -26
- package/dist/vue/components/MText.d.ts.map +1 -1
- package/dist/vue/components/MText.js +43 -17
- package/dist/vue/components/MText.js.map +1 -1
- 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/layout.d.ts +206 -97
- package/dist/vue/components/layout.d.ts.map +1 -1
- package/dist/vue/components/layout.js +6 -4
- package/dist/vue/components/layout.js.map +1 -1
- 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 +29 -3
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +56 -4
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/layers.d.ts +2 -0
- package/dist/vue/layers.d.ts.map +1 -1
- package/dist/vue/layers.js.map +1 -1
- package/dist/vue/reveal-motion.d.ts +13 -0
- package/dist/vue/reveal-motion.d.ts.map +1 -0
- package/dist/vue/reveal-motion.js +55 -0
- package/dist/vue/reveal-motion.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 +76 -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 +12 -4
- 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/package.json +3 -3
- package/platforms/android/java/com/mavis/ui/Box.java +3 -1
- package/platforms/android/java/com/mavis/ui/ContentWidth.java +77 -0
- package/platforms/android/java/com/mavis/ui/FlexLayout.java +5 -1
- package/src/files.ts +3 -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.ios.ts +21 -1
- package/src/native/button.ios.ts +40 -2
- package/src/native/checkbox.android.ts +35 -0
- package/src/native/checkbox.ts +9 -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/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-layout.ios.ts +74 -2
- package/src/native/input-action.ts +15 -0
- package/src/native/keyboard-dismiss.ios.ts +2 -0
- package/src/native/label.android.ts +27 -0
- package/src/native/label.ios.ts +40 -1
- package/src/native/motion-owner.ts +59 -0
- package/src/native/motion-region.ts +213 -0
- package/src/native/motion-surface.ts +162 -0
- package/src/native/press.ts +52 -10
- package/src/native/progress.ts +78 -0
- package/src/native/scroll-motion.ts +106 -0
- package/src/native/segmented.ts +95 -0
- package/src/native/sheet.android.ts +2 -2
- package/src/native/sheet.ios.ts +12 -3
- package/src/native/sheet.ts +2 -2
- 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/vue/components/ChoiceControl.ts +238 -0
- package/src/vue/components/DateCalendar.ts +117 -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 +176 -9
- package/src/vue/components/MCard.ts +23 -3
- 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 +33 -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/MInput.ts +96 -12
- package/src/vue/components/MListItem.ts +66 -0
- package/src/vue/components/MProgress.ts +94 -0
- package/src/vue/components/MRadioGroup.ts +64 -0
- package/src/vue/components/MReveal.ts +6 -7
- package/src/vue/components/MScreen.ts +21 -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 +83 -43
- package/src/vue/components/MSkeleton.ts +100 -0
- package/src/vue/components/MSlider.ts +7 -1
- package/src/vue/components/MSwitch.ts +187 -0
- package/src/vue/components/MTabs.ts +302 -0
- package/src/vue/components/MText.ts +37 -6
- package/src/vue/components/MToast.ts +289 -0
- package/src/vue/components/layout.ts +6 -3
- package/src/vue/components/workflows.ts +38 -0
- package/src/vue/index.ts +93 -2
- package/src/vue/layers.ts +2 -0
- package/src/vue/reveal-motion.ts +61 -0
- package/src/vue/use-motion-region.ts +29 -0
- package/src/vue/use-motion-surface.ts +84 -0
- package/src/vue/use-press.ts +12 -4
- 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,38 @@
|
|
|
1
|
+
import { createWorkflows } from '@getcortexlabs/mavis-core/vue'
|
|
2
|
+
import { MColumn, MRow } from './layout.js'
|
|
3
|
+
import { MText } from './MText.js'
|
|
4
|
+
import { MButton } from './MButton.js'
|
|
5
|
+
|
|
6
|
+
import { isAndroid, type View } from '@nativescript/core'
|
|
7
|
+
|
|
8
|
+
function focused(root: View): View | undefined {
|
|
9
|
+
if (isAndroid ? root.android?.isFocused() : root.ios?.isFirstResponder) return root
|
|
10
|
+
let match: View | undefined
|
|
11
|
+
root.eachChildView((child) => {
|
|
12
|
+
match = focused(child)
|
|
13
|
+
return !match
|
|
14
|
+
})
|
|
15
|
+
return match
|
|
16
|
+
}
|
|
17
|
+
function preserveFocus(instance: unknown, currentId: string) {
|
|
18
|
+
const root = (instance as { $el?: { nativeView?: View } } | undefined)?.$el?.nativeView
|
|
19
|
+
const previous = root && focused(root)
|
|
20
|
+
if (!root || !previous) return () => {}
|
|
21
|
+
return () => {
|
|
22
|
+
if (!root.isLoaded || (previous.isLoaded && previous.isEnabled)) return
|
|
23
|
+
const page = root.page
|
|
24
|
+
if (
|
|
25
|
+
!page ||
|
|
26
|
+
page.frame?.currentPage !== page ||
|
|
27
|
+
(!isAndroid && page.ios?.presentedViewController)
|
|
28
|
+
)
|
|
29
|
+
return
|
|
30
|
+
const active = focused(page)
|
|
31
|
+
if (!active || active === previous) root.getViewById<View>(currentId)?.focus()
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const { MFormGroup, MFormErrors, MSteps, MPagination } = createWorkflows(
|
|
36
|
+
{ Column: MColumn, Row: MRow, Text: MText, Button: MButton, preserveFocus },
|
|
37
|
+
'native',
|
|
38
|
+
)
|
package/src/vue/index.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { MDatePicker, MDateRangePicker } from './components/MDatePicker.js'
|
|
2
|
+
import { MCombobox } from './components/MCombobox.js'
|
|
3
|
+
import { MFilePicker } from './components/MFilePicker.js'
|
|
4
|
+
import { MFormGroup, MFormErrors, MSteps, MPagination } from './components/workflows.js'
|
|
5
|
+
import { MChip } from './components/MChip.js'
|
|
6
|
+
import { MEmptyState } from './components/MEmptyState.js'
|
|
1
7
|
import type { App } from 'nativescript-vue'
|
|
2
8
|
import {
|
|
9
|
+
MThemeProvider,
|
|
10
|
+
MSpan,
|
|
3
11
|
createThemeContext,
|
|
12
|
+
installAppToast,
|
|
4
13
|
themeKey,
|
|
5
14
|
type ThemeContextOptions,
|
|
6
15
|
} from '@getcortexlabs/mavis-core/vue'
|
|
@@ -10,6 +19,22 @@ import { MBox, MRow, MColumn } from './components/layout.js'
|
|
|
10
19
|
import { MCard } from './components/MCard.js'
|
|
11
20
|
import { MText } from './components/MText.js'
|
|
12
21
|
import { MButton } from './components/MButton.js'
|
|
22
|
+
import { MToast } from './components/MToast.js'
|
|
23
|
+
import { MDialog } from './components/MDialog.js'
|
|
24
|
+
import { MListItem } from './components/MListItem.js'
|
|
25
|
+
import { MSeparator } from './components/MSeparator.js'
|
|
26
|
+
import { MAvatar } from './components/MAvatar.js'
|
|
27
|
+
import { MBadge } from './components/MBadge.js'
|
|
28
|
+
import { MSkeleton } from './components/MSkeleton.js'
|
|
29
|
+
import { MProgress } from './components/MProgress.js'
|
|
30
|
+
import { MAccordion } from './components/MAccordion.js'
|
|
31
|
+
import { MSegmentedControl } from './components/MSegmentedControl.js'
|
|
32
|
+
import { MAlert } from './components/MAlert.js'
|
|
33
|
+
import { MTabs } from './components/MTabs.js'
|
|
34
|
+
import { MSelect } from './components/MSelect.js'
|
|
35
|
+
import { MRadioGroup } from './components/MRadioGroup.js'
|
|
36
|
+
import { MCheckbox } from './components/MCheckbox.js'
|
|
37
|
+
import { MSwitch } from './components/MSwitch.js'
|
|
13
38
|
import { MSlider } from './components/MSlider.js'
|
|
14
39
|
import { MInput } from './components/MInput.js'
|
|
15
40
|
import { MIcon } from './components/MIcon.js'
|
|
@@ -18,6 +43,8 @@ import { MSheet } from './components/MSheet.js'
|
|
|
18
43
|
import { systemBackKey, type ClaimSystemBack, type SystemBackClaimant } from './system-back.js'
|
|
19
44
|
|
|
20
45
|
export {
|
|
46
|
+
MThemeProvider,
|
|
47
|
+
MSpan,
|
|
21
48
|
MScreen,
|
|
22
49
|
MBox,
|
|
23
50
|
MRow,
|
|
@@ -26,12 +53,44 @@ export {
|
|
|
26
53
|
MText,
|
|
27
54
|
MButton,
|
|
28
55
|
MSlider,
|
|
56
|
+
MSwitch,
|
|
57
|
+
MCheckbox,
|
|
58
|
+
MRadioGroup,
|
|
59
|
+
MSelect,
|
|
60
|
+
MToast,
|
|
61
|
+
MDialog,
|
|
62
|
+
MTabs,
|
|
63
|
+
MSkeleton,
|
|
64
|
+
MChip,
|
|
65
|
+
MEmptyState,
|
|
66
|
+
MProgress,
|
|
67
|
+
MAccordion,
|
|
68
|
+
MSegmentedControl,
|
|
69
|
+
MAlert,
|
|
70
|
+
MListItem,
|
|
71
|
+
MSeparator,
|
|
72
|
+
MAvatar,
|
|
73
|
+
MBadge,
|
|
29
74
|
MInput,
|
|
30
75
|
MIcon,
|
|
31
76
|
MReveal,
|
|
32
77
|
MSheet,
|
|
78
|
+
MDatePicker,
|
|
79
|
+
MDateRangePicker,
|
|
80
|
+
MCombobox,
|
|
81
|
+
MFilePicker,
|
|
82
|
+
MFormGroup,
|
|
83
|
+
MFormErrors,
|
|
84
|
+
MSteps,
|
|
85
|
+
MPagination,
|
|
33
86
|
}
|
|
34
|
-
export {
|
|
87
|
+
export {
|
|
88
|
+
useMavisTheme,
|
|
89
|
+
useToast,
|
|
90
|
+
useFormController,
|
|
91
|
+
useFormField,
|
|
92
|
+
useFileSelection,
|
|
93
|
+
} from '@getcortexlabs/mavis-core/vue'
|
|
35
94
|
export type {
|
|
36
95
|
MavisThemeContext,
|
|
37
96
|
Appearance,
|
|
@@ -44,6 +103,7 @@ export type {} from '@getcortexlabs/mavis-core/vue'
|
|
|
44
103
|
export type { SystemBackClaimant, ClaimSystemBack }
|
|
45
104
|
|
|
46
105
|
export type MavisOptions = Omit<ThemeContextOptions, 'source'> & {
|
|
106
|
+
toast?: { closeLabel?: string }
|
|
47
107
|
/** Lets a router hand the Android back press to an open sheet first, e.g. vue-router-ns `claimSystemBack`. */
|
|
48
108
|
claimSystemBack?: ClaimSystemBack
|
|
49
109
|
}
|
|
@@ -52,12 +112,15 @@ export type MavisOptions = Omit<ThemeContextOptions, 'source'> & {
|
|
|
52
112
|
export function createMavis(options: MavisOptions = {}) {
|
|
53
113
|
return {
|
|
54
114
|
install(app: App) {
|
|
55
|
-
|
|
115
|
+
installAppToast(app, options.toast)
|
|
116
|
+
const { claimSystemBack, toast: _toast, ...theme } = options
|
|
56
117
|
const context = createThemeContext({ ...theme, source: systemAppearance() })
|
|
57
118
|
app.provide(themeKey, context)
|
|
58
119
|
app.provide(systemBackKey, claimSystemBack)
|
|
59
120
|
app.onUnmount(() => context.dispose())
|
|
60
121
|
for (const [name, component] of Object.entries({
|
|
122
|
+
MThemeProvider,
|
|
123
|
+
MSpan,
|
|
61
124
|
MScreen,
|
|
62
125
|
MBox,
|
|
63
126
|
MRow,
|
|
@@ -66,13 +129,41 @@ export function createMavis(options: MavisOptions = {}) {
|
|
|
66
129
|
MText,
|
|
67
130
|
MButton,
|
|
68
131
|
MSlider,
|
|
132
|
+
MSwitch,
|
|
133
|
+
MCheckbox,
|
|
134
|
+
MRadioGroup,
|
|
135
|
+
MSelect,
|
|
136
|
+
MToast,
|
|
137
|
+
MDialog,
|
|
138
|
+
MTabs,
|
|
139
|
+
MSkeleton,
|
|
140
|
+
MChip,
|
|
141
|
+
MEmptyState,
|
|
142
|
+
MProgress,
|
|
143
|
+
MAccordion,
|
|
144
|
+
MSegmentedControl,
|
|
145
|
+
MAlert,
|
|
146
|
+
MListItem,
|
|
147
|
+
MSeparator,
|
|
148
|
+
MAvatar,
|
|
149
|
+
MBadge,
|
|
69
150
|
MInput,
|
|
70
151
|
MIcon,
|
|
71
152
|
MReveal,
|
|
72
153
|
MSheet,
|
|
154
|
+
MDatePicker,
|
|
155
|
+
MDateRangePicker,
|
|
156
|
+
MCombobox,
|
|
157
|
+
MFilePicker,
|
|
158
|
+
MFormGroup,
|
|
159
|
+
MFormErrors,
|
|
160
|
+
MSteps,
|
|
161
|
+
MPagination,
|
|
73
162
|
})) {
|
|
74
163
|
app.component(name, component)
|
|
75
164
|
}
|
|
76
165
|
},
|
|
77
166
|
}
|
|
78
167
|
}
|
|
168
|
+
|
|
169
|
+
export * from '../files.js'
|
package/src/vue/layers.ts
CHANGED
|
@@ -12,6 +12,8 @@ export interface Layer {
|
|
|
12
12
|
props: Record<string, unknown>
|
|
13
13
|
/** True while the layer covers the screen content. */
|
|
14
14
|
presented: Ref<boolean>
|
|
15
|
+
/** Non-modal notices leave the screen content reachable. */
|
|
16
|
+
modal?: boolean
|
|
15
17
|
}
|
|
16
18
|
export interface LayerEntry extends Layer {
|
|
17
19
|
key: number
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { onBeforeUnmount } from 'nativescript-vue'
|
|
2
|
+
import type { View } from '@nativescript/core'
|
|
3
|
+
import { animate, set, onReducedMotion } from '@rafaelaugusto/jolt'
|
|
4
|
+
import { revealMotion } from '@getcortexlabs/mavis-core'
|
|
5
|
+
|
|
6
|
+
type Element = { nativeView: View }
|
|
7
|
+
|
|
8
|
+
/** Each transition owns its completion; an interrupted leave cannot finish a new entry. */
|
|
9
|
+
export function useRevealMotion() {
|
|
10
|
+
const entered = new WeakSet<View>()
|
|
11
|
+
const active = new Map<
|
|
12
|
+
View,
|
|
13
|
+
{ handle: ReturnType<typeof animate>; phase: 'enter' | 'leave'; remove: () => void }
|
|
14
|
+
>()
|
|
15
|
+
const cancel = ({ nativeView: view }: Element) => {
|
|
16
|
+
const operation = active.get(view)
|
|
17
|
+
if (!operation) return
|
|
18
|
+
active.delete(view)
|
|
19
|
+
operation.remove()
|
|
20
|
+
operation.handle.stop()
|
|
21
|
+
}
|
|
22
|
+
const run = (phase: 'enter' | 'leave') => (element: Element, done: () => void) => {
|
|
23
|
+
const view = element.nativeView
|
|
24
|
+
cancel(element)
|
|
25
|
+
if (phase === 'enter' && !entered.has(view)) {
|
|
26
|
+
entered.add(view)
|
|
27
|
+
set(view, { opacity: revealMotion.enter[0].opacity[0], y: revealMotion.enter[0].y[0] })
|
|
28
|
+
}
|
|
29
|
+
const handle = animate(
|
|
30
|
+
view,
|
|
31
|
+
phase === 'enter' ? { opacity: 1, y: 0 } : revealMotion.leave[0],
|
|
32
|
+
revealMotion[phase][1],
|
|
33
|
+
)
|
|
34
|
+
const unloaded = () => cancel(element)
|
|
35
|
+
const operation = { handle, phase, remove: () => view.off('unloaded', unloaded) }
|
|
36
|
+
active.set(view, operation)
|
|
37
|
+
view.on('unloaded', unloaded)
|
|
38
|
+
void handle.finished.then(() => {
|
|
39
|
+
if (active.get(view) !== operation) return
|
|
40
|
+
active.delete(view)
|
|
41
|
+
operation.remove()
|
|
42
|
+
done()
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
const offPreference = onReducedMotion((reduced) => {
|
|
46
|
+
if (reduced)
|
|
47
|
+
for (const [view, operation] of active) {
|
|
48
|
+
if (operation.phase === 'enter') set(view, { y: 0 })
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
onBeforeUnmount(() => {
|
|
52
|
+
offPreference()
|
|
53
|
+
for (const view of active.keys()) cancel({ nativeView: view })
|
|
54
|
+
})
|
|
55
|
+
return {
|
|
56
|
+
onEnter: run('enter'),
|
|
57
|
+
onLeave: run('leave'),
|
|
58
|
+
onEnterCancelled: cancel,
|
|
59
|
+
onLeaveCancelled: cancel,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { onBeforeUnmount, watch } from 'nativescript-vue'
|
|
2
|
+
import type { EventData, View } from '@nativescript/core'
|
|
3
|
+
import type { MotionRegion } from '@getcortexlabs/mavis-core/experimental'
|
|
4
|
+
import { attachNativeMotionRegion } from '../native/motion-region.js'
|
|
5
|
+
|
|
6
|
+
export function useMotionRegion(reference: () => MotionRegion | undefined) {
|
|
7
|
+
let target: View | undefined, release: (() => void) | undefined
|
|
8
|
+
const clear = () => {
|
|
9
|
+
release?.()
|
|
10
|
+
release = undefined
|
|
11
|
+
}
|
|
12
|
+
const attach = () => {
|
|
13
|
+
clear()
|
|
14
|
+
const region = reference()
|
|
15
|
+
if (region && target?.isLoaded) release = attachNativeMotionRegion(region, target)
|
|
16
|
+
}
|
|
17
|
+
watch(reference, attach, { flush: 'post' })
|
|
18
|
+
onBeforeUnmount(clear)
|
|
19
|
+
return {
|
|
20
|
+
onLoaded(event: EventData) {
|
|
21
|
+
target = event.object as View
|
|
22
|
+
attach()
|
|
23
|
+
},
|
|
24
|
+
onUnloaded() {
|
|
25
|
+
clear()
|
|
26
|
+
target = undefined
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { EventData, View } from '@nativescript/core'
|
|
2
|
+
import { onBeforeUnmount, watch } from 'nativescript-vue'
|
|
3
|
+
import { animate, set, onReducedMotion } from '@rafaelaugusto/jolt'
|
|
4
|
+
import {
|
|
5
|
+
bindMotionSurface,
|
|
6
|
+
type MotionFrames,
|
|
7
|
+
type MotionSurface,
|
|
8
|
+
} from '@getcortexlabs/mavis-core/experimental'
|
|
9
|
+
import { nativeContinuousSurface } from '../native/motion-surface.js'
|
|
10
|
+
import { nativeMotionOwner } from '../native/motion-owner.js'
|
|
11
|
+
|
|
12
|
+
export function useMotionSurface(
|
|
13
|
+
surface: () => MotionSurface | undefined,
|
|
14
|
+
enabled: () => boolean = () => true,
|
|
15
|
+
) {
|
|
16
|
+
let view: View | undefined
|
|
17
|
+
let unbind: (() => void) | undefined
|
|
18
|
+
let offPreference: (() => void) | undefined
|
|
19
|
+
let continuous: ReturnType<typeof nativeContinuousSurface> | undefined
|
|
20
|
+
const active = new Map<ReturnType<typeof animate>, MotionFrames>()
|
|
21
|
+
const release = () => {
|
|
22
|
+
unbind?.()
|
|
23
|
+
unbind = undefined
|
|
24
|
+
continuous = undefined
|
|
25
|
+
offPreference?.()
|
|
26
|
+
offPreference = undefined
|
|
27
|
+
for (const handle of active.keys()) handle.stop()
|
|
28
|
+
active.clear()
|
|
29
|
+
}
|
|
30
|
+
const bind = () => {
|
|
31
|
+
release()
|
|
32
|
+
const target = view
|
|
33
|
+
const reference = surface()
|
|
34
|
+
if (!target || !reference) return
|
|
35
|
+
continuous = nativeContinuousSurface(target, enabled)
|
|
36
|
+
unbind = bindMotionSurface(
|
|
37
|
+
reference,
|
|
38
|
+
nativeMotionOwner(
|
|
39
|
+
{
|
|
40
|
+
...continuous.adapter,
|
|
41
|
+
animate(values, options) {
|
|
42
|
+
continuous?.interrupt(Object.keys(values))
|
|
43
|
+
const handle = animate(target, values, options)
|
|
44
|
+
active.set(handle, values)
|
|
45
|
+
void handle.finished.then(() => active.delete(handle))
|
|
46
|
+
return handle
|
|
47
|
+
},
|
|
48
|
+
set: (values) => {
|
|
49
|
+
continuous?.interrupt(Object.keys(values))
|
|
50
|
+
return animate(target, values, { duration: 0 })
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
target,
|
|
54
|
+
),
|
|
55
|
+
)
|
|
56
|
+
offPreference = onReducedMotion((reduced) => {
|
|
57
|
+
if (!reduced) return
|
|
58
|
+
// Set only spatial channels: opacity can keep its existing timeline.
|
|
59
|
+
const values: Record<string, number> = {}
|
|
60
|
+
for (const frames of active.values())
|
|
61
|
+
for (const [property, value] of Object.entries(frames)) {
|
|
62
|
+
if (property === 'opacity') continue
|
|
63
|
+
const final = Array.isArray(value) ? value.at(-1) : value
|
|
64
|
+
if (typeof final === 'number') values[property] = final
|
|
65
|
+
}
|
|
66
|
+
if (Object.keys(values).length) set(target, values)
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
const unloaded = () => {
|
|
70
|
+
release()
|
|
71
|
+
view = undefined
|
|
72
|
+
}
|
|
73
|
+
watch(surface, bind, { flush: 'post' })
|
|
74
|
+
watch(enabled, () => continuous?.refresh(), { flush: 'sync' })
|
|
75
|
+
onBeforeUnmount(unloaded)
|
|
76
|
+
return {
|
|
77
|
+
allowsActivation: () => continuous?.allowsActivation() ?? true,
|
|
78
|
+
onLoaded(event: EventData) {
|
|
79
|
+
view = event.object as View
|
|
80
|
+
bind()
|
|
81
|
+
},
|
|
82
|
+
onUnloaded: unloaded,
|
|
83
|
+
}
|
|
84
|
+
}
|
package/src/vue/use-press.ts
CHANGED
|
@@ -3,27 +3,35 @@ import { onBeforeUnmount, watch, type Ref } from 'nativescript-vue'
|
|
|
3
3
|
import type { MavisTheme } from '@getcortexlabs/mavis-core'
|
|
4
4
|
import { attachPressFeedback } from '../native/press.js'
|
|
5
5
|
|
|
6
|
-
export function usePressFeedback(
|
|
6
|
+
export function usePressFeedback(
|
|
7
|
+
enabled: () => boolean,
|
|
8
|
+
theme: Readonly<Ref<MavisTheme>>,
|
|
9
|
+
keyboard?: Readonly<Ref<boolean>>,
|
|
10
|
+
) {
|
|
7
11
|
let view: View | undefined
|
|
8
|
-
let remove:
|
|
12
|
+
let remove: ReturnType<typeof attachPressFeedback> | undefined
|
|
9
13
|
|
|
10
14
|
const release = () => {
|
|
11
15
|
remove?.()
|
|
12
16
|
remove = undefined
|
|
13
17
|
}
|
|
14
18
|
const refresh = () => {
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
if (view && enabled()) {
|
|
20
|
+
if (remove) remove.update(theme.value.motion.pressScale)
|
|
21
|
+
else remove = attachPressFeedback(view, theme.value.motion.pressScale)
|
|
22
|
+
} else release()
|
|
17
23
|
}
|
|
18
24
|
const unloaded = () => {
|
|
19
25
|
release()
|
|
20
26
|
view = undefined
|
|
21
27
|
}
|
|
22
28
|
watch([enabled, () => theme.value.motion.pressScale], refresh, { flush: 'post' })
|
|
29
|
+
if (keyboard) watch(keyboard, (pressed) => remove?.press(pressed), { flush: 'sync' })
|
|
23
30
|
onBeforeUnmount(unloaded)
|
|
24
31
|
|
|
25
32
|
return {
|
|
26
33
|
onLoaded(event: EventData) {
|
|
34
|
+
release()
|
|
27
35
|
view = event.object as View
|
|
28
36
|
refresh()
|
|
29
37
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { EventData, ScrollView } from '@nativescript/core'
|
|
2
|
+
import { onBeforeUnmount, watch } from 'nativescript-vue'
|
|
3
|
+
import type { MotionScrollSource } from '@getcortexlabs/mavis-core/experimental'
|
|
4
|
+
import { attachNativeScrollSource } from '../native/scroll-motion.js'
|
|
5
|
+
|
|
6
|
+
export function useScrollMotion(source: () => MotionScrollSource | undefined) {
|
|
7
|
+
let view: ScrollView | undefined
|
|
8
|
+
let release: (() => void) | undefined
|
|
9
|
+
const clear = () => {
|
|
10
|
+
release?.()
|
|
11
|
+
release = undefined
|
|
12
|
+
}
|
|
13
|
+
const attach = () => {
|
|
14
|
+
clear()
|
|
15
|
+
const reference = source()
|
|
16
|
+
if (reference && view) release = attachNativeScrollSource(reference, view)
|
|
17
|
+
}
|
|
18
|
+
const unload = () => {
|
|
19
|
+
clear()
|
|
20
|
+
view = undefined
|
|
21
|
+
}
|
|
22
|
+
watch(source, attach, { flush: 'post' })
|
|
23
|
+
onBeforeUnmount(unload)
|
|
24
|
+
return {
|
|
25
|
+
onLoaded(event: EventData) {
|
|
26
|
+
view = event.object as ScrollView
|
|
27
|
+
attach()
|
|
28
|
+
},
|
|
29
|
+
onUnloaded: unload,
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TextField, TextView } from '@nativescript/core';
|
|
2
|
-
export declare function updateInputDescription(view: TextField | TextView): void;
|
|
3
|
-
export declare function writeInputText(view: TextField | TextView, write: () => void): void;
|
|
4
|
-
//# sourceMappingURL=input-description.android.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-description.android.d.ts","sourceRoot":"","sources":["../../src/native/input-description.android.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE7D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,QAMhE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,EAAE,KAAK,EAAE,MAAM,IAAI,QAU3E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export function updateInputDescription(view) {
|
|
2
|
-
// Core appends `text` to explicit labels, including secure text. EditText
|
|
3
|
-
// already exposes its current value (or password masking) to the platform.
|
|
4
|
-
view.android?.setContentDescription([view.accessibilityLabel, view.accessibilityHint].filter(Boolean).join('. ') || null);
|
|
5
|
-
}
|
|
6
|
-
export function writeInputText(view, write) {
|
|
7
|
-
const filters = view.android.getFilters();
|
|
8
|
-
// InputFilters also affect setText(). An external model must remain intact;
|
|
9
|
-
// restore the user's editing limit immediately after the programmatic write.
|
|
10
|
-
view.android.setFilters([]);
|
|
11
|
-
try {
|
|
12
|
-
write();
|
|
13
|
-
}
|
|
14
|
-
finally {
|
|
15
|
-
view.android.setFilters(filters);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=input-description.android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-description.android.js","sourceRoot":"","sources":["../../src/native/input-description.android.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAAC,IAA0B;IAC/D,0EAA0E;IAC1E,2EAA2E;IAC3E,IAAI,CAAC,OAAO,EAAE,qBAAqB,CACjC,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CACrF,CAAA;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAA0B,EAAE,KAAiB;IAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA;IACzC,4EAA4E;IAC5E,6EAA6E;IAC7E,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;IAC3B,IAAI,CAAC;QACH,KAAK,EAAE,CAAA;IACT,CAAC;YAAS,CAAC;QACT,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;AACH,CAAC"}
|
package/dist/theme/resolve.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/theme/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAErD,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAMtE"}
|
package/dist/theme/resolve.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export function resolveSpace(theme, value) {
|
|
2
|
-
const resolved = typeof value === 'number' ? value : theme.space[value];
|
|
3
|
-
if (!Number.isFinite(resolved) || resolved < 0) {
|
|
4
|
-
throw new RangeError(`Unknown or invalid spacing: ${String(value)}`);
|
|
5
|
-
}
|
|
6
|
-
return resolved;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=resolve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/theme/resolve.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,KAAiB,EAAE,KAAc;IAC5D,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACvE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,UAAU,CAAC,+BAA+B,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
package/dist/theme/themes.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MavisTheme, ThemeOptions } from './types.js';
|
|
2
|
-
/** Derive a complete theme without changing the original. */
|
|
3
|
-
export declare function defineTheme(options: ThemeOptions, base?: MavisTheme): MavisTheme;
|
|
4
|
-
export declare const mavis: MavisTheme;
|
|
5
|
-
export declare const midnight: MavisTheme;
|
|
6
|
-
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/theme/themes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAmC1D,6DAA6D;AAC7D,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,GAAE,UAAuB,GAAG,UAAU,CA6B5F;AAED,eAAO,MAAM,KAAK,YAAiC,CAAA;AAEnD,eAAO,MAAM,QAAQ,YAgBnB,CAAA"}
|
package/dist/theme/themes.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
const foundation = {
|
|
2
|
-
name: 'mavis',
|
|
3
|
-
appearance: 'light',
|
|
4
|
-
colors: {
|
|
5
|
-
background: '#F8F5F2',
|
|
6
|
-
surface: '#FFFFFF',
|
|
7
|
-
elevated: '#F0EBE7',
|
|
8
|
-
text: '#24212A',
|
|
9
|
-
muted: '#6C6470',
|
|
10
|
-
primary: '#A5375B',
|
|
11
|
-
onPrimary: '#FFFFFF',
|
|
12
|
-
border: '#E7DFE4',
|
|
13
|
-
success: '#237354',
|
|
14
|
-
danger: '#B33545',
|
|
15
|
-
},
|
|
16
|
-
space: { none: 0, xs: 4, sm: 8, md: 16, lg: 24, xl: 32, '2xl': 48 },
|
|
17
|
-
radius: { none: 0, sm: 10, md: 18, lg: 28, full: 999 },
|
|
18
|
-
typography: {
|
|
19
|
-
display: { fontSize: 56, fontWeight: '500', letterSpacing: -0.04 },
|
|
20
|
-
title: { fontSize: 32, fontWeight: '600', letterSpacing: -0.035 },
|
|
21
|
-
heading: { fontSize: 20, fontWeight: '600', letterSpacing: -0.02 },
|
|
22
|
-
body: { fontSize: 16, fontWeight: 'normal', letterSpacing: 0 },
|
|
23
|
-
caption: { fontSize: 13, fontWeight: 'normal', letterSpacing: 0 },
|
|
24
|
-
overline: { fontSize: 11, fontWeight: '600', letterSpacing: 0.12 },
|
|
25
|
-
},
|
|
26
|
-
control: {
|
|
27
|
-
sm: { height: 44, fontSize: 14, padding: 16 },
|
|
28
|
-
md: { height: 52, fontSize: 16, padding: 20 },
|
|
29
|
-
lg: { height: 60, fontSize: 17, padding: 24 },
|
|
30
|
-
},
|
|
31
|
-
motion: { pressScale: 0.97 },
|
|
32
|
-
};
|
|
33
|
-
/** Derive a complete theme without changing the original. */
|
|
34
|
-
export function defineTheme(options, base = foundation) {
|
|
35
|
-
const typography = { ...base.typography };
|
|
36
|
-
for (const variant of Object.keys(typography)) {
|
|
37
|
-
typography[variant] = Object.freeze({
|
|
38
|
-
...typography[variant],
|
|
39
|
-
...options.typography?.[variant],
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const control = { ...base.control };
|
|
43
|
-
for (const size of Object.keys(control)) {
|
|
44
|
-
control[size] = Object.freeze({ ...control[size], ...options.control?.[size] });
|
|
45
|
-
}
|
|
46
|
-
const theme = {
|
|
47
|
-
name: options.name,
|
|
48
|
-
appearance: options.appearance ?? base.appearance,
|
|
49
|
-
colors: Object.freeze({ ...base.colors, ...options.colors }),
|
|
50
|
-
space: Object.freeze({ ...base.space, ...options.space }),
|
|
51
|
-
radius: Object.freeze({ ...base.radius, ...options.radius }),
|
|
52
|
-
typography: Object.freeze(typography),
|
|
53
|
-
control: Object.freeze(control),
|
|
54
|
-
motion: Object.freeze({ ...base.motion, ...options.motion }),
|
|
55
|
-
};
|
|
56
|
-
for (const [key, value] of [...Object.entries(theme.space), ...Object.entries(theme.radius)]) {
|
|
57
|
-
if (!Number.isFinite(value) || value < 0)
|
|
58
|
-
throw new RangeError(`Invalid theme token: ${key}`);
|
|
59
|
-
}
|
|
60
|
-
if (!(theme.motion.pressScale > 0 && theme.motion.pressScale <= 1)) {
|
|
61
|
-
throw new RangeError('pressScale must be greater than 0 and at most 1');
|
|
62
|
-
}
|
|
63
|
-
return Object.freeze(theme);
|
|
64
|
-
}
|
|
65
|
-
export const mavis = defineTheme({ name: 'mavis' });
|
|
66
|
-
export const midnight = defineTheme({
|
|
67
|
-
name: 'midnight',
|
|
68
|
-
appearance: 'dark',
|
|
69
|
-
colors: {
|
|
70
|
-
background: '#0B1110',
|
|
71
|
-
surface: '#151E1A',
|
|
72
|
-
elevated: '#202C25',
|
|
73
|
-
text: '#F3F5E9',
|
|
74
|
-
muted: '#A2B0A5',
|
|
75
|
-
primary: '#D2FA7A',
|
|
76
|
-
onPrimary: '#17200D',
|
|
77
|
-
border: '#2A382E',
|
|
78
|
-
success: '#B6E87B',
|
|
79
|
-
danger: '#FFA8A8',
|
|
80
|
-
},
|
|
81
|
-
radius: { sm: 12, md: 20, lg: 32 },
|
|
82
|
-
});
|
|
83
|
-
//# sourceMappingURL=themes.js.map
|
package/dist/theme/themes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../src/theme/themes.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAe;IAC7B,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,OAAO;IACnB,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;KAClB;IACD,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACnE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACtD,UAAU,EAAE;QACV,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE;QAClE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE;QACjE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE;QAClE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAAE;QAC9D,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAAE;QACjE,QAAQ,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;KACnE;IACD,OAAO,EAAE;QACP,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAC7C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAC7C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;KAC9C;IACD,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;CAC7B,CAAA;AAED,6DAA6D;AAC7D,MAAM,UAAU,WAAW,CAAC,OAAqB,EAAE,OAAmB,UAAU;IAC9E,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,CAAA;IACzC,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAgC,EAAE,CAAC;QAC7E,UAAU,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;YAClC,GAAG,UAAU,CAAC,OAAO,CAAC;YACtB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC;SACjC,CAAC,CAAA;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;IACnC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAA6B,EAAE,CAAC;QACpE,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACjF,CAAC;IACD,MAAM,KAAK,GAAe;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU;QACjD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QAC5D,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QACzD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QAC5D,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QACrC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;KAC7D,CAAA;IACD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;QAC7F,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;YAAE,MAAM,IAAI,UAAU,CAAC,wBAAwB,GAAG,EAAE,CAAC,CAAA;IAC/F,CAAC;IACD,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,UAAU,CAAC,iDAAiD,CAAC,CAAA;IACzE,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC7B,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;AAEnD,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC;IAClC,IAAI,EAAE,UAAU;IAChB,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;KAClB;IACD,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;CACnC,CAAC,CAAA"}
|
package/dist/theme/types.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export type Space = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2
|
-
export type Spacing = Space | number;
|
|
3
|
-
export type Radius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
4
|
-
export type TextVariant = 'display' | 'title' | 'heading' | 'body' | 'caption' | 'overline';
|
|
5
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'ghost';
|
|
6
|
-
export type Size = 'sm' | 'md' | 'lg';
|
|
7
|
-
export interface Palette {
|
|
8
|
-
background: string;
|
|
9
|
-
surface: string;
|
|
10
|
-
elevated: string;
|
|
11
|
-
text: string;
|
|
12
|
-
muted: string;
|
|
13
|
-
primary: string;
|
|
14
|
-
onPrimary: string;
|
|
15
|
-
border: string;
|
|
16
|
-
success: string;
|
|
17
|
-
danger: string;
|
|
18
|
-
}
|
|
19
|
-
export interface Typography {
|
|
20
|
-
fontSize: number;
|
|
21
|
-
fontWeight: 'normal' | '500' | '600' | 'bold';
|
|
22
|
-
letterSpacing: number;
|
|
23
|
-
}
|
|
24
|
-
export interface MavisTheme {
|
|
25
|
-
readonly name: string;
|
|
26
|
-
readonly appearance: 'light' | 'dark';
|
|
27
|
-
readonly colors: Readonly<Palette>;
|
|
28
|
-
readonly space: Readonly<Record<Space, number>>;
|
|
29
|
-
readonly radius: Readonly<Record<Radius, number>>;
|
|
30
|
-
readonly typography: Readonly<Record<TextVariant, Readonly<Typography>>>;
|
|
31
|
-
readonly control: Readonly<Record<Size, Readonly<{
|
|
32
|
-
height: number;
|
|
33
|
-
fontSize: number;
|
|
34
|
-
padding: number;
|
|
35
|
-
}>>>;
|
|
36
|
-
readonly motion: Readonly<{
|
|
37
|
-
pressScale: number;
|
|
38
|
-
}>;
|
|
39
|
-
}
|
|
40
|
-
export interface ThemeOptions {
|
|
41
|
-
name: string;
|
|
42
|
-
appearance?: MavisTheme['appearance'];
|
|
43
|
-
colors?: Partial<Palette>;
|
|
44
|
-
space?: Partial<MavisTheme['space']>;
|
|
45
|
-
radius?: Partial<MavisTheme['radius']>;
|
|
46
|
-
typography?: Partial<Record<TextVariant, Partial<Typography>>>;
|
|
47
|
-
control?: Partial<Record<Size, Partial<MavisTheme['control'][Size]>>>;
|
|
48
|
-
motion?: Partial<MavisTheme['motion']>;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=types.d.ts.map
|