@getcortexlabs/mavis-core 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 +2 -2
- package/dist/accordion.d.ts +17 -0
- package/dist/accordion.d.ts.map +1 -0
- package/dist/accordion.js +42 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert.d.ts +21 -0
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +13 -0
- package/dist/alert.js.map +1 -0
- package/dist/app-icons.d.ts +27 -0
- package/dist/app-icons.d.ts.map +1 -0
- package/dist/app-icons.js +42 -0
- package/dist/app-icons.js.map +1 -0
- package/dist/avatar.d.ts +10 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +11 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.d.ts +7 -0
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +11 -0
- package/dist/badge.js.map +1 -0
- package/dist/capabilities.d.ts +132 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +180 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +73 -0
- package/dist/chart.js.map +1 -0
- package/dist/chip.d.ts +9 -0
- package/dist/chip.d.ts.map +1 -0
- package/dist/chip.js +16 -0
- package/dist/chip.js.map +1 -0
- package/dist/choice-motion.d.ts +14 -0
- package/dist/choice-motion.d.ts.map +1 -0
- package/dist/choice-motion.js +5 -0
- package/dist/choice-motion.js.map +1 -0
- package/dist/choice.d.ts +15 -0
- package/dist/choice.d.ts.map +1 -0
- package/dist/choice.js +27 -0
- package/dist/choice.js.map +1 -0
- package/dist/collections.d.ts +46 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +48 -0
- package/dist/collections.js.map +1 -0
- package/dist/combobox.d.ts +42 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +159 -0
- package/dist/combobox.js.map +1 -0
- package/dist/contracts.d.ts +1321 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +268 -0
- package/dist/contracts.js.map +1 -0
- package/dist/date-input.d.ts +10 -0
- package/dist/date-input.d.ts.map +1 -0
- package/dist/date-input.js +58 -0
- package/dist/date-input.js.map +1 -0
- package/dist/date-time.d.ts +19 -0
- package/dist/date-time.d.ts.map +1 -0
- package/dist/date-time.js +27 -0
- package/dist/date-time.js.map +1 -0
- package/dist/date.d.ts +96 -0
- package/dist/date.d.ts.map +1 -0
- package/dist/date.js +235 -0
- package/dist/date.js.map +1 -0
- package/dist/dialog.d.ts +4 -0
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +21 -0
- package/dist/dialog.js.map +1 -0
- package/dist/discovery.d.ts +49 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +80 -0
- package/dist/discovery.js.map +1 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/empty-state.js +5 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/experimental-collections.d.ts +82 -0
- package/dist/experimental-collections.d.ts.map +1 -0
- package/dist/experimental-collections.js +8 -0
- package/dist/experimental-collections.js.map +1 -0
- package/dist/experimental-effects.d.ts +107 -0
- package/dist/experimental-effects.d.ts.map +1 -0
- package/dist/experimental-effects.js +24 -0
- package/dist/experimental-effects.js.map +1 -0
- package/dist/experimental-platforms.d.ts +94 -0
- package/dist/experimental-platforms.d.ts.map +1 -0
- package/dist/experimental-platforms.js +2 -0
- package/dist/experimental-platforms.js.map +1 -0
- package/dist/experimental-playback.d.ts +63 -0
- package/dist/experimental-playback.d.ts.map +1 -0
- package/dist/experimental-playback.js +46 -0
- package/dist/experimental-playback.js.map +1 -0
- package/dist/experimental-regions.d.ts +179 -0
- package/dist/experimental-regions.d.ts.map +1 -0
- package/dist/experimental-regions.js +554 -0
- package/dist/experimental-regions.js.map +1 -0
- package/dist/experimental-sensors.d.ts +42 -0
- package/dist/experimental-sensors.d.ts.map +1 -0
- package/dist/experimental-sensors.js +2 -0
- package/dist/experimental-sensors.js.map +1 -0
- package/dist/experimental-surfaces.d.ts +127 -0
- package/dist/experimental-surfaces.d.ts.map +1 -0
- package/dist/experimental-surfaces.js +2 -0
- package/dist/experimental-surfaces.js.map +1 -0
- package/dist/experimental.d.ts +197 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +855 -0
- package/dist/experimental.js.map +1 -0
- package/dist/files.d.ts +87 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +328 -0
- package/dist/files.js.map +1 -0
- package/dist/form.d.ts +39 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +170 -0
- package/dist/form.js.map +1 -0
- package/dist/grid.d.ts +3 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +16 -0
- package/dist/grid.js.map +1 -0
- package/dist/icon.d.ts +15 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +28 -0
- package/dist/icon.js.map +1 -0
- package/dist/icons.d.ts +2002 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +2003 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +59 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/dist/input.d.ts +14 -0
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +12 -0
- package/dist/input.js.map +1 -1
- package/dist/link.d.ts +36 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +60 -0
- package/dist/link.js.map +1 -0
- package/dist/list-item.d.ts +3 -0
- package/dist/list-item.d.ts.map +1 -0
- package/dist/list-item.js +7 -0
- package/dist/list-item.js.map +1 -0
- package/dist/motion.d.ts +58 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +73 -0
- package/dist/motion.js.map +1 -0
- package/dist/multi-select.d.ts +4 -0
- package/dist/multi-select.d.ts.map +1 -0
- package/dist/multi-select.js +23 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/navigation-transition.d.ts +10 -0
- package/dist/navigation-transition.d.ts.map +1 -0
- package/dist/navigation-transition.js +10 -0
- package/dist/navigation-transition.js.map +1 -0
- package/dist/navigation.d.ts +22 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +54 -0
- package/dist/navigation.js.map +1 -0
- package/dist/number-input.d.ts +21 -0
- package/dist/number-input.d.ts.map +1 -0
- package/dist/number-input.js +63 -0
- package/dist/number-input.js.map +1 -0
- package/dist/popover.d.ts +17 -0
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +19 -0
- package/dist/popover.js.map +1 -0
- package/dist/progress.d.ts +19 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +19 -0
- package/dist/progress.js.map +1 -0
- package/dist/responsive.d.ts +18 -0
- package/dist/responsive.d.ts.map +1 -0
- package/dist/responsive.js +35 -0
- package/dist/responsive.js.map +1 -0
- package/dist/section-scroll.d.ts +14 -0
- package/dist/section-scroll.d.ts.map +1 -0
- package/dist/section-scroll.js +28 -0
- package/dist/section-scroll.js.map +1 -0
- package/dist/segmented.d.ts +11 -0
- package/dist/segmented.d.ts.map +1 -0
- package/dist/segmented.js +30 -0
- package/dist/segmented.js.map +1 -0
- package/dist/sheet.d.ts +19 -0
- package/dist/sheet.d.ts.map +1 -0
- package/dist/sheet.js +15 -0
- package/dist/sheet.js.map +1 -0
- package/dist/tabs.d.ts +11 -0
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tabs.js +28 -0
- package/dist/tabs.js.map +1 -0
- package/dist/theme/themes.d.ts.map +1 -1
- package/dist/theme/themes.js +85 -12
- package/dist/theme/themes.js.map +1 -1
- package/dist/theme/types.d.ts +64 -4
- package/dist/theme/types.d.ts.map +1 -1
- package/dist/theme/typography.d.ts +10 -0
- package/dist/theme/typography.d.ts.map +1 -0
- package/dist/theme/typography.js +90 -0
- package/dist/theme/typography.js.map +1 -0
- package/dist/time.d.ts +34 -0
- package/dist/time.d.ts.map +1 -0
- package/dist/time.js +78 -0
- package/dist/time.js.map +1 -0
- package/dist/toast.d.ts +43 -0
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.js +228 -0
- package/dist/toast.js.map +1 -0
- package/dist/vue/button-content.d.ts +10 -0
- package/dist/vue/button-content.d.ts.map +1 -0
- package/dist/vue/button-content.js +54 -0
- package/dist/vue/button-content.js.map +1 -0
- package/dist/vue/cached-activity.d.ts +3 -0
- package/dist/vue/cached-activity.d.ts.map +1 -0
- package/dist/vue/cached-activity.js +13 -0
- package/dist/vue/cached-activity.js.map +1 -0
- package/dist/vue/carousel.d.ts +11 -0
- package/dist/vue/carousel.d.ts.map +1 -0
- package/dist/vue/carousel.js +115 -0
- package/dist/vue/carousel.js.map +1 -0
- package/dist/vue/chart.d.ts +194 -0
- package/dist/vue/chart.d.ts.map +1 -0
- package/dist/vue/chart.js +246 -0
- package/dist/vue/chart.js.map +1 -0
- package/dist/vue/combobox.d.ts +155 -0
- package/dist/vue/combobox.d.ts.map +1 -0
- package/dist/vue/combobox.js +195 -0
- package/dist/vue/combobox.js.map +1 -0
- package/dist/vue/command-palette.d.ts +129 -0
- package/dist/vue/command-palette.d.ts.map +1 -0
- package/dist/vue/command-palette.js +187 -0
- package/dist/vue/command-palette.js.map +1 -0
- package/dist/vue/component-props.d.ts +3310 -0
- package/dist/vue/component-props.d.ts.map +1 -0
- package/dist/vue/component-props.js +43 -0
- package/dist/vue/component-props.js.map +1 -0
- package/dist/vue/configurator-props.d.ts +277 -0
- package/dist/vue/configurator-props.d.ts.map +1 -0
- package/dist/vue/configurator-props.js +63 -0
- package/dist/vue/configurator-props.js.map +1 -0
- package/dist/vue/configurator.d.ts +403 -0
- package/dist/vue/configurator.d.ts.map +1 -0
- package/dist/vue/configurator.js +287 -0
- package/dist/vue/configurator.js.map +1 -0
- package/dist/vue/contracts.d.ts +18 -0
- package/dist/vue/contracts.d.ts.map +1 -0
- package/dist/vue/contracts.js +24 -0
- package/dist/vue/contracts.js.map +1 -0
- package/dist/vue/data-table.d.ts +17 -0
- package/dist/vue/data-table.d.ts.map +1 -0
- package/dist/vue/data-table.js +133 -0
- package/dist/vue/data-table.js.map +1 -0
- package/dist/vue/date-calendar.d.ts +64 -0
- package/dist/vue/date-calendar.d.ts.map +1 -0
- package/dist/vue/date-calendar.js +65 -0
- package/dist/vue/date-calendar.js.map +1 -0
- package/dist/vue/date-picker.d.ts +1000 -0
- package/dist/vue/date-picker.d.ts.map +1 -0
- package/dist/vue/date-picker.js +334 -0
- package/dist/vue/date-picker.js.map +1 -0
- package/dist/vue/date-props.d.ts +278 -0
- package/dist/vue/date-props.d.ts.map +1 -0
- package/dist/vue/date-props.js +81 -0
- package/dist/vue/date-props.js.map +1 -0
- package/dist/vue/dialog.d.ts +21 -0
- package/dist/vue/dialog.d.ts.map +1 -0
- package/dist/vue/dialog.js +58 -0
- package/dist/vue/dialog.js.map +1 -0
- package/dist/vue/discovery-components.d.ts +50 -0
- package/dist/vue/discovery-components.d.ts.map +1 -0
- package/dist/vue/discovery-components.js +2 -0
- package/dist/vue/discovery-components.js.map +1 -0
- package/dist/vue/discovery-controls.d.ts +197 -0
- package/dist/vue/discovery-controls.d.ts.map +1 -0
- package/dist/vue/discovery-controls.js +166 -0
- package/dist/vue/discovery-controls.js.map +1 -0
- package/dist/vue/discovery-props.d.ts +249 -0
- package/dist/vue/discovery-props.d.ts.map +1 -0
- package/dist/vue/discovery-props.js +87 -0
- package/dist/vue/discovery-props.js.map +1 -0
- package/dist/vue/files.d.ts +53 -0
- package/dist/vue/files.d.ts.map +1 -0
- package/dist/vue/files.js +40 -0
- package/dist/vue/files.js.map +1 -0
- package/dist/vue/forms.d.ts +4 -0
- package/dist/vue/forms.d.ts.map +1 -0
- package/dist/vue/forms.js +15 -0
- package/dist/vue/forms.js.map +1 -0
- package/dist/vue/global-components.d.ts +259 -3
- package/dist/vue/global-components.d.ts.map +1 -1
- package/dist/vue/index.d.ts +54 -4
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +45 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/inline-content.d.ts +54 -0
- package/dist/vue/inline-content.d.ts.map +1 -0
- package/dist/vue/inline-content.js +64 -0
- package/dist/vue/inline-content.js.map +1 -0
- package/dist/vue/layout-context.d.ts +4 -2
- package/dist/vue/layout-context.d.ts.map +1 -1
- package/dist/vue/layout-context.js +7 -2
- package/dist/vue/layout-context.js.map +1 -1
- package/dist/vue/list-motion.d.ts +7 -0
- package/dist/vue/list-motion.d.ts.map +1 -0
- package/dist/vue/list-motion.js +28 -0
- package/dist/vue/list-motion.js.map +1 -0
- package/dist/vue/loading-effect.d.ts +7 -0
- package/dist/vue/loading-effect.d.ts.map +1 -0
- package/dist/vue/loading-effect.js +32 -0
- package/dist/vue/loading-effect.js.map +1 -0
- package/dist/vue/menu.d.ts +122 -0
- package/dist/vue/menu.d.ts.map +1 -0
- package/dist/vue/menu.js +79 -0
- package/dist/vue/menu.js.map +1 -0
- package/dist/vue/navigation-controls.d.ts +124 -0
- package/dist/vue/navigation-controls.d.ts.map +1 -0
- package/dist/vue/navigation-controls.js +117 -0
- package/dist/vue/navigation-controls.js.map +1 -0
- package/dist/vue/navigation-props.d.ts +283 -0
- package/dist/vue/navigation-props.d.ts.map +1 -0
- package/dist/vue/navigation-props.js +82 -0
- package/dist/vue/navigation-props.js.map +1 -0
- package/dist/vue/navigation.d.ts +7 -0
- package/dist/vue/navigation.d.ts.map +1 -0
- package/dist/vue/navigation.js +15 -0
- package/dist/vue/navigation.js.map +1 -0
- package/dist/vue/platform.d.ts +37 -0
- package/dist/vue/platform.d.ts.map +1 -0
- package/dist/vue/platform.js +46 -0
- package/dist/vue/platform.js.map +1 -0
- package/dist/vue/props.d.ts +3326 -510
- package/dist/vue/props.d.ts.map +1 -1
- package/dist/vue/props.js +314 -83
- package/dist/vue/props.js.map +1 -1
- package/dist/vue/reveal-state.d.ts +18 -0
- package/dist/vue/reveal-state.d.ts.map +1 -0
- package/dist/vue/reveal-state.js +76 -0
- package/dist/vue/reveal-state.js.map +1 -0
- package/dist/vue/theme-provider.d.ts +58 -0
- package/dist/vue/theme-provider.d.ts.map +1 -0
- package/dist/vue/theme-provider.js +69 -0
- package/dist/vue/theme-provider.js.map +1 -0
- package/dist/vue/theme.d.ts +1029 -19
- package/dist/vue/theme.d.ts.map +1 -1
- package/dist/vue/theme.js +47 -2
- package/dist/vue/theme.js.map +1 -1
- package/dist/vue/time-picker.d.ts +488 -0
- package/dist/vue/time-picker.d.ts.map +1 -0
- package/dist/vue/time-picker.js +190 -0
- package/dist/vue/time-picker.js.map +1 -0
- package/dist/vue/toast.d.ts +29 -0
- package/dist/vue/toast.d.ts.map +1 -0
- package/dist/vue/toast.js +79 -0
- package/dist/vue/toast.js.map +1 -0
- package/dist/vue/tree-view.d.ts +111 -0
- package/dist/vue/tree-view.d.ts.map +1 -0
- package/dist/vue/tree-view.js +180 -0
- package/dist/vue/tree-view.js.map +1 -0
- package/dist/vue/virtual-list.d.ts +26 -0
- package/dist/vue/virtual-list.d.ts.map +1 -0
- package/dist/vue/virtual-list.js +2 -0
- package/dist/vue/virtual-list.js.map +1 -0
- package/dist/vue/wayfinding-controls.d.ts +198 -0
- package/dist/vue/wayfinding-controls.d.ts.map +1 -0
- package/dist/vue/wayfinding-controls.js +310 -0
- package/dist/vue/wayfinding-controls.js.map +1 -0
- package/dist/vue/wayfinding-props.d.ts +221 -0
- package/dist/vue/wayfinding-props.d.ts.map +1 -0
- package/dist/vue/wayfinding-props.js +86 -0
- package/dist/vue/wayfinding-props.js.map +1 -0
- package/dist/vue/workflow-props.d.ts +110 -0
- package/dist/vue/workflow-props.d.ts.map +1 -0
- package/dist/vue/workflow-props.js +37 -0
- package/dist/vue/workflow-props.js.map +1 -0
- package/dist/vue/workflows.d.ts +267 -0
- package/dist/vue/workflows.d.ts.map +1 -0
- package/dist/vue/workflows.js +200 -0
- package/dist/vue/workflows.js.map +1 -0
- package/dist/wayfinding.d.ts +50 -0
- package/dist/wayfinding.d.ts.map +1 -0
- package/dist/wayfinding.js +54 -0
- package/dist/wayfinding.js.map +1 -0
- package/package.json +5 -1
- package/src/accordion.ts +66 -0
- package/src/alert.ts +16 -0
- package/src/app-icons.ts +57 -0
- package/src/avatar.ts +11 -0
- package/src/badge.ts +11 -0
- package/src/capabilities.ts +183 -0
- package/src/chart.ts +112 -0
- package/src/chip.ts +20 -0
- package/src/choice-motion.ts +12 -0
- package/src/choice.ts +41 -0
- package/src/collections.ts +87 -0
- package/src/combobox.ts +198 -0
- package/src/contracts.ts +324 -0
- package/src/date-input.ts +87 -0
- package/src/date-time.ts +37 -0
- package/src/date.ts +280 -0
- package/src/dialog.ts +22 -0
- package/src/discovery.ts +139 -0
- package/src/empty-state.ts +4 -0
- package/src/experimental-collections.ts +87 -0
- package/src/experimental-effects.ts +146 -0
- package/src/experimental-platforms.ts +96 -0
- package/src/experimental-playback.ts +115 -0
- package/src/experimental-regions.ts +777 -0
- package/src/experimental-sensors.ts +50 -0
- package/src/experimental-surfaces.ts +124 -0
- package/src/experimental.ts +1102 -0
- package/src/files.ts +408 -0
- package/src/form.ts +190 -0
- package/src/grid.ts +19 -0
- package/src/icon.ts +30 -0
- package/src/icons.ts +2002 -0
- package/src/index.ts +93 -2
- package/src/input.ts +27 -0
- package/src/link.ts +91 -0
- package/src/list-item.ts +5 -0
- package/src/motion.ts +80 -0
- package/src/multi-select.ts +30 -0
- package/src/navigation-transition.ts +14 -0
- package/src/navigation.ts +61 -0
- package/src/number-input.ts +80 -0
- package/src/popover.ts +38 -0
- package/src/progress.ts +22 -0
- package/src/responsive.ts +61 -0
- package/src/section-scroll.ts +46 -0
- package/src/segmented.ts +39 -0
- package/src/sheet.ts +31 -0
- package/src/tabs.ts +35 -0
- package/src/theme/themes.ts +89 -12
- package/src/theme/types.ts +55 -2
- package/src/theme/typography.ts +84 -0
- package/src/time.ts +83 -0
- package/src/toast.ts +249 -0
- package/src/vue/button-content.ts +60 -0
- package/src/vue/cached-activity.ts +13 -0
- package/src/vue/carousel.ts +173 -0
- package/src/vue/chart.ts +338 -0
- package/src/vue/combobox.ts +238 -0
- package/src/vue/command-palette.ts +232 -0
- package/src/vue/component-props.ts +70 -0
- package/src/vue/configurator-props.ts +67 -0
- package/src/vue/configurator.ts +350 -0
- package/src/vue/contracts.ts +39 -0
- package/src/vue/data-table.ts +190 -0
- package/src/vue/date-calendar.ts +76 -0
- package/src/vue/date-picker.ts +410 -0
- package/src/vue/date-props.ts +89 -0
- package/src/vue/dialog.ts +63 -0
- package/src/vue/discovery-components.ts +60 -0
- package/src/vue/discovery-controls.ts +218 -0
- package/src/vue/discovery-props.ts +92 -0
- package/src/vue/files.ts +53 -0
- package/src/vue/forms.ts +20 -0
- package/src/vue/global-components.ts +248 -4
- package/src/vue/index.ts +97 -4
- package/src/vue/inline-content.ts +71 -0
- package/src/vue/layout-context.ts +10 -3
- package/src/vue/list-motion.ts +31 -0
- package/src/vue/loading-effect.ts +44 -0
- package/src/vue/menu.ts +100 -0
- package/src/vue/navigation-controls.ts +138 -0
- package/src/vue/navigation-props.ts +87 -0
- package/src/vue/navigation.ts +16 -0
- package/src/vue/platform.ts +73 -0
- package/src/vue/props.ts +348 -96
- package/src/vue/reveal-state.ts +83 -0
- package/src/vue/theme-provider.ts +74 -0
- package/src/vue/theme.ts +65 -3
- package/src/vue/time-picker.ts +227 -0
- package/src/vue/toast.ts +99 -0
- package/src/vue/tree-view.ts +220 -0
- package/src/vue/virtual-list.ts +28 -0
- package/src/vue/wayfinding-controls.ts +412 -0
- package/src/vue/wayfinding-props.ts +97 -0
- package/src/vue/workflow-props.ts +41 -0
- package/src/vue/workflows.ts +257 -0
- package/src/wayfinding.ts +85 -0
package/src/toast.ts
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
export type ToastTone = 'success' | 'error' | 'warning' | 'info'
|
|
2
|
+
|
|
3
|
+
export interface ToastOptions {
|
|
4
|
+
message: string
|
|
5
|
+
title?: string
|
|
6
|
+
tone?: ToastTone
|
|
7
|
+
/** Milliseconds after entry. Zero keeps the notification until dismissed. */
|
|
8
|
+
duration?: number
|
|
9
|
+
}
|
|
10
|
+
export interface ToastMessage {
|
|
11
|
+
readonly id: number
|
|
12
|
+
readonly title?: string
|
|
13
|
+
readonly message: string
|
|
14
|
+
readonly tone: ToastTone
|
|
15
|
+
readonly duration: number
|
|
16
|
+
}
|
|
17
|
+
export interface ToastController {
|
|
18
|
+
/** Returns undefined after disposal, or after a local host has left. */
|
|
19
|
+
show(options: ToastOptions): number | undefined
|
|
20
|
+
dismiss(id?: number): void
|
|
21
|
+
clear(): void
|
|
22
|
+
}
|
|
23
|
+
export interface ToastSnapshot {
|
|
24
|
+
readonly message?: ToastMessage
|
|
25
|
+
readonly visible: boolean
|
|
26
|
+
}
|
|
27
|
+
export interface ToastConnection {
|
|
28
|
+
activate(): void
|
|
29
|
+
deactivate(): void
|
|
30
|
+
pause(reason: string, paused: boolean): void
|
|
31
|
+
begin(id: number): void
|
|
32
|
+
entered(id: number): void
|
|
33
|
+
left(id: number): void
|
|
34
|
+
dispose(): void
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const queues = new WeakMap<ToastController, ToastQueue>()
|
|
38
|
+
let nextId = 0
|
|
39
|
+
|
|
40
|
+
function notification(options: ToastOptions): ToastMessage {
|
|
41
|
+
if (!options || typeof options.message !== 'string' || !options.message.trim())
|
|
42
|
+
throw new TypeError('Toast message must be a non-empty string')
|
|
43
|
+
if (options.title !== undefined && (typeof options.title !== 'string' || !options.title.trim()))
|
|
44
|
+
throw new TypeError('Toast title must be a non-empty string when supplied')
|
|
45
|
+
const tone = options.tone ?? 'info'
|
|
46
|
+
if (!['success', 'error', 'warning', 'info'].includes(tone))
|
|
47
|
+
throw new RangeError(`Unknown Toast tone: ${String(tone)}`)
|
|
48
|
+
const duration = options.duration ?? 5000
|
|
49
|
+
if (!Number.isFinite(duration) || duration < 0 || duration > 2_147_483_647)
|
|
50
|
+
throw new RangeError('Toast duration must be between 0 and 2147483647 milliseconds')
|
|
51
|
+
return Object.freeze({
|
|
52
|
+
id: ++nextId,
|
|
53
|
+
title: options.title,
|
|
54
|
+
message: options.message,
|
|
55
|
+
tone,
|
|
56
|
+
duration,
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
class ToastQueue {
|
|
61
|
+
items: ToastMessage[] = []
|
|
62
|
+
listener?: (snapshot: ToastSnapshot) => void
|
|
63
|
+
bound = 0
|
|
64
|
+
owner?: object
|
|
65
|
+
|
|
66
|
+
constructor(readonly persistent = false) {}
|
|
67
|
+
active = false
|
|
68
|
+
accepting = true
|
|
69
|
+
disposed = false
|
|
70
|
+
presenting = false
|
|
71
|
+
entered = false
|
|
72
|
+
closing = false
|
|
73
|
+
remaining = 0
|
|
74
|
+
started = 0
|
|
75
|
+
timer?: ReturnType<typeof setTimeout>
|
|
76
|
+
pauses = new Set<string>()
|
|
77
|
+
|
|
78
|
+
publish() {
|
|
79
|
+
this.listener?.({ message: this.items[0], visible: this.active && !this.closing })
|
|
80
|
+
}
|
|
81
|
+
stop() {
|
|
82
|
+
if (this.timer === undefined) return
|
|
83
|
+
clearTimeout(this.timer)
|
|
84
|
+
this.timer = undefined
|
|
85
|
+
this.remaining = Math.max(0, this.remaining - Math.max(0, Date.now() - this.started))
|
|
86
|
+
}
|
|
87
|
+
run() {
|
|
88
|
+
const item = this.items[0]
|
|
89
|
+
if (
|
|
90
|
+
!item ||
|
|
91
|
+
!item.duration ||
|
|
92
|
+
!this.active ||
|
|
93
|
+
!this.entered ||
|
|
94
|
+
this.closing ||
|
|
95
|
+
this.pauses.size
|
|
96
|
+
)
|
|
97
|
+
return
|
|
98
|
+
if (this.timer !== undefined) return
|
|
99
|
+
this.started = Date.now()
|
|
100
|
+
this.timer = setTimeout(() => {
|
|
101
|
+
this.timer = undefined
|
|
102
|
+
if (this.items[0]?.id === item.id) this.dismiss(item.id)
|
|
103
|
+
}, this.remaining)
|
|
104
|
+
}
|
|
105
|
+
advance() {
|
|
106
|
+
this.stop()
|
|
107
|
+
this.presenting = this.entered = this.closing = false
|
|
108
|
+
this.remaining = this.items[0]?.duration ?? 0
|
|
109
|
+
this.publish()
|
|
110
|
+
}
|
|
111
|
+
show(options: ToastOptions) {
|
|
112
|
+
const item = notification(options)
|
|
113
|
+
if (!this.accepting || this.disposed) return undefined
|
|
114
|
+
this.items.push(item)
|
|
115
|
+
if (this.items.length === 1) this.advance()
|
|
116
|
+
return item.id
|
|
117
|
+
}
|
|
118
|
+
dismiss(id = this.items[0]?.id) {
|
|
119
|
+
const index = this.items.findIndex((item) => item.id === id)
|
|
120
|
+
if (index < 0) return
|
|
121
|
+
if (index > 0) {
|
|
122
|
+
this.items.splice(index, 1)
|
|
123
|
+
return
|
|
124
|
+
}
|
|
125
|
+
if (this.closing) return
|
|
126
|
+
this.stop()
|
|
127
|
+
if (!this.presenting || !this.active) {
|
|
128
|
+
this.items.shift()
|
|
129
|
+
this.advance()
|
|
130
|
+
} else {
|
|
131
|
+
this.closing = true
|
|
132
|
+
this.publish()
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
clear() {
|
|
136
|
+
this.items.splice(1)
|
|
137
|
+
this.dismiss()
|
|
138
|
+
}
|
|
139
|
+
deactivate() {
|
|
140
|
+
this.stop()
|
|
141
|
+
this.active = false
|
|
142
|
+
this.pauses.clear()
|
|
143
|
+
if (this.persistent && !this.disposed) {
|
|
144
|
+
if (this.closing) {
|
|
145
|
+
this.items.shift()
|
|
146
|
+
this.remaining = this.items[0]?.duration ?? 0
|
|
147
|
+
}
|
|
148
|
+
this.presenting = this.entered = this.closing = false
|
|
149
|
+
this.publish()
|
|
150
|
+
} else {
|
|
151
|
+
this.accepting = false
|
|
152
|
+
this.items = []
|
|
153
|
+
this.advance()
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Hosts own presentation; a persistent queue survives host replacement until disposed. */
|
|
159
|
+
export function createToastController(options: { persistent?: boolean } = {}): ToastController {
|
|
160
|
+
const queue = new ToastQueue(options.persistent)
|
|
161
|
+
const controller: ToastController = Object.freeze({
|
|
162
|
+
show: (options: ToastOptions) => queue.show(options),
|
|
163
|
+
dismiss: (id?: number) => queue.dismiss(id),
|
|
164
|
+
clear: () => queue.clear(),
|
|
165
|
+
})
|
|
166
|
+
queues.set(controller, queue)
|
|
167
|
+
return controller
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** @internal Local queues have one host; persistent queues hand off to the latest active host. */
|
|
171
|
+
export function connectToast(
|
|
172
|
+
controller: ToastController,
|
|
173
|
+
listener: (snapshot: ToastSnapshot) => void,
|
|
174
|
+
): ToastConnection {
|
|
175
|
+
const queue = queues.get(controller)
|
|
176
|
+
if (!queue || queue.disposed) throw new Error('MToast needs an active Mavis Toast controller')
|
|
177
|
+
if (queue.bound && !queue.persistent)
|
|
178
|
+
throw new Error('A Toast controller can only have one MToast host')
|
|
179
|
+
queue.bound++
|
|
180
|
+
const owner = {}
|
|
181
|
+
const pauses = new Set<string>()
|
|
182
|
+
let released = false
|
|
183
|
+
const owns = () => !released && !queue.disposed && queue.owner === owner
|
|
184
|
+
const current = (id: number) => owns() && queue.items[0]?.id === id
|
|
185
|
+
const detach = () => {
|
|
186
|
+
if (queue.owner !== owner) return
|
|
187
|
+
queue.deactivate()
|
|
188
|
+
listener({ visible: false })
|
|
189
|
+
queue.owner = queue.listener = undefined
|
|
190
|
+
}
|
|
191
|
+
listener({ visible: false })
|
|
192
|
+
return {
|
|
193
|
+
activate() {
|
|
194
|
+
if (released || queue.disposed || owns()) return
|
|
195
|
+
if (queue.owner) {
|
|
196
|
+
queue.deactivate()
|
|
197
|
+
queue.listener?.({ visible: false })
|
|
198
|
+
}
|
|
199
|
+
queue.owner = owner
|
|
200
|
+
queue.listener = listener
|
|
201
|
+
queue.pauses = new Set(pauses)
|
|
202
|
+
queue.active = queue.accepting = true
|
|
203
|
+
queue.publish()
|
|
204
|
+
queue.run()
|
|
205
|
+
},
|
|
206
|
+
deactivate() {
|
|
207
|
+
if (released) return
|
|
208
|
+
detach()
|
|
209
|
+
pauses.clear()
|
|
210
|
+
},
|
|
211
|
+
pause(reason, paused) {
|
|
212
|
+
if (released) return
|
|
213
|
+
if (paused) pauses.add(reason)
|
|
214
|
+
else pauses.delete(reason)
|
|
215
|
+
if (!owns()) return
|
|
216
|
+
if (paused) queue.stop()
|
|
217
|
+
queue.pauses = new Set(pauses)
|
|
218
|
+
queue.run()
|
|
219
|
+
},
|
|
220
|
+
begin(id) {
|
|
221
|
+
if (current(id)) queue.presenting = true
|
|
222
|
+
},
|
|
223
|
+
entered(id) {
|
|
224
|
+
if (!current(id) || queue.closing) return
|
|
225
|
+
queue.entered = true
|
|
226
|
+
queue.run()
|
|
227
|
+
},
|
|
228
|
+
left(id) {
|
|
229
|
+
if (!current(id) || !queue.closing) return
|
|
230
|
+
queue.items.shift()
|
|
231
|
+
queue.advance()
|
|
232
|
+
},
|
|
233
|
+
dispose() {
|
|
234
|
+
if (released) return
|
|
235
|
+
detach()
|
|
236
|
+
released = true
|
|
237
|
+
queue.bound--
|
|
238
|
+
pauses.clear()
|
|
239
|
+
},
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** @internal Vue scope cleanup also rejects late asynchronous notifications. */
|
|
244
|
+
export function disposeToast(controller: ToastController) {
|
|
245
|
+
const queue = queues.get(controller)
|
|
246
|
+
if (!queue) return
|
|
247
|
+
queue.disposed = true
|
|
248
|
+
queue.deactivate()
|
|
249
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent, inject, provide, watchEffect } from '@vue/runtime-core'
|
|
2
|
+
import { Comment, Fragment, isVNode, type VNode, type VNodeChild } from '@vue/runtime-core'
|
|
3
|
+
|
|
4
|
+
/** Adornments are decorative. Put any meaning in the button label, never another action. */
|
|
5
|
+
export function buttonContent(content: VNodeChild[] | undefined): VNodeChild[] {
|
|
6
|
+
const visit = (node: VNodeChild): void => {
|
|
7
|
+
if (Array.isArray(node)) {
|
|
8
|
+
node.forEach(visit)
|
|
9
|
+
return
|
|
10
|
+
}
|
|
11
|
+
if (!isVNode(node) || node.type === Comment) return
|
|
12
|
+
const name =
|
|
13
|
+
typeof node.type === 'string'
|
|
14
|
+
? node.type
|
|
15
|
+
: typeof node.type === 'object'
|
|
16
|
+
? 'name' in node.type
|
|
17
|
+
? String(node.type.name)
|
|
18
|
+
: ''
|
|
19
|
+
: ''
|
|
20
|
+
const props = node.props ?? {}
|
|
21
|
+
if (
|
|
22
|
+
/^(button|input|textarea|select|a|Button|TextField|TextView|Switch|Slider|WebView|MButton|MInput|MSwitch|MCheckbox|MRadioGroup|MSelect|MSlider|MTabs|MChip|MAccordion|MSegmentedControl|MSheet|MDialog|MToast)$/i.test(
|
|
23
|
+
name,
|
|
24
|
+
) ||
|
|
25
|
+
props.interactive ||
|
|
26
|
+
props.contenteditable ||
|
|
27
|
+
props.contentEditable ||
|
|
28
|
+
props.tabindex !== undefined ||
|
|
29
|
+
props.tabIndex !== undefined ||
|
|
30
|
+
Object.keys(props).some((key) => /^on(Click|Tap|Touch|Pointer|Key|Focus|LongPress)/.test(key))
|
|
31
|
+
) {
|
|
32
|
+
throw new TypeError(
|
|
33
|
+
'Button leading/trailing content must be decorative, without nested controls or interaction handlers.',
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
if (Array.isArray(node.children)) node.children.forEach((child) => visit(child as VNode))
|
|
37
|
+
else if (node.type === Fragment && node.children) visit(node.children as VNodeChild)
|
|
38
|
+
}
|
|
39
|
+
content?.forEach(visit)
|
|
40
|
+
return content ?? []
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const decorationKey = Symbol('mavis.buttonDecoration')
|
|
44
|
+
|
|
45
|
+
/** @internal Also guards Mavis controls rendered inside custom decorative components. */
|
|
46
|
+
export const ButtonAdornment = defineComponent({
|
|
47
|
+
setup(_props, { slots }) {
|
|
48
|
+
provide(decorationKey, true)
|
|
49
|
+
return () => slots.default?.()
|
|
50
|
+
},
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
/** @internal Stateful controls cannot become descendants of a decorative button slot. */
|
|
54
|
+
export function useButtonAction(interactive: () => boolean = () => true) {
|
|
55
|
+
if (!inject(decorationKey, false)) return
|
|
56
|
+
watchEffect(() => {
|
|
57
|
+
if (interactive())
|
|
58
|
+
throw new TypeError('Button adornments cannot contain interactive Mavis components.')
|
|
59
|
+
})
|
|
60
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { onActivated, onDeactivated, ref } from '@vue/runtime-core'
|
|
2
|
+
|
|
3
|
+
/** @internal Vue caches instances, but application observers still need an explicit pause. */
|
|
4
|
+
export function useCachedActivity() {
|
|
5
|
+
const active = ref(true)
|
|
6
|
+
onActivated(() => {
|
|
7
|
+
active.value = true
|
|
8
|
+
})
|
|
9
|
+
onDeactivated(() => {
|
|
10
|
+
active.value = false
|
|
11
|
+
})
|
|
12
|
+
return active
|
|
13
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { CarouselComponent } from './discovery-components.js'
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
defineComponent,
|
|
5
|
+
h,
|
|
6
|
+
markRaw,
|
|
7
|
+
mergeProps,
|
|
8
|
+
onScopeDispose,
|
|
9
|
+
ref,
|
|
10
|
+
watch,
|
|
11
|
+
type Component,
|
|
12
|
+
} from '@vue/runtime-core'
|
|
13
|
+
import { choiceKey, type ChoiceValue } from '../choice.js'
|
|
14
|
+
import { collectionKeys } from '../discovery.js'
|
|
15
|
+
import { createMotionSurface } from '../experimental.js'
|
|
16
|
+
import { carouselProps } from './discovery-props.js'
|
|
17
|
+
import { useMavisTheme } from './theme.js'
|
|
18
|
+
|
|
19
|
+
export function createCarousel(
|
|
20
|
+
ui: {
|
|
21
|
+
Column: Component
|
|
22
|
+
Row: Component
|
|
23
|
+
Box: Component
|
|
24
|
+
Text: Component
|
|
25
|
+
Button: Component
|
|
26
|
+
gestures: (move: (direction: number) => void) => Record<string, unknown>
|
|
27
|
+
},
|
|
28
|
+
platform: 'web' | 'native',
|
|
29
|
+
) {
|
|
30
|
+
return defineComponent({
|
|
31
|
+
name: 'MCarousel',
|
|
32
|
+
inheritAttrs: false,
|
|
33
|
+
props: carouselProps,
|
|
34
|
+
emits: { 'update:modelValue': (_value: ChoiceValue) => true },
|
|
35
|
+
setup(props, { attrs, slots, emit }) {
|
|
36
|
+
const { theme } = useMavisTheme()
|
|
37
|
+
const keys = computed(() => collectionKeys(props.items, props.itemKey))
|
|
38
|
+
const index = computed(() =>
|
|
39
|
+
Math.max(
|
|
40
|
+
0,
|
|
41
|
+
keys.value.findIndex((key) => key === props.modelValue),
|
|
42
|
+
),
|
|
43
|
+
)
|
|
44
|
+
const direction = ref(1)
|
|
45
|
+
const surface = markRaw(createMotionSurface())
|
|
46
|
+
let first = true
|
|
47
|
+
onScopeDispose(
|
|
48
|
+
surface.use((motion) => {
|
|
49
|
+
if (first) {
|
|
50
|
+
first = false
|
|
51
|
+
return
|
|
52
|
+
}
|
|
53
|
+
motion.animate(
|
|
54
|
+
{ x: [direction.value * 24, 0], opacity: [0.4, 1] },
|
|
55
|
+
{ type: 'spring', duration: theme.value.motion.enterDuration, bounce: 0.12 },
|
|
56
|
+
)
|
|
57
|
+
}),
|
|
58
|
+
)
|
|
59
|
+
function choose(next: number) {
|
|
60
|
+
if (props.disabled || next === index.value || !keys.value.length) return
|
|
61
|
+
direction.value = next > index.value ? 1 : -1
|
|
62
|
+
emit('update:modelValue', keys.value[next]!)
|
|
63
|
+
}
|
|
64
|
+
function move(amount: number) {
|
|
65
|
+
const count = keys.value.length
|
|
66
|
+
if (!count) return
|
|
67
|
+
const next = props.loop
|
|
68
|
+
? (index.value + amount + count) % count
|
|
69
|
+
: Math.max(0, Math.min(count - 1, index.value + amount))
|
|
70
|
+
choose(next)
|
|
71
|
+
}
|
|
72
|
+
watch(index, (next, previous) => {
|
|
73
|
+
direction.value = next > previous ? 1 : -1
|
|
74
|
+
})
|
|
75
|
+
const gestures = ui.gestures(move)
|
|
76
|
+
return () =>
|
|
77
|
+
h(
|
|
78
|
+
ui.Column,
|
|
79
|
+
mergeProps(
|
|
80
|
+
{ id: props.id, gap: 'md' },
|
|
81
|
+
attrs,
|
|
82
|
+
platform === 'web'
|
|
83
|
+
? {
|
|
84
|
+
class: 'm-carousel',
|
|
85
|
+
role: 'region',
|
|
86
|
+
'aria-roledescription': 'carousel',
|
|
87
|
+
'aria-label': props.label,
|
|
88
|
+
}
|
|
89
|
+
: {},
|
|
90
|
+
),
|
|
91
|
+
() => [
|
|
92
|
+
h(ui.Row, { justify: 'between', gap: 'md', wrap: true }, () => [
|
|
93
|
+
h(ui.Text, { as: 'h2', text: props.label, variant: 'heading' }),
|
|
94
|
+
h(ui.Text, {
|
|
95
|
+
text: keys.value.length ? `${index.value + 1} / ${keys.value.length}` : '0 / 0',
|
|
96
|
+
tone: 'muted',
|
|
97
|
+
variant: 'caption',
|
|
98
|
+
...(platform === 'web'
|
|
99
|
+
? { role: 'status', 'aria-live': 'polite', 'aria-atomic': 'true' }
|
|
100
|
+
: { accessibilityLiveRegion: 'polite' }),
|
|
101
|
+
}),
|
|
102
|
+
]),
|
|
103
|
+
keys.value.length
|
|
104
|
+
? h(
|
|
105
|
+
ui.Box,
|
|
106
|
+
mergeProps(
|
|
107
|
+
{ radius: 'lg' },
|
|
108
|
+
gestures,
|
|
109
|
+
platform === 'web' ? { style: { overflow: 'clip', touchAction: 'pan-y' } } : {},
|
|
110
|
+
),
|
|
111
|
+
() =>
|
|
112
|
+
h(
|
|
113
|
+
ui.Box,
|
|
114
|
+
{
|
|
115
|
+
key: choiceKey(keys.value[index.value]!),
|
|
116
|
+
motionSurface: surface,
|
|
117
|
+
...(platform === 'web'
|
|
118
|
+
? {
|
|
119
|
+
role: 'group',
|
|
120
|
+
'aria-roledescription': 'slide',
|
|
121
|
+
'aria-label': `${props.slideLabel} ${index.value + 1} / ${keys.value.length}`,
|
|
122
|
+
}
|
|
123
|
+
: {}),
|
|
124
|
+
},
|
|
125
|
+
() =>
|
|
126
|
+
slots.default?.({
|
|
127
|
+
item: props.items[index.value],
|
|
128
|
+
index: index.value,
|
|
129
|
+
itemKey: keys.value[index.value],
|
|
130
|
+
}),
|
|
131
|
+
),
|
|
132
|
+
)
|
|
133
|
+
: (slots.empty?.() ?? h(ui.Text, { text: props.emptyLabel, tone: 'muted' })),
|
|
134
|
+
h(ui.Row, { justify: 'between', gap: 'sm' }, () => [
|
|
135
|
+
h(ui.Button, {
|
|
136
|
+
icon: 'arrow-left',
|
|
137
|
+
variant: 'secondary',
|
|
138
|
+
accessibilityLabel: props.previousLabel,
|
|
139
|
+
disabled:
|
|
140
|
+
props.disabled || keys.value.length < 2 || (!props.loop && index.value === 0),
|
|
141
|
+
onClick: () => move(-1),
|
|
142
|
+
}),
|
|
143
|
+
h(ui.Row, { gap: 'xs', wrap: true, justify: 'center', shrink: 1 }, () =>
|
|
144
|
+
keys.value.map((key, n) =>
|
|
145
|
+
h(ui.Button, {
|
|
146
|
+
key: choiceKey(key),
|
|
147
|
+
text: String(n + 1),
|
|
148
|
+
variant: n === index.value ? 'primary' : 'ghost',
|
|
149
|
+
accessibilityLabel: `${props.slideLabel} ${n + 1}`,
|
|
150
|
+
disabled: props.disabled,
|
|
151
|
+
...(platform === 'web'
|
|
152
|
+
? { 'aria-current': n === index.value ? 'true' : undefined }
|
|
153
|
+
: {}),
|
|
154
|
+
onClick: () => choose(n),
|
|
155
|
+
}),
|
|
156
|
+
),
|
|
157
|
+
),
|
|
158
|
+
h(ui.Button, {
|
|
159
|
+
icon: 'arrow-right',
|
|
160
|
+
variant: 'secondary',
|
|
161
|
+
accessibilityLabel: props.nextLabel,
|
|
162
|
+
disabled:
|
|
163
|
+
props.disabled ||
|
|
164
|
+
keys.value.length < 2 ||
|
|
165
|
+
(!props.loop && index.value === keys.value.length - 1),
|
|
166
|
+
onClick: () => move(1),
|
|
167
|
+
}),
|
|
168
|
+
]),
|
|
169
|
+
],
|
|
170
|
+
)
|
|
171
|
+
},
|
|
172
|
+
}) as unknown as CarouselComponent
|
|
173
|
+
}
|