@vuetify/nightly 3.0.0-beta.3 → 3.0.0-beta.6
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/CHANGELOG.md +43 -2
- package/dist/_component-variables.sass +61 -0
- package/dist/json/attributes.json +261 -205
- package/dist/json/importMap.json +175 -219
- package/dist/json/tags.json +74 -104
- package/dist/json/web-types.json +880 -835
- package/dist/vuetify.css +597 -407
- package/dist/vuetify.d.ts +6770 -2144
- package/dist/vuetify.esm.js +9075 -8454
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +9074 -8453
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +1078 -1040
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.mjs +4 -0
- package/lib/blueprints/index.mjs.map +1 -0
- package/lib/blueprints/md1.mjs +63 -0
- package/lib/blueprints/md1.mjs.map +1 -0
- package/lib/blueprints/md2.mjs +60 -0
- package/lib/blueprints/md2.mjs.map +1 -0
- package/lib/blueprints/md3.mjs +74 -0
- package/lib/blueprints/md3.mjs.map +1 -0
- package/lib/components/VAlert/VAlert.css +5 -5
- package/lib/components/VAlert/VAlert.mjs +8 -2
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/VAlert.sass +0 -2
- package/lib/components/VApp/VApp.css +2 -5
- package/lib/components/VApp/VApp.mjs +3 -4
- package/lib/components/VApp/VApp.mjs.map +1 -1
- package/lib/components/VApp/VApp.sass +11 -12
- package/lib/components/VApp/variables.scss +6 -0
- package/lib/components/VAppBar/VAppBar.mjs +4 -3
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/VAppBar.sass +0 -1
- package/lib/components/VAppBar/VAppBarNavIcon.mjs +7 -12
- package/lib/components/VAppBar/VAppBarNavIcon.mjs.map +1 -1
- package/lib/components/VAppBar/VAppBarTitle.mjs +4 -3
- package/lib/components/VAppBar/VAppBarTitle.mjs.map +1 -1
- package/lib/components/VAppBar/_variables.scss +2 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs +54 -21
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +0 -2
- package/lib/components/VAvatar/VAvatar.css +1 -1
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/VAvatar.sass +1 -2
- package/lib/components/VAvatar/_mixins.scss +0 -1
- package/lib/components/VBadge/VBadge.mjs +8 -7
- package/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/lib/components/VBadge/VBadge.sass +0 -1
- package/lib/components/VBadge/_variables.scss +2 -2
- package/lib/components/VBanner/VBanner.css +7 -7
- package/lib/components/VBanner/VBanner.mjs +24 -17
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/VBanner.sass +6 -8
- package/lib/components/VBanner/VBannerActions.mjs +1 -1
- package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
- package/lib/components/VBanner/index.mjs +0 -2
- package/lib/components/VBanner/index.mjs.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.css +4 -11
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +4 -3
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.sass +5 -13
- package/lib/components/VBottomNavigation/_variables.scss +7 -8
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +13 -6
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +30 -19
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.sass +8 -4
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +5 -8
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/_variables.scss +2 -1
- package/lib/components/VBtn/VBtn.css +72 -15
- package/lib/components/VBtn/VBtn.mjs +70 -27
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +70 -13
- package/lib/components/VBtn/_variables.scss +4 -1
- package/lib/components/VBtnGroup/VBtnGroup.sass +0 -1
- package/lib/components/VBtnGroup/_variables.scss +2 -0
- package/lib/components/VBtnToggle/VBtnToggle.sass +0 -1
- package/lib/components/VBtnToggle/_variables.scss +1 -0
- package/lib/components/VCard/VCard.css +86 -69
- package/lib/components/VCard/VCard.mjs +52 -66
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCard.sass +74 -62
- package/lib/components/VCard/VCardActions.mjs +1 -1
- package/lib/components/VCard/VCardActions.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs +88 -0
- package/lib/components/VCard/VCardItem.mjs.map +1 -0
- package/lib/components/VCard/_variables.scss +40 -24
- package/lib/components/VCard/index.mjs +1 -5
- package/lib/components/VCard/index.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.mjs +5 -4
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.sass +0 -1
- package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
- package/lib/components/VCarousel/_variables.scss +1 -0
- package/lib/components/VCheckbox/VCheckbox.mjs +13 -46
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.sass +0 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +67 -0
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -0
- package/lib/components/VCheckbox/index.mjs +1 -0
- package/lib/components/VCheckbox/index.mjs.map +1 -1
- package/lib/components/VChip/VChip.css +142 -65
- package/lib/components/VChip/VChip.mjs +77 -38
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/VChip.sass +6 -1
- package/lib/components/VChip/_mixins.scss +26 -6
- package/lib/components/VChip/_variables.scss +1 -5
- package/lib/components/VChipGroup/VChipGroup.mjs +5 -4
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.sass +1 -1
- package/lib/components/VChipGroup/_variables.scss +1 -1
- package/lib/components/VCode/VCode.sass +1 -2
- package/lib/components/VCode/_variables.scss +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs +16 -10
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.sass +0 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +5 -4
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +0 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +4 -3
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.sass +0 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +4 -3
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.sass +0 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs +6 -5
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.sass +0 -1
- package/lib/components/VColorPicker/_variables.scss +17 -10
- package/lib/components/VCombobox/VCombobox.mjs +52 -36
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.sass +0 -2
- package/lib/components/VCounter/VCounter.mjs +16 -16
- package/lib/components/VCounter/VCounter.mjs.map +1 -1
- package/lib/components/VCounter/VCounter.sass +1 -2
- package/lib/components/VCounter/_variables.scss +2 -1
- package/lib/components/VDialog/VDialog.css +2 -5
- package/lib/components/VDialog/VDialog.mjs +25 -25
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +1 -5
- package/lib/components/VDialog/_variables.scss +0 -1
- package/lib/components/VDivider/VDivider.mjs +16 -17
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/VDivider.sass +0 -1
- package/lib/components/VDivider/_variables.scss +3 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.css +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs +9 -4
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +7 -7
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
- package/lib/components/VExpansionPanel/_variables.scss +15 -10
- package/lib/components/VField/VField.css +11 -11
- package/lib/components/VField/VField.mjs +19 -12
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +8 -10
- package/lib/components/VField/VFieldLabel.mjs +8 -9
- package/lib/components/VField/VFieldLabel.mjs.map +1 -1
- package/lib/components/VField/_variables.scss +3 -3
- package/lib/components/VFileInput/VFileInput.css +3 -3
- package/lib/components/VFileInput/VFileInput.mjs +12 -7
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.sass +3 -4
- package/lib/components/VFooter/VFooter.mjs +4 -3
- package/lib/components/VFooter/VFooter.mjs.map +1 -1
- package/lib/components/VFooter/VFooter.sass +0 -1
- package/lib/components/VFooter/_variables.scss +2 -1
- package/lib/components/VForm/VForm.mjs +3 -3
- package/lib/components/VForm/VForm.mjs.map +1 -1
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VContainer.mjs +4 -3
- package/lib/components/VGrid/VContainer.mjs.map +1 -1
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VIcon/VIcon.css +0 -8
- package/lib/components/VIcon/VIcon.mjs +20 -21
- package/lib/components/VIcon/VIcon.mjs.map +1 -1
- package/lib/components/VIcon/VIcon.sass +0 -9
- package/lib/components/VIcon/_variables.scss +2 -5
- package/lib/components/VIcon/index.mjs.map +1 -1
- package/lib/components/VImg/VImg.sass +0 -1
- package/lib/components/VInput/VInput.mjs +13 -9
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.sass +0 -1
- package/lib/components/VItemGroup/VItem.mjs +3 -0
- package/lib/components/VItemGroup/VItem.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.sass +0 -1
- package/lib/components/VKbd/VKbd.sass +0 -1
- package/lib/components/VKbd/_variables.scss +1 -1
- package/lib/components/VLabel/VLabel.mjs +4 -3
- package/lib/components/VLabel/VLabel.mjs.map +1 -1
- package/lib/components/VLabel/VLabel.sass +0 -1
- package/lib/components/VLabel/_variables.scss +1 -0
- package/lib/components/VLazy/VLazy.mjs +5 -3
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VList/VList.css +2 -2
- package/lib/components/VList/VList.mjs +16 -18
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VList.sass +1 -2
- package/lib/components/VList/VListChildren.mjs +7 -6
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +45 -31
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.css +84 -58
- package/lib/components/VList/VListItem.mjs +78 -45
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItem.sass +68 -40
- package/lib/components/VList/VListItemAction.mjs +8 -9
- package/lib/components/VList/VListItemAction.mjs.map +1 -1
- package/lib/components/VList/VListItemMedia.mjs +4 -3
- package/lib/components/VList/VListItemMedia.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs +4 -3
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VList/_variables.scss +11 -5
- package/lib/components/VList/index.mjs +2 -5
- package/lib/components/VList/index.mjs.map +1 -1
- package/lib/components/VLocaleProvider/VLocaleProvider.mjs +5 -3
- package/lib/components/VLocaleProvider/VLocaleProvider.mjs.map +1 -1
- package/lib/components/VMain/VMain.mjs +4 -3
- package/lib/components/VMain/VMain.mjs.map +1 -1
- package/lib/components/VMain/VMain.sass +0 -1
- package/lib/components/VMain/_variables.scss +1 -1
- package/lib/components/VMenu/VMenu.mjs +5 -5
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.sass +0 -1
- package/lib/components/VMessages/VMessages.mjs +5 -3
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/VMessages.sass +0 -1
- package/lib/components/VMessages/_variables.scss +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +10 -4
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +0 -1
- package/lib/components/VNavigationDrawer/_variables.scss +2 -1
- package/lib/components/VNavigationDrawer/touch.mjs +5 -2
- package/lib/components/VNavigationDrawer/touch.mjs.map +1 -1
- package/lib/components/VNoSsr/VNoSsr.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.mjs +10 -8
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +0 -1
- package/lib/components/VOverlay/locationStrategies.mjs +267 -78
- package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
- package/lib/components/VOverlay/useActivator.mjs +4 -3
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VOverlay/util/point.mjs +3 -3
- package/lib/components/VOverlay/util/point.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.mjs +41 -23
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.sass +0 -1
- package/lib/components/VParallax/VParallax.mjs +5 -5
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.mjs +6 -5
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.sass +0 -1
- package/lib/components/VProgressCircular/_variables.scss +2 -0
- package/lib/components/VProgressLinear/VProgressLinear.mjs +5 -3
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +0 -1
- package/lib/components/VProgressLinear/_variables.scss +1 -0
- package/lib/components/VRadioGroup/VRadioGroup.mjs +6 -3
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.sass +5 -3
- package/lib/components/VRadioGroup/_variables.scss +3 -4
- package/lib/components/VRangeSlider/VRangeSlider.mjs +12 -13
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRating/VRating.mjs +6 -5
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/VRating.sass +2 -1
- package/lib/components/VResponsive/VResponsive.mjs +7 -6
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.mjs +61 -22
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.sass +0 -2
- package/lib/components/VSelectionControl/VSelectionControl.css +1 -0
- package/lib/components/VSelectionControl/VSelectionControl.mjs +12 -10
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.sass +1 -1
- package/lib/components/VSelectionControl/_variables.scss +1 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +3 -3
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +1 -6
- package/lib/components/VSelectionControlGroup/_variables.scss +1 -4
- package/lib/components/VSheet/VSheet.mjs +3 -3
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/VSheet.sass +0 -1
- package/lib/components/VSheet/_variables.scss +3 -2
- package/lib/components/VSlideGroup/VSlideGroup.mjs +47 -49
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.sass +0 -1
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs +7 -3
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -1
- package/lib/components/VSlideGroup/_variables.scss +0 -5
- package/lib/components/VSlideGroup/index.mjs +2 -2
- package/lib/components/VSlideGroup/index.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.mjs +7 -9
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.sass +0 -2
- package/lib/components/VSlider/VSliderThumb.mjs +6 -5
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
- package/lib/components/VSlider/VSliderThumb.sass +0 -2
- package/lib/components/VSlider/VSliderTrack.mjs +11 -10
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.sass +0 -2
- package/lib/components/VSlider/slider.mjs +4 -4
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +5 -5
- package/lib/components/VSnackbar/VSnackbar.mjs +49 -49
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +0 -1
- package/lib/components/VSnackbar/_variables.scss +2 -0
- package/lib/components/VSwitch/VSwitch.css +7 -0
- package/lib/components/VSwitch/VSwitch.mjs +8 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.sass +6 -1
- package/lib/components/VSwitch/_variables.scss +1 -0
- package/lib/components/VSystemBar/VSystemBar.mjs +5 -13
- package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.sass +0 -1
- package/lib/components/VSystemBar/_variables.scss +2 -1
- package/lib/components/VTable/VTable.css +1 -0
- package/lib/components/VTable/VTable.mjs +9 -8
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTable/VTable.sass +1 -1
- package/lib/components/VTable/_variables.scss +2 -0
- package/lib/components/VTabs/VTab.css +3 -1
- package/lib/components/VTabs/VTab.mjs +4 -4
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTab.sass +4 -2
- package/lib/components/VTabs/VTabs.mjs +15 -12
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.sass +0 -1
- package/lib/components/VTabs/_variables.scss +2 -0
- package/lib/components/VTextField/VTextField.mjs +25 -13
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.sass +0 -1
- package/lib/components/VTextField/_variables.scss +1 -1
- package/lib/components/VTextarea/VTextarea.mjs +22 -12
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.sass +0 -2
- package/lib/components/VTextarea/_variables.scss +1 -0
- package/lib/components/VTimeline/VTimeline.mjs +24 -25
- package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
- package/lib/components/VTimeline/VTimeline.sass +3 -3
- package/lib/components/VTimeline/VTimelineDivider.mjs +41 -38
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +10 -11
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/_variables.scss +11 -6
- package/lib/components/VToolbar/VToolbar.css +15 -6
- package/lib/components/VToolbar/VToolbar.mjs +9 -9
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbar.sass +15 -7
- package/lib/components/VToolbar/VToolbarItems.mjs +12 -8
- package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -1
- package/lib/components/VToolbar/_variables.scss +6 -2
- package/lib/components/VTooltip/VTooltip.mjs +41 -39
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +0 -1
- package/lib/components/VTooltip/_variables.scss +1 -0
- package/lib/components/VWindow/VWindow.mjs +4 -4
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/VWindow.sass +0 -2
- package/lib/components/VWindow/VWindowItem.mjs +21 -11
- package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
- package/lib/components/VWindow/_variables.scss +1 -0
- package/lib/components/index.d.ts +7316 -2666
- package/lib/components/transitions/dialog-transition.mjs +3 -0
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/components/transitions/index.mjs +0 -5
- package/lib/components/transitions/index.mjs.map +1 -1
- package/lib/composables/border.mjs +5 -6
- package/lib/composables/border.mjs.map +1 -1
- package/lib/composables/display.mjs +13 -11
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/form.mjs +6 -6
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/items.mjs +2 -2
- package/lib/composables/items.mjs.map +1 -1
- package/lib/composables/location.mjs +4 -8
- package/lib/composables/location.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +2 -1
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/size.mjs +2 -2
- package/lib/composables/size.mjs.map +1 -1
- package/lib/composables/ssrBoot.mjs +3 -2
- package/lib/composables/ssrBoot.mjs.map +1 -1
- package/lib/composables/stack.mjs +7 -7
- package/lib/composables/stack.mjs.map +1 -1
- package/lib/composables/theme.mjs +15 -6
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/validation.mjs +15 -8
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/composables/variant.mjs +7 -5
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/directives/ripple/VRipple.sass +0 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +29 -7
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.ts +68 -70
- package/lib/styles/generic/_transitions.scss +13 -77
- package/lib/styles/main.css +44 -58
- package/lib/styles/tools/_variant.sass +6 -6
- package/lib/util/anchor.mjs +34 -28
- package/lib/util/anchor.mjs.map +1 -1
- package/lib/util/animation.mjs +2 -2
- package/lib/util/animation.mjs.map +1 -1
- package/lib/util/box.mjs +12 -0
- package/lib/util/box.mjs.map +1 -1
- package/lib/util/getCurrentInstance.mjs +19 -0
- package/lib/util/getCurrentInstance.mjs.map +1 -1
- package/lib/util/helpers.mjs +21 -5
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +16 -10
- package/lib/components/VBanner/VBannerAvatar.mjs +0 -20
- package/lib/components/VBanner/VBannerAvatar.mjs.map +0 -1
- package/lib/components/VBanner/VBannerIcon.mjs +0 -20
- package/lib/components/VBanner/VBannerIcon.mjs.map +0 -1
- package/lib/components/VBreadcrumbs/shared.mjs +0 -2
- package/lib/components/VBreadcrumbs/shared.mjs.map +0 -1
- package/lib/components/VCard/VCardAvatar.mjs +0 -3
- package/lib/components/VCard/VCardAvatar.mjs.map +0 -1
- package/lib/components/VCard/VCardContent.mjs +0 -3
- package/lib/components/VCard/VCardContent.mjs.map +0 -1
- package/lib/components/VCard/VCardHeader.mjs +0 -3
- package/lib/components/VCard/VCardHeader.mjs.map +0 -1
- package/lib/components/VCard/VCardHeaderText.mjs +0 -3
- package/lib/components/VCard/VCardHeaderText.mjs.map +0 -1
- package/lib/components/VCard/VCardImg.mjs +0 -3
- package/lib/components/VCard/VCardImg.mjs.map +0 -1
- package/lib/components/VList/VListItemAvatar.mjs +0 -23
- package/lib/components/VList/VListItemAvatar.mjs.map +0 -1
- package/lib/components/VList/VListItemHeader.mjs +0 -3
- package/lib/components/VList/VListItemHeader.mjs.map +0 -1
- package/lib/components/VList/VListItemIcon.mjs +0 -23
- package/lib/components/VList/VListItemIcon.mjs.map +0 -1
- package/lib/components/VTimeline/shared.mjs +0 -2
- package/lib/components/VTimeline/shared.mjs.map +0 -1
- package/lib/presets/default/index.mjs +0 -71
- package/lib/presets/default/index.mjs.map +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
.v-card {
|
|
2
2
|
display: block;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
overflow-wrap: break-word;
|
|
3
5
|
position: relative;
|
|
4
6
|
padding: 0;
|
|
5
7
|
text-decoration: none;
|
|
6
8
|
transition-duration: 0.28s;
|
|
7
9
|
transition-property: box-shadow, opacity, background;
|
|
8
10
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
11
|
+
z-index: 0;
|
|
9
12
|
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
|
|
10
13
|
border-style: solid;
|
|
11
14
|
border-width: 0;
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
.v-card--active:focus > .v-card__overlay, .v-card[aria-haspopup=menu][aria-expanded=true]:focus > .v-card__overlay {
|
|
42
45
|
opacity: calc(0.16 * var(--v-theme-overlay-multiplier));
|
|
43
46
|
}
|
|
44
|
-
.v-card--variant-plain, .v-card--variant-outlined, .v-card--variant-text, .v-card--variant-
|
|
47
|
+
.v-card--variant-plain, .v-card--variant-outlined, .v-card--variant-text, .v-card--variant-tonal {
|
|
45
48
|
background: transparent;
|
|
46
49
|
color: inherit;
|
|
47
50
|
}
|
|
@@ -54,14 +57,14 @@
|
|
|
54
57
|
.v-card--variant-plain .v-card__overlay {
|
|
55
58
|
display: none;
|
|
56
59
|
}
|
|
57
|
-
.v-card--variant-
|
|
60
|
+
.v-card--variant-elevated, .v-card--variant-flat {
|
|
58
61
|
background: rgb(var(--v-theme-surface));
|
|
59
62
|
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
60
63
|
}
|
|
61
|
-
.v-card--variant-
|
|
64
|
+
.v-card--variant-elevated {
|
|
62
65
|
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
|
|
63
66
|
}
|
|
64
|
-
.v-card--variant-
|
|
67
|
+
.v-card--variant-flat {
|
|
65
68
|
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
|
|
66
69
|
}
|
|
67
70
|
.v-card--variant-outlined {
|
|
@@ -70,7 +73,7 @@
|
|
|
70
73
|
.v-card--variant-text .v-card__overlay {
|
|
71
74
|
background: currentColor;
|
|
72
75
|
}
|
|
73
|
-
.v-card--variant-
|
|
76
|
+
.v-card--variant-tonal .v-card__underlay {
|
|
74
77
|
background: currentColor;
|
|
75
78
|
opacity: var(--v-activated-opacity);
|
|
76
79
|
border-radius: inherit;
|
|
@@ -86,7 +89,7 @@
|
|
|
86
89
|
pointer-events: none;
|
|
87
90
|
user-select: none;
|
|
88
91
|
}
|
|
89
|
-
.v-card--disabled >
|
|
92
|
+
.v-card--disabled > :not(.v-card__loader) {
|
|
90
93
|
opacity: 0.6;
|
|
91
94
|
}
|
|
92
95
|
.v-card--flat {
|
|
@@ -127,9 +130,6 @@
|
|
|
127
130
|
.v-card--link {
|
|
128
131
|
cursor: pointer;
|
|
129
132
|
}
|
|
130
|
-
.v-card--tile {
|
|
131
|
-
border-radius: 0;
|
|
132
|
-
}
|
|
133
133
|
|
|
134
134
|
.v-card-actions {
|
|
135
135
|
align-items: center;
|
|
@@ -139,54 +139,81 @@
|
|
|
139
139
|
padding: 0.5rem;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.v-card-
|
|
143
|
-
align-
|
|
144
|
-
|
|
142
|
+
.v-card-item {
|
|
143
|
+
align-items: center;
|
|
144
|
+
display: grid;
|
|
145
|
+
flex: none;
|
|
146
|
+
grid-template-areas: "prepend content append";
|
|
147
|
+
grid-template-columns: max-content auto max-content;
|
|
148
|
+
padding: 0.625rem 1rem;
|
|
145
149
|
}
|
|
146
|
-
.v-card-
|
|
147
|
-
padding-
|
|
150
|
+
.v-card-item + .v-card-text {
|
|
151
|
+
padding-top: 0;
|
|
148
152
|
}
|
|
149
|
-
.v-card-
|
|
150
|
-
|
|
153
|
+
.v-card-item__prepend {
|
|
154
|
+
grid-area: prepend;
|
|
155
|
+
padding-inline-end: 1rem;
|
|
151
156
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
min-width: 0;
|
|
157
|
+
.v-card-item__append {
|
|
158
|
+
grid-area: append;
|
|
159
|
+
padding-inline-start: 1rem;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
.v-card-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
height: 100%;
|
|
162
|
-
flex: 1 1 auto;
|
|
163
|
-
left: 0;
|
|
162
|
+
.v-card-item__content {
|
|
163
|
+
align-self: center;
|
|
164
|
+
grid-area: content;
|
|
164
165
|
overflow: hidden;
|
|
165
|
-
position: absolute;
|
|
166
|
-
top: 0;
|
|
167
|
-
width: 100%;
|
|
168
166
|
}
|
|
169
167
|
|
|
170
|
-
.v-card-
|
|
171
|
-
|
|
172
|
-
display: flex;
|
|
168
|
+
.v-card-title {
|
|
169
|
+
display: block;
|
|
173
170
|
flex: none;
|
|
174
|
-
|
|
171
|
+
font-size: 1.25rem;
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
hyphens: auto;
|
|
174
|
+
letter-spacing: 0.0125em;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
overflow-wrap: normal;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
padding: 0.5rem 1rem;
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
text-overflow: ellipsis;
|
|
182
|
+
text-transform: none;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
word-break: normal;
|
|
186
|
+
word-wrap: break-word;
|
|
175
187
|
}
|
|
176
|
-
.v-card
|
|
188
|
+
.v-card .v-card-title {
|
|
189
|
+
line-height: 2rem;
|
|
190
|
+
}
|
|
191
|
+
.v-card--density-comfortable .v-card-title {
|
|
192
|
+
line-height: 1.75rem;
|
|
193
|
+
}
|
|
194
|
+
.v-card--density-compact .v-card-title {
|
|
195
|
+
line-height: 1.55rem;
|
|
196
|
+
}
|
|
197
|
+
.v-card-item .v-card-title {
|
|
198
|
+
padding: 0;
|
|
199
|
+
}
|
|
200
|
+
.v-card-title + .v-card-text,
|
|
201
|
+
.v-card-title + .v-card-actions {
|
|
177
202
|
padding-top: 0;
|
|
178
203
|
}
|
|
179
204
|
|
|
180
205
|
.v-card-subtitle {
|
|
181
|
-
|
|
182
|
-
display: flex;
|
|
206
|
+
display: block;
|
|
183
207
|
flex: none;
|
|
184
208
|
font-size: 0.875rem;
|
|
185
209
|
font-weight: 400;
|
|
186
210
|
letter-spacing: 0.0178571429em;
|
|
187
211
|
opacity: var(--v-medium-emphasis-opacity);
|
|
212
|
+
overflow: hidden;
|
|
188
213
|
padding: 0 1rem;
|
|
214
|
+
text-overflow: ellipsis;
|
|
189
215
|
text-transform: none;
|
|
216
|
+
white-space: nowrap;
|
|
190
217
|
}
|
|
191
218
|
.v-card .v-card-subtitle {
|
|
192
219
|
line-height: 1.25rem;
|
|
@@ -197,7 +224,7 @@
|
|
|
197
224
|
.v-card--density-compact .v-card-subtitle {
|
|
198
225
|
line-height: 1rem;
|
|
199
226
|
}
|
|
200
|
-
.v-card-
|
|
227
|
+
.v-card-item .v-card-subtitle {
|
|
201
228
|
padding: 0 0 0.25rem;
|
|
202
229
|
}
|
|
203
230
|
|
|
@@ -208,8 +235,6 @@
|
|
|
208
235
|
letter-spacing: 0.0178571429em;
|
|
209
236
|
padding: 1rem;
|
|
210
237
|
text-transform: none;
|
|
211
|
-
transition: inherit;
|
|
212
|
-
transition-property: color, opacity;
|
|
213
238
|
}
|
|
214
239
|
.v-card .v-card-text {
|
|
215
240
|
line-height: 1.25rem;
|
|
@@ -221,36 +246,32 @@
|
|
|
221
246
|
line-height: 1.15rem;
|
|
222
247
|
}
|
|
223
248
|
|
|
224
|
-
.v-
|
|
249
|
+
.v-card__image {
|
|
250
|
+
display: flex;
|
|
251
|
+
height: 100%;
|
|
225
252
|
flex: 1 1 auto;
|
|
226
|
-
|
|
253
|
+
left: 0;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
position: absolute;
|
|
256
|
+
top: 0;
|
|
257
|
+
width: 100%;
|
|
258
|
+
z-index: -1;
|
|
227
259
|
}
|
|
228
260
|
|
|
229
|
-
.v-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
font-size: 1.25rem;
|
|
234
|
-
font-weight: 500;
|
|
235
|
-
hyphens: auto;
|
|
236
|
-
letter-spacing: 0.0125em;
|
|
237
|
-
overflow-wrap: normal;
|
|
238
|
-
padding: 0.5rem 1rem;
|
|
239
|
-
text-transform: none;
|
|
240
|
-
word-break: normal;
|
|
241
|
-
word-wrap: break-word;
|
|
242
|
-
}
|
|
243
|
-
.v-card .v-card-title {
|
|
244
|
-
line-height: 2rem;
|
|
245
|
-
}
|
|
246
|
-
.v-card--density-comfortable .v-card-title {
|
|
247
|
-
line-height: 1.75rem;
|
|
248
|
-
}
|
|
249
|
-
.v-card--density-compact .v-card-title {
|
|
250
|
-
line-height: 1.55rem;
|
|
261
|
+
.v-card__content {
|
|
262
|
+
border-radius: inherit;
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
position: relative;
|
|
251
265
|
}
|
|
252
|
-
|
|
253
|
-
|
|
266
|
+
|
|
267
|
+
.v-card__loader {
|
|
268
|
+
bottom: auto;
|
|
269
|
+
top: 0;
|
|
270
|
+
left: 0;
|
|
271
|
+
position: absolute;
|
|
272
|
+
right: 0;
|
|
273
|
+
width: 100%;
|
|
274
|
+
z-index: 1;
|
|
254
275
|
}
|
|
255
276
|
|
|
256
277
|
.v-card__overlay {
|
|
@@ -264,8 +285,4 @@
|
|
|
264
285
|
pointer-events: none;
|
|
265
286
|
opacity: 0;
|
|
266
287
|
transition: opacity 0.2s ease-in-out;
|
|
267
|
-
}
|
|
268
|
-
.v-card__overlay + .v-card-media {
|
|
269
|
-
border-top-left-radius: inherit;
|
|
270
|
-
border-top-right-radius: inherit;
|
|
271
288
|
}
|
|
@@ -4,18 +4,17 @@ import { withDirectives as _withDirectives, resolveDirective as _resolveDirectiv
|
|
|
4
4
|
// Styles
|
|
5
5
|
import "./VCard.css"; // Components
|
|
6
6
|
|
|
7
|
-
import { VAvatar } from "../VAvatar/index.mjs";
|
|
8
|
-
import { VImg } from "../VImg/index.mjs";
|
|
9
7
|
import { VCardActions } from "./VCardActions.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { VCardContent } from "./VCardContent.mjs";
|
|
12
|
-
import { VCardHeader } from "./VCardHeader.mjs";
|
|
13
|
-
import { VCardHeaderText } from "./VCardHeaderText.mjs";
|
|
14
|
-
import { VCardImg } from "./VCardImg.mjs";
|
|
15
|
-
import { VCardSubtitle } from "./VCardSubtitle.mjs";
|
|
8
|
+
import { VCardItem } from "./VCardItem.mjs";
|
|
16
9
|
import { VCardText } from "./VCardText.mjs";
|
|
17
|
-
import {
|
|
10
|
+
import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs";
|
|
11
|
+
import { VImg } from "../VImg/index.mjs"; // Directives
|
|
12
|
+
|
|
13
|
+
import { Ripple } from "../../directives/ripple/index.mjs"; // Composables
|
|
18
14
|
|
|
15
|
+
import { genOverlays, makeVariantProps, useVariant } from "../../composables/variant.mjs";
|
|
16
|
+
import { IconValue } from "../../composables/icons.mjs";
|
|
17
|
+
import { LoaderSlot, makeLoaderProps, useLoader } from "../../composables/loader.mjs";
|
|
19
18
|
import { makeBorderProps, useBorder } from "../../composables/border.mjs";
|
|
20
19
|
import { makeDensityProps, useDensity } from "../../composables/density.mjs";
|
|
21
20
|
import { makeDimensionProps, useDimension } from "../../composables/dimensions.mjs";
|
|
@@ -25,14 +24,9 @@ import { makePositionProps, usePosition } from "../../composables/position.mjs";
|
|
|
25
24
|
import { makeRoundedProps, useRounded } from "../../composables/rounded.mjs";
|
|
26
25
|
import { makeRouterProps, useLink } from "../../composables/router.mjs";
|
|
27
26
|
import { makeTagProps } from "../../composables/tag.mjs";
|
|
28
|
-
import { makeThemeProps, provideTheme } from "../../composables/theme.mjs";
|
|
29
|
-
import { genOverlays, makeVariantProps, useVariant } from "../../composables/variant.mjs";
|
|
30
|
-
import { IconValue } from "../../composables/icons.mjs"; // Directives
|
|
31
|
-
|
|
32
|
-
import { Ripple } from "../../directives/ripple/index.mjs"; // Utilities
|
|
27
|
+
import { makeThemeProps, provideTheme } from "../../composables/theme.mjs"; // Utilities
|
|
33
28
|
|
|
34
|
-
import { defineComponent } from "../../util/index.mjs";
|
|
35
|
-
import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs";
|
|
29
|
+
import { defineComponent, useRender } from "../../util/index.mjs";
|
|
36
30
|
export const VCard = defineComponent({
|
|
37
31
|
name: 'VCard',
|
|
38
32
|
directives: {
|
|
@@ -57,13 +51,14 @@ export const VCard = defineComponent({
|
|
|
57
51
|
...makeDensityProps(),
|
|
58
52
|
...makeDimensionProps(),
|
|
59
53
|
...makeElevationProps(),
|
|
54
|
+
...makeLoaderProps(),
|
|
60
55
|
...makeLocationProps(),
|
|
61
56
|
...makePositionProps(),
|
|
62
57
|
...makeRoundedProps(),
|
|
63
58
|
...makeRouterProps(),
|
|
64
59
|
...makeTagProps(),
|
|
65
60
|
...makeVariantProps({
|
|
66
|
-
variant: '
|
|
61
|
+
variant: 'elevated'
|
|
67
62
|
})
|
|
68
63
|
},
|
|
69
64
|
|
|
@@ -92,6 +87,9 @@ export const VCard = defineComponent({
|
|
|
92
87
|
const {
|
|
93
88
|
elevationClasses
|
|
94
89
|
} = useElevation(props);
|
|
90
|
+
const {
|
|
91
|
+
loaderClasses
|
|
92
|
+
} = useLoader(props);
|
|
95
93
|
const {
|
|
96
94
|
locationStyles
|
|
97
95
|
} = useLocation(props);
|
|
@@ -102,17 +100,17 @@ export const VCard = defineComponent({
|
|
|
102
100
|
roundedClasses
|
|
103
101
|
} = useRounded(props);
|
|
104
102
|
const link = useLink(props, attrs);
|
|
105
|
-
|
|
106
|
-
var _slots$image, _slots$
|
|
103
|
+
useRender(() => {
|
|
104
|
+
var _slots$image, _slots$image2, _slots$text, _slots$text2, _slots$default;
|
|
107
105
|
|
|
108
106
|
const Tag = link.isLink.value ? 'a' : props.tag;
|
|
109
107
|
const hasTitle = !!(slots.title || props.title);
|
|
110
108
|
const hasSubtitle = !!(slots.subtitle || props.subtitle);
|
|
111
|
-
const
|
|
109
|
+
const hasHeader = hasTitle || hasSubtitle;
|
|
112
110
|
const hasAppend = !!(slots.append || props.appendAvatar || props.appendIcon);
|
|
113
111
|
const hasPrepend = !!(slots.prepend || props.prependAvatar || props.prependIcon);
|
|
114
112
|
const hasImage = !!(slots.image || props.image);
|
|
115
|
-
const
|
|
113
|
+
const hasCardItem = hasHeader || hasPrepend || hasAppend;
|
|
116
114
|
const hasText = !!(slots.text || props.text);
|
|
117
115
|
const isClickable = !props.disabled && (link.isClickable.value || props.link);
|
|
118
116
|
return _withDirectives(_createVNode(Tag, {
|
|
@@ -121,12 +119,13 @@ export const VCard = defineComponent({
|
|
|
121
119
|
'v-card--flat': props.flat,
|
|
122
120
|
'v-card--hover': props.hover && !(props.disabled || props.flat),
|
|
123
121
|
'v-card--link': isClickable
|
|
124
|
-
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value],
|
|
122
|
+
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, loaderClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value],
|
|
125
123
|
"style": [colorStyles.value, dimensionStyles.value, locationStyles.value],
|
|
126
124
|
"href": link.href.value,
|
|
127
125
|
"onClick": isClickable && link.navigate
|
|
128
126
|
}, {
|
|
129
|
-
default: () => [
|
|
127
|
+
default: () => [hasImage && _createVNode(VDefaultsProvider, {
|
|
128
|
+
"key": "image",
|
|
130
129
|
"defaults": {
|
|
131
130
|
VImg: {
|
|
132
131
|
cover: true,
|
|
@@ -134,52 +133,39 @@ export const VCard = defineComponent({
|
|
|
134
133
|
}
|
|
135
134
|
}
|
|
136
135
|
}, {
|
|
137
|
-
default: () => [_createVNode(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
density: props.density,
|
|
165
|
-
icon: props.appendIcon,
|
|
166
|
-
image: props.appendAvatar
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
default: () => [_createVNode(VCardAvatar, null, {
|
|
171
|
-
default: () => [slots.append ? slots.append() : _createVNode(VAvatar, null, null)]
|
|
172
|
-
})]
|
|
173
|
-
})]
|
|
174
|
-
}), hasText && _createVNode(VCardText, null, {
|
|
175
|
-
default: () => [slots.text ? slots.text() : props.text]
|
|
176
|
-
}), slots.content && _createVNode(VCardContent, null, {
|
|
177
|
-
default: slots.content
|
|
136
|
+
default: () => [_createVNode("div", {
|
|
137
|
+
"class": "v-card__image"
|
|
138
|
+
}, [(_slots$image = (_slots$image2 = slots.image) == null ? void 0 : _slots$image2.call(slots)) != null ? _slots$image : _createVNode(VImg, null, null)])]
|
|
139
|
+
}), _createVNode(LoaderSlot, {
|
|
140
|
+
"name": "v-card",
|
|
141
|
+
"active": !!props.loading,
|
|
142
|
+
"color": typeof props.loading === 'boolean' ? undefined : props.loading
|
|
143
|
+
}, {
|
|
144
|
+
default: slots.loader
|
|
145
|
+
}), hasCardItem && _createVNode(VCardItem, {
|
|
146
|
+
"key": "item",
|
|
147
|
+
"prependAvatar": props.prependAvatar,
|
|
148
|
+
"prependIcon": props.prependIcon,
|
|
149
|
+
"title": props.title,
|
|
150
|
+
"subtitle": props.subtitle,
|
|
151
|
+
"appendAvatar": props.appendAvatar,
|
|
152
|
+
"appendIcon": props.appendIcon
|
|
153
|
+
}, {
|
|
154
|
+
default: slots.item,
|
|
155
|
+
prepend: slots.prepend,
|
|
156
|
+
title: slots.title,
|
|
157
|
+
subtitle: slots.subtitle,
|
|
158
|
+
append: slots.append
|
|
159
|
+
}), hasText && _createVNode(VCardText, {
|
|
160
|
+
"key": "text"
|
|
161
|
+
}, {
|
|
162
|
+
default: () => [(_slots$text = (_slots$text2 = slots.text) == null ? void 0 : _slots$text2.call(slots)) != null ? _slots$text : props.text]
|
|
178
163
|
}), (_slots$default = slots.default) == null ? void 0 : _slots$default.call(slots), slots.actions && _createVNode(VCardActions, null, {
|
|
179
164
|
default: slots.actions
|
|
180
|
-
})]
|
|
165
|
+
}), genOverlays(isClickable, 'v-card')]
|
|
181
166
|
}), [[_resolveDirective("ripple"), isClickable]]);
|
|
182
|
-
};
|
|
167
|
+
});
|
|
168
|
+
return {};
|
|
183
169
|
}
|
|
184
170
|
|
|
185
171
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCard.mjs","names":["VAvatar","VImg","VCardActions","VCardAvatar","VCardContent","VCardHeader","VCardHeaderText","VCardImg","VCardSubtitle","VCardText","VCardTitle","makeBorderProps","useBorder","makeDensityProps","useDensity","makeDimensionProps","useDimension","makeElevationProps","useElevation","makeLocationProps","useLocation","makePositionProps","usePosition","makeRoundedProps","useRounded","makeRouterProps","useLink","makeTagProps","makeThemeProps","provideTheme","genOverlays","makeVariantProps","useVariant","IconValue","Ripple","defineComponent","VDefaultsProvider","VCard","name","directives","props","appendAvatar","String","appendIcon","disabled","Boolean","flat","hover","image","link","prependAvatar","prependIcon","ripple","subtitle","text","title","variant","setup","attrs","slots","themeClasses","borderClasses","colorClasses","colorStyles","variantClasses","densityClasses","dimensionStyles","elevationClasses","locationStyles","positionClasses","roundedClasses","Tag","isLink","value","tag","hasTitle","hasSubtitle","hasHeaderText","hasAppend","append","hasPrepend","prepend","hasImage","hasHeader","hasText","isClickable","href","navigate","cover","src","media","density","icon","headerText","content","default","actions"],"sources":["../../../src/components/VCard/VCard.tsx"],"sourcesContent":["/* eslint-disable complexity */\n\n// Styles\nimport './VCard.sass'\n\n// Components\nimport { VAvatar } from '@/components/VAvatar'\nimport { VImg } from '@/components/VImg'\nimport { VCardActions } from './VCardActions'\nimport { VCardAvatar } from './VCardAvatar'\nimport { VCardContent } from './VCardContent'\nimport { VCardHeader } from './VCardHeader'\nimport { VCardHeaderText } from './VCardHeaderText'\nimport { VCardImg } from './VCardImg'\nimport { VCardSubtitle } from './VCardSubtitle'\nimport { VCardText } from './VCardText'\nimport { VCardTitle } from './VCardTitle'\n\n// Composables\nimport { makeBorderProps, useBorder } from '@/composables/border'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { makeElevationProps, useElevation } from '@/composables/elevation'\nimport { makeLocationProps, useLocation } from '@/composables/location'\nimport { makePositionProps, usePosition } from '@/composables/position'\nimport { makeRoundedProps, useRounded } from '@/composables/rounded'\nimport { makeRouterProps, useLink } from '@/composables/router'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'\nimport { IconValue } from '@/composables/icons'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { defineComponent } from '@/util'\nimport { VDefaultsProvider } from '../VDefaultsProvider'\n\nexport const VCard = defineComponent({\n name: 'VCard',\n\n directives: { Ripple },\n\n props: {\n appendAvatar: String,\n appendIcon: IconValue,\n disabled: Boolean,\n flat: Boolean,\n hover: Boolean,\n image: String,\n link: Boolean,\n prependAvatar: String,\n prependIcon: IconValue,\n ripple: Boolean,\n subtitle: String,\n text: String,\n title: String,\n\n ...makeThemeProps(),\n ...makeBorderProps(),\n ...makeDensityProps(),\n ...makeDimensionProps(),\n ...makeElevationProps(),\n ...makeLocationProps(),\n ...makePositionProps(),\n ...makeRoundedProps(),\n ...makeRouterProps(),\n ...makeTagProps(),\n ...makeVariantProps({ variant: 'contained' } as const),\n },\n\n setup (props, { attrs, slots }) {\n const { themeClasses } = provideTheme(props)\n const { borderClasses } = useBorder(props)\n const { colorClasses, colorStyles, variantClasses } = useVariant(props)\n const { densityClasses } = useDensity(props)\n const { dimensionStyles } = useDimension(props)\n const { elevationClasses } = useElevation(props)\n const { locationStyles } = useLocation(props)\n const { positionClasses } = usePosition(props)\n const { roundedClasses } = useRounded(props)\n const link = useLink(props, attrs)\n\n return () => {\n const Tag = (link.isLink.value) ? 'a' : props.tag\n const hasTitle = !!(slots.title || props.title)\n const hasSubtitle = !!(slots.subtitle || props.subtitle)\n const hasHeaderText = hasTitle || hasSubtitle\n const hasAppend = !!(slots.append || props.appendAvatar || props.appendIcon)\n const hasPrepend = !!(slots.prepend || props.prependAvatar || props.prependIcon)\n const hasImage = !!(slots.image || props.image)\n const hasHeader = hasHeaderText || hasPrepend || hasAppend\n const hasText = !!(slots.text || props.text)\n const isClickable = !props.disabled && (link.isClickable.value || props.link)\n\n return (\n <Tag\n class={[\n 'v-card',\n {\n 'v-card--disabled': props.disabled,\n 'v-card--flat': props.flat,\n 'v-card--hover': props.hover && !(props.disabled || props.flat),\n 'v-card--link': isClickable,\n },\n themeClasses.value,\n borderClasses.value,\n colorClasses.value,\n densityClasses.value,\n elevationClasses.value,\n positionClasses.value,\n roundedClasses.value,\n variantClasses.value,\n ]}\n style={[\n colorStyles.value,\n dimensionStyles.value,\n locationStyles.value,\n ]}\n href={ link.href.value }\n onClick={ isClickable && link.navigate }\n v-ripple={ isClickable }\n >\n { genOverlays(isClickable, 'v-card') }\n\n { hasImage && (\n <VDefaultsProvider\n defaults={{\n VImg: {\n cover: true,\n src: props.image,\n },\n }}\n >\n <VCardImg>\n { slots.image ? slots.image?.() : (<VImg alt=\"\" />) }\n </VCardImg>\n </VDefaultsProvider>\n ) }\n\n { slots.media?.() }\n\n { hasHeader && (\n <VCardHeader>\n { hasPrepend && (\n <VDefaultsProvider\n defaults={{\n VAvatar: {\n density: props.density,\n icon: props.prependIcon,\n image: props.prependAvatar,\n },\n }}\n >\n <VCardAvatar>\n { slots.prepend ? slots.prepend() : (<VAvatar />) }\n </VCardAvatar>\n </VDefaultsProvider>\n ) }\n\n { hasHeaderText && (\n <VCardHeaderText>\n { hasTitle && (\n <VCardTitle>\n { slots.title ? slots.title() : props.title}\n </VCardTitle>\n ) }\n\n { hasSubtitle && (\n <VCardSubtitle>\n { slots.subtitle ? slots.subtitle() : props.subtitle }\n </VCardSubtitle>\n ) }\n\n { slots.headerText?.() }\n </VCardHeaderText>\n ) }\n\n { hasAppend && (\n <VDefaultsProvider\n defaults={{\n VAvatar: {\n density: props.density,\n icon: props.appendIcon,\n image: props.appendAvatar,\n },\n }}\n >\n <VCardAvatar>\n { slots.append ? slots.append() : (<VAvatar />) }\n </VCardAvatar>\n </VDefaultsProvider>\n ) }\n </VCardHeader>\n ) }\n\n { hasText && (\n <VCardText>\n { slots.text ? slots.text() : props.text }\n </VCardText>\n ) }\n\n { slots.content && (\n <VCardContent v-slots={{ default: slots.content }} />\n ) }\n\n { slots.default?.() }\n\n { slots.actions && (\n <VCardActions v-slots={{ default: slots.actions }} />\n ) }\n </Tag>\n )\n }\n },\n})\n\nexport type VCard = InstanceType<typeof VCard>\n"],"mappings":";;AAAA;AAEA;AACA,qB,CAEA;;SACSA,O;SACAC,I;SACAC,Y;SACAC,W;SACAC,Y;SACAC,W;SACAC,e;SACAC,Q;SACAC,a;SACAC,S;SACAC,U,4BAET;;SACSC,e,EAAiBC,S;SACjBC,gB,EAA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,CAACmC;QAAjB,CADvB,CA3GN,oBA+GMnC,KAAK,CAACoC,OA/GZ,qBA+GM,oBAAApC,KAAK,CA/GX,EAiHMA,KAAK,CAACqC,OAAN,qCACuB;UAAED,OAAO,EAAEpC,KAAK,CAACqC;QAAjB,CADvB,CAjHN;MAAA,mCA0BeX,WA1Bf;IAsHD,CAlID;EAmID;;AAhLkC,CAAD,CAA7B"}
|
|
1
|
+
{"version":3,"file":"VCard.mjs","names":["VCardActions","VCardItem","VCardText","VDefaultsProvider","VImg","Ripple","genOverlays","makeVariantProps","useVariant","IconValue","LoaderSlot","makeLoaderProps","useLoader","makeBorderProps","useBorder","makeDensityProps","useDensity","makeDimensionProps","useDimension","makeElevationProps","useElevation","makeLocationProps","useLocation","makePositionProps","usePosition","makeRoundedProps","useRounded","makeRouterProps","useLink","makeTagProps","makeThemeProps","provideTheme","defineComponent","useRender","VCard","name","directives","props","appendAvatar","String","appendIcon","disabled","Boolean","flat","hover","image","link","prependAvatar","prependIcon","ripple","subtitle","text","title","variant","setup","attrs","slots","themeClasses","borderClasses","colorClasses","colorStyles","variantClasses","densityClasses","dimensionStyles","elevationClasses","loaderClasses","locationStyles","positionClasses","roundedClasses","Tag","isLink","value","tag","hasTitle","hasSubtitle","hasHeader","hasAppend","append","hasPrepend","prepend","hasImage","hasCardItem","hasText","isClickable","href","navigate","cover","src","loading","undefined","default","loader","item","actions"],"sources":["../../../src/components/VCard/VCard.tsx"],"sourcesContent":["/* eslint-disable complexity */\n\n// Styles\nimport './VCard.sass'\n\n// Components\nimport { VCardActions } from './VCardActions'\nimport { VCardItem } from './VCardItem'\nimport { VCardText } from './VCardText'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\nimport { VImg } from '@/components/VImg'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Composables\nimport { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'\nimport { IconValue } from '@/composables/icons'\nimport { LoaderSlot, makeLoaderProps, useLoader } from '@/composables/loader'\nimport { makeBorderProps, useBorder } from '@/composables/border'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { makeElevationProps, useElevation } from '@/composables/elevation'\nimport { makeLocationProps, useLocation } from '@/composables/location'\nimport { makePositionProps, usePosition } from '@/composables/position'\nimport { makeRoundedProps, useRounded } from '@/composables/rounded'\nimport { makeRouterProps, useLink } from '@/composables/router'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { defineComponent, useRender } from '@/util'\n\nexport const VCard = defineComponent({\n name: 'VCard',\n\n directives: { Ripple },\n\n props: {\n appendAvatar: String,\n appendIcon: IconValue,\n disabled: Boolean,\n flat: Boolean,\n hover: Boolean,\n image: String,\n link: Boolean,\n prependAvatar: String,\n prependIcon: IconValue,\n ripple: Boolean,\n subtitle: String,\n text: String,\n title: String,\n\n ...makeThemeProps(),\n ...makeBorderProps(),\n ...makeDensityProps(),\n ...makeDimensionProps(),\n ...makeElevationProps(),\n ...makeLoaderProps(),\n ...makeLocationProps(),\n ...makePositionProps(),\n ...makeRoundedProps(),\n ...makeRouterProps(),\n ...makeTagProps(),\n ...makeVariantProps({ variant: 'elevated' } as const),\n },\n\n setup (props, { attrs, slots }) {\n const { themeClasses } = provideTheme(props)\n const { borderClasses } = useBorder(props)\n const { colorClasses, colorStyles, variantClasses } = useVariant(props)\n const { densityClasses } = useDensity(props)\n const { dimensionStyles } = useDimension(props)\n const { elevationClasses } = useElevation(props)\n const { loaderClasses } = useLoader(props)\n const { locationStyles } = useLocation(props)\n const { positionClasses } = usePosition(props)\n const { roundedClasses } = useRounded(props)\n const link = useLink(props, attrs)\n\n useRender(() => {\n const Tag = (link.isLink.value) ? 'a' : props.tag\n const hasTitle = !!(slots.title || props.title)\n const hasSubtitle = !!(slots.subtitle || props.subtitle)\n const hasHeader = hasTitle || hasSubtitle\n const hasAppend = !!(slots.append || props.appendAvatar || props.appendIcon)\n const hasPrepend = !!(slots.prepend || props.prependAvatar || props.prependIcon)\n const hasImage = !!(slots.image || props.image)\n const hasCardItem = hasHeader || hasPrepend || hasAppend\n const hasText = !!(slots.text || props.text)\n const isClickable = !props.disabled && (link.isClickable.value || props.link)\n\n return (\n <Tag\n class={[\n 'v-card',\n {\n 'v-card--disabled': props.disabled,\n 'v-card--flat': props.flat,\n 'v-card--hover': props.hover && !(props.disabled || props.flat),\n 'v-card--link': isClickable,\n },\n themeClasses.value,\n borderClasses.value,\n colorClasses.value,\n densityClasses.value,\n elevationClasses.value,\n loaderClasses.value,\n positionClasses.value,\n roundedClasses.value,\n variantClasses.value,\n ]}\n style={[\n colorStyles.value,\n dimensionStyles.value,\n locationStyles.value,\n ]}\n href={ link.href.value }\n onClick={ isClickable && link.navigate }\n v-ripple={ isClickable }\n >\n { hasImage && (\n <VDefaultsProvider\n key=\"image\"\n defaults={{\n VImg: {\n cover: true,\n src: props.image,\n },\n }}\n >\n <div class=\"v-card__image\">\n { slots.image?.() ?? <VImg /> }\n </div>\n </VDefaultsProvider>\n ) }\n\n <LoaderSlot\n name=\"v-card\"\n active={ !!props.loading }\n color={ typeof props.loading === 'boolean' ? undefined : props.loading }\n v-slots={{ default: slots.loader }}\n />\n\n { hasCardItem && (\n <VCardItem\n key=\"item\"\n prependAvatar={ props.prependAvatar }\n prependIcon={ props.prependIcon }\n title={ props.title }\n subtitle={ props.subtitle }\n appendAvatar={ props.appendAvatar }\n appendIcon={ props.appendIcon }\n >\n {{\n default: slots.item,\n prepend: slots.prepend,\n title: slots.title,\n subtitle: slots.subtitle,\n append: slots.append,\n }}\n </VCardItem>\n ) }\n\n { hasText && (\n <VCardText key=\"text\">\n { slots.text?.() ?? props.text }\n </VCardText>\n ) }\n\n { slots.default?.() }\n\n { slots.actions && (\n <VCardActions v-slots={{ default: slots.actions }} />\n ) }\n\n { genOverlays(isClickable, 'v-card') }\n </Tag>\n )\n })\n\n return {}\n },\n})\n\nexport type VCard = Instance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