@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCheckbox.mjs","names":["filterInputProps","makeVInputProps","VInput","
|
|
1
|
+
{"version":3,"file":"VCheckbox.mjs","names":["filterInputProps","makeVInputProps","VInput","filterCheckboxBtnProps","makeVCheckboxBtnProps","VCheckboxBtn","computed","defineComponent","filterInputAttrs","getUid","useRender","VCheckbox","name","inheritAttrs","props","setup","attrs","slots","uid","id","inputAttrs","controlAttrs","inputProps","_1","checkboxProps","_2","value","default","isDisabled","isReadonly"],"sources":["../../../src/components/VCheckbox/VCheckbox.tsx"],"sourcesContent":["// Styles\nimport './VCheckbox.sass'\n\n// Components\nimport { filterInputProps, makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { filterCheckboxBtnProps, makeVCheckboxBtnProps, VCheckboxBtn } from './VCheckboxBtn'\n\n// Utilities\nimport { computed } from 'vue'\nimport { defineComponent, filterInputAttrs, getUid, useRender } from '@/util'\n\nexport const VCheckbox = defineComponent({\n name: 'VCheckbox',\n\n inheritAttrs: false,\n\n props: {\n ...makeVInputProps(),\n ...makeVCheckboxBtnProps(),\n },\n\n setup (props, { attrs, slots }) {\n const uid = getUid()\n const id = computed(() => props.id || `checkbox-${uid}`)\n\n useRender(() => {\n const [inputAttrs, controlAttrs] = filterInputAttrs(attrs)\n const [inputProps, _1] = filterInputProps(props)\n const [checkboxProps, _2] = filterCheckboxBtnProps(props)\n\n return (\n <VInput\n class=\"v-checkbox\"\n { ...inputAttrs }\n { ...inputProps }\n id={ id.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isReadonly,\n }) => (\n <VCheckboxBtn\n { ...checkboxProps }\n id={ id.value }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n { ...controlAttrs }\n v-slots={ slots }\n />\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VCheckbox = InstanceType<typeof VCheckbox>\n"],"mappings":";AAAA;AACA,yB,CAEA;;SACSA,gB,EAAkBC,e,EAAiBC,M;SACnCC,sB,EAAwBC,qB,EAAuBC,Y,8BAExD;;AACA,SAASC,QAAT,QAAyB,KAAzB;SACSC,e,EAAiBC,gB,EAAkBC,M,EAAQC,S;AAEpD,OAAO,MAAMC,SAAS,GAAGJ,eAAe,CAAC;EACvCK,IAAI,EAAE,WADiC;EAGvCC,YAAY,EAAE,KAHyB;EAKvCC,KAAK,EAAE,EACL,GAAGb,eAAe,EADb;IAEL,GAAGG,qBAAqB;EAFnB,CALgC;;EAUvCW,KAAK,CAAED,KAAF,QAA2B;IAAA,IAAlB;MAAEE,KAAF;MAASC;IAAT,CAAkB;IAC9B,MAAMC,GAAG,GAAGT,MAAM,EAAlB;IACA,MAAMU,EAAE,GAAGb,QAAQ,CAAC,MAAMQ,KAAK,CAACK,EAAN,IAAa,YAAWD,GAAI,EAAnC,CAAnB;IAEAR,SAAS,CAAC,MAAM;MACd,MAAM,CAACU,UAAD,EAAaC,YAAb,IAA6Bb,gBAAgB,CAACQ,KAAD,CAAnD;MACA,MAAM,CAACM,UAAD,EAAaC,EAAb,IAAmBvB,gBAAgB,CAACc,KAAD,CAAzC;MACA,MAAM,CAACU,aAAD,EAAgBC,EAAhB,IAAsBtB,sBAAsB,CAACW,KAAD,CAAlD;MAEA;QAAA,SAEU;MAFV,GAGSM,UAHT,EAISE,UAJT;QAAA,MAKSH,EAAE,CAACO;MALZ,MAQM,GAAGT,KART;QASMU,OAAO,EAAE;UAAA,IAAC;YACRR,EADQ;YAERS,UAFQ;YAGRC;UAHQ,CAAD;UAAA,8CAMAL,aANA;YAAA,MAOAL,EAAE,CAACO,KAPH;YAAA,YAQME,UAAU,CAACF,KARjB;YAAA,YASMG,UAAU,CAACH;UATjB,GAUAL,YAVA,GAWKJ,KAXL;QAAA;MATf;IA0BD,CA/BQ,CAAT;IAiCA,OAAO,EAAP;EACD;;AAhDsC,CAAD,CAAjC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective } from "vue";
|
|
2
|
+
// Components
|
|
3
|
+
import { makeSelectionControlProps, VSelectionControl } from "../VSelectionControl/VSelectionControl.mjs"; // Composables
|
|
4
|
+
|
|
5
|
+
import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
6
|
+
import { IconValue } from "../../composables/icons.mjs"; // Utilities
|
|
7
|
+
|
|
8
|
+
import { computed } from 'vue';
|
|
9
|
+
import { defineComponent, pick, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
|
10
|
+
|
|
11
|
+
export const makeVCheckboxBtnProps = propsFactory({
|
|
12
|
+
indeterminate: Boolean,
|
|
13
|
+
indeterminateIcon: {
|
|
14
|
+
type: IconValue,
|
|
15
|
+
default: '$checkboxIndeterminate'
|
|
16
|
+
},
|
|
17
|
+
...makeSelectionControlProps({
|
|
18
|
+
falseIcon: '$checkboxOff',
|
|
19
|
+
trueIcon: '$checkboxOn'
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
export const VCheckboxBtn = defineComponent({
|
|
23
|
+
name: 'VCheckboxBtn',
|
|
24
|
+
props: makeVCheckboxBtnProps(),
|
|
25
|
+
emits: {
|
|
26
|
+
'update:modelValue': value => true,
|
|
27
|
+
'update:indeterminate': val => true
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
setup(props, _ref) {
|
|
31
|
+
let {
|
|
32
|
+
slots,
|
|
33
|
+
emit
|
|
34
|
+
} = _ref;
|
|
35
|
+
const indeterminate = useProxiedModel(props, 'indeterminate');
|
|
36
|
+
|
|
37
|
+
function onChange(v) {
|
|
38
|
+
if (indeterminate.value) {
|
|
39
|
+
indeterminate.value = false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
emit('update:modelValue', v);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const falseIcon = computed(() => {
|
|
46
|
+
return props.indeterminate ? props.indeterminateIcon : props.falseIcon;
|
|
47
|
+
});
|
|
48
|
+
const trueIcon = computed(() => {
|
|
49
|
+
return props.indeterminate ? props.indeterminateIcon : props.trueIcon;
|
|
50
|
+
});
|
|
51
|
+
useRender(() => _createVNode(VSelectionControl, _mergeProps(props, {
|
|
52
|
+
"class": "v-checkbox-btn",
|
|
53
|
+
"type": "checkbox",
|
|
54
|
+
"inline": true,
|
|
55
|
+
"onUpdate:modelValue": onChange,
|
|
56
|
+
"falseIcon": falseIcon.value,
|
|
57
|
+
"trueIcon": trueIcon.value,
|
|
58
|
+
"aria-checked": props.indeterminate ? 'mixed' : undefined
|
|
59
|
+
}), slots));
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
});
|
|
64
|
+
export function filterCheckboxBtnProps(props) {
|
|
65
|
+
return pick(props, Object.keys(VCheckboxBtn.props));
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=VCheckboxBtn.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCheckboxBtn.mjs","names":["makeSelectionControlProps","VSelectionControl","useProxiedModel","IconValue","computed","defineComponent","pick","propsFactory","useRender","makeVCheckboxBtnProps","indeterminate","Boolean","indeterminateIcon","type","default","falseIcon","trueIcon","VCheckboxBtn","name","props","emits","value","val","setup","slots","emit","onChange","v","undefined","filterCheckboxBtnProps","Object","keys"],"sources":["../../../src/components/VCheckbox/VCheckboxBtn.tsx"],"sourcesContent":["// Components\nimport { makeSelectionControlProps, VSelectionControl } from '../VSelectionControl/VSelectionControl'\n\n// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed } from 'vue'\nimport { defineComponent, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ExtractPropTypes } from 'vue'\n\nexport const makeVCheckboxBtnProps = propsFactory({\n indeterminate: Boolean,\n indeterminateIcon: {\n type: IconValue,\n default: '$checkboxIndeterminate',\n },\n\n ...makeSelectionControlProps({\n falseIcon: '$checkboxOff',\n trueIcon: '$checkboxOn',\n }),\n})\n\nexport const VCheckboxBtn = defineComponent({\n name: 'VCheckboxBtn',\n\n props: makeVCheckboxBtnProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { slots, emit }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n\n function onChange (v: any) {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n\n emit('update:modelValue', v)\n }\n\n const falseIcon = computed(() => {\n return props.indeterminate\n ? props.indeterminateIcon\n : props.falseIcon\n })\n\n const trueIcon = computed(() => {\n return props.indeterminate\n ? props.indeterminateIcon\n : props.trueIcon\n })\n\n useRender(() => (\n <VSelectionControl\n { ...props }\n class=\"v-checkbox-btn\"\n type=\"checkbox\"\n inline\n onUpdate:modelValue={ onChange }\n falseIcon={ falseIcon.value }\n trueIcon={ trueIcon.value }\n aria-checked={ props.indeterminate ? 'mixed' : undefined }\n v-slots={ slots }\n />\n ))\n\n return {}\n },\n})\n\nexport type VCheckboxBtn = InstanceType<typeof VCheckboxBtn>\n\nexport function filterCheckboxBtnProps (props: ExtractPropTypes<ReturnType<typeof makeVCheckboxBtnProps>>) {\n return pick(props, Object.keys(VCheckboxBtn.props) as any)\n}\n"],"mappings":";AAAA;SACSA,yB,EAA2BC,iB,sDAEpC;;SACSC,e;SACAC,S,uCAET;;AACA,SAASC,QAAT,QAAyB,KAAzB;SACSC,e,EAAiBC,I,EAAMC,Y,EAAcC,S,gCAE9C;;AAGA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChDG,aAAa,EAAEC,OADiC;EAEhDC,iBAAiB,EAAE;IACjBC,IAAI,EAAEV,SADW;IAEjBW,OAAO,EAAE;EAFQ,CAF6B;EAOhD,GAAGd,yBAAyB,CAAC;IAC3Be,SAAS,EAAE,cADgB;IAE3BC,QAAQ,EAAE;EAFiB,CAAD;AAPoB,CAAD,CAA1C;AAaP,OAAO,MAAMC,YAAY,GAAGZ,eAAe,CAAC;EAC1Ca,IAAI,EAAE,cADoC;EAG1CC,KAAK,EAAEV,qBAAqB,EAHc;EAK1CW,KAAK,EAAE;IACL,qBAAsBC,KAAD,IAAgB,IADhC;IAEL,wBAAyBC,GAAD,IAAkB;EAFrC,CALmC;;EAU1CC,KAAK,CAAEJ,KAAF,QAA0B;IAAA,IAAjB;MAAEK,KAAF;MAASC;IAAT,CAAiB;IAC7B,MAAMf,aAAa,GAAGR,eAAe,CAACiB,KAAD,EAAQ,eAAR,CAArC;;IAEA,SAASO,QAAT,CAAmBC,CAAnB,EAA2B;MACzB,IAAIjB,aAAa,CAACW,KAAlB,EAAyB;QACvBX,aAAa,CAACW,KAAd,GAAsB,KAAtB;MACD;;MAEDI,IAAI,CAAC,mBAAD,EAAsBE,CAAtB,CAAJ;IACD;;IAED,MAAMZ,SAAS,GAAGX,QAAQ,CAAC,MAAM;MAC/B,OAAOe,KAAK,CAACT,aAAN,GACHS,KAAK,CAACP,iBADH,GAEHO,KAAK,CAACJ,SAFV;IAGD,CAJyB,CAA1B;IAMA,MAAMC,QAAQ,GAAGZ,QAAQ,CAAC,MAAM;MAC9B,OAAOe,KAAK,CAACT,aAAN,GACHS,KAAK,CAACP,iBADH,GAEHO,KAAK,CAACH,QAFV;IAGD,CAJwB,CAAzB;IAMAR,SAAS,CAAC,kDAEDW,KAFC;MAAA,SAGA,gBAHA;MAAA,QAID,UAJC;MAAA;MAAA,uBAMgBO,QANhB;MAAA,aAOMX,SAAS,CAACM,KAPhB;MAAA,YAQKL,QAAQ,CAACK,KARd;MAAA,gBASSF,KAAK,CAACT,aAAN,GAAsB,OAAtB,GAAgCkB;IATzC,IAUIJ,KAVJ,CAAD,CAAT;IAcA,OAAO,EAAP;EACD;;AAhDyC,CAAD,CAApC;AAqDP,OAAO,SAASK,sBAAT,CAAiCV,KAAjC,EAAoG;EACzG,OAAOb,IAAI,CAACa,KAAD,EAAQW,MAAM,CAACC,IAAP,CAAYd,YAAY,CAACE,KAAzB,CAAR,CAAX;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["VCheckbox"],"sources":["../../../src/components/VCheckbox/index.ts"],"sourcesContent":["export { VCheckbox } from './VCheckbox'\n"],"mappings":"SAASA,S"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["VCheckbox","VCheckboxBtn"],"sources":["../../../src/components/VCheckbox/index.ts"],"sourcesContent":["export { VCheckbox } from './VCheckbox'\nexport { VCheckboxBtn } from './VCheckboxBtn'\n"],"mappings":"SAASA,S;SACAC,Y"}
|
|
@@ -14,160 +14,230 @@
|
|
|
14
14
|
border-width: 0;
|
|
15
15
|
border-radius: 9999px;
|
|
16
16
|
}
|
|
17
|
-
.v-chip--size-x-small {
|
|
17
|
+
.v-chip.v-chip--size-x-small {
|
|
18
18
|
--v-chip-size: 0.625rem;
|
|
19
19
|
--v-chip-height: 20px;
|
|
20
20
|
font-size: 0.625rem;
|
|
21
21
|
padding: 0 8px;
|
|
22
22
|
}
|
|
23
|
-
.v-chip--size-x-small .v-avatar {
|
|
24
|
-
--v-avatar-height:
|
|
23
|
+
.v-chip.v-chip--size-x-small .v-avatar {
|
|
24
|
+
--v-avatar-height: 14px;
|
|
25
25
|
}
|
|
26
|
-
.v-chip--pill.v-chip--size-x-small .v-avatar {
|
|
26
|
+
.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar {
|
|
27
27
|
--v-avatar-height: 20px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.v-chip--size-x-small .v-
|
|
31
|
-
.v-chip--size-x-small .v-
|
|
32
|
-
|
|
30
|
+
.v-chip.v-chip--size-x-small .v-chip__filter,
|
|
31
|
+
.v-chip.v-chip--size-x-small .v-chip__prepend,
|
|
32
|
+
.v-chip.v-chip--size-x-small > .v-avatar--start,
|
|
33
|
+
.v-chip.v-chip--size-x-small > .v-icon--start {
|
|
33
34
|
margin-inline-end: 4px;
|
|
34
35
|
}
|
|
35
|
-
.v-chip
|
|
36
|
+
.v-chip.v-chip--size-x-small .v-chip__filter,
|
|
37
|
+
.v-chip.v-chip--size-x-small .v-chip__prepend,
|
|
38
|
+
.v-chip.v-chip--size-x-small .v-icon--start {
|
|
39
|
+
margin-inline-start: -4px;
|
|
40
|
+
}
|
|
41
|
+
.v-chip.v-chip--size-x-small .v-avatar--start {
|
|
42
|
+
margin-inline-start: -5.6px;
|
|
43
|
+
}
|
|
44
|
+
.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start {
|
|
36
45
|
margin-inline-start: -8px;
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
.v-chip--size-x-small .v-chip__append,
|
|
40
|
-
.v-chip--size-x-small .v-chip__close
|
|
41
|
-
|
|
48
|
+
.v-chip.v-chip--size-x-small .v-chip__append,
|
|
49
|
+
.v-chip.v-chip--size-x-small .v-chip__close,
|
|
50
|
+
.v-chip.v-chip--size-x-small > .v-avatar--end,
|
|
51
|
+
.v-chip.v-chip--size-x-small > .v-icon--end {
|
|
42
52
|
margin-inline-start: 4px;
|
|
53
|
+
margin-inline-end: -4px;
|
|
43
54
|
}
|
|
44
|
-
.v-chip--pill.v-chip--size-x-small .v-
|
|
55
|
+
.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end, .v-chip--pill.v-chip.v-chip--size-x-small .v-icon--end {
|
|
45
56
|
margin-inline-end: -8px;
|
|
46
57
|
}
|
|
58
|
+
.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end + .v-chip__close, .v-chip--pill.v-chip.v-chip--size-x-small .v-icon--end + .v-chip__close {
|
|
59
|
+
margin-inline-start: 8px;
|
|
60
|
+
}
|
|
47
61
|
|
|
48
|
-
.v-chip--size-small {
|
|
62
|
+
.v-chip.v-chip--size-small {
|
|
49
63
|
--v-chip-size: 0.75rem;
|
|
50
64
|
--v-chip-height: 26px;
|
|
51
65
|
font-size: 0.75rem;
|
|
52
66
|
padding: 0 10px;
|
|
53
67
|
}
|
|
54
|
-
.v-chip--size-small .v-avatar {
|
|
55
|
-
--v-avatar-height:
|
|
68
|
+
.v-chip.v-chip--size-small .v-avatar {
|
|
69
|
+
--v-avatar-height: 20px;
|
|
56
70
|
}
|
|
57
|
-
.v-chip--pill.v-chip--size-small .v-avatar {
|
|
71
|
+
.v-chip--pill.v-chip.v-chip--size-small .v-avatar {
|
|
58
72
|
--v-avatar-height: 26px;
|
|
59
73
|
}
|
|
60
74
|
|
|
61
|
-
.v-chip--size-small .v-
|
|
62
|
-
.v-chip--size-small .v-
|
|
63
|
-
|
|
75
|
+
.v-chip.v-chip--size-small .v-chip__filter,
|
|
76
|
+
.v-chip.v-chip--size-small .v-chip__prepend,
|
|
77
|
+
.v-chip.v-chip--size-small > .v-avatar--start,
|
|
78
|
+
.v-chip.v-chip--size-small > .v-icon--start {
|
|
64
79
|
margin-inline-end: 5px;
|
|
65
80
|
}
|
|
66
|
-
.v-chip
|
|
81
|
+
.v-chip.v-chip--size-small .v-chip__filter,
|
|
82
|
+
.v-chip.v-chip--size-small .v-chip__prepend,
|
|
83
|
+
.v-chip.v-chip--size-small .v-icon--start {
|
|
84
|
+
margin-inline-start: -5px;
|
|
85
|
+
}
|
|
86
|
+
.v-chip.v-chip--size-small .v-avatar--start {
|
|
87
|
+
margin-inline-start: -7px;
|
|
88
|
+
}
|
|
89
|
+
.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start {
|
|
67
90
|
margin-inline-start: -10px;
|
|
68
91
|
}
|
|
69
92
|
|
|
70
|
-
.v-chip--size-small .v-chip__append,
|
|
71
|
-
.v-chip--size-small .v-chip__close
|
|
72
|
-
|
|
93
|
+
.v-chip.v-chip--size-small .v-chip__append,
|
|
94
|
+
.v-chip.v-chip--size-small .v-chip__close,
|
|
95
|
+
.v-chip.v-chip--size-small > .v-avatar--end,
|
|
96
|
+
.v-chip.v-chip--size-small > .v-icon--end {
|
|
73
97
|
margin-inline-start: 5px;
|
|
98
|
+
margin-inline-end: -5px;
|
|
74
99
|
}
|
|
75
|
-
.v-chip--pill.v-chip--size-small .v-
|
|
100
|
+
.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end, .v-chip--pill.v-chip.v-chip--size-small .v-icon--end {
|
|
76
101
|
margin-inline-end: -10px;
|
|
77
102
|
}
|
|
103
|
+
.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end + .v-chip__close, .v-chip--pill.v-chip.v-chip--size-small .v-icon--end + .v-chip__close {
|
|
104
|
+
margin-inline-start: 10px;
|
|
105
|
+
}
|
|
78
106
|
|
|
79
|
-
.v-chip--size-default {
|
|
107
|
+
.v-chip.v-chip--size-default {
|
|
80
108
|
--v-chip-size: 0.875rem;
|
|
81
109
|
--v-chip-height: 32px;
|
|
82
110
|
font-size: 0.875rem;
|
|
83
111
|
padding: 0 12px;
|
|
84
112
|
}
|
|
85
|
-
.v-chip--size-default .v-avatar {
|
|
86
|
-
--v-avatar-height:
|
|
113
|
+
.v-chip.v-chip--size-default .v-avatar {
|
|
114
|
+
--v-avatar-height: 26px;
|
|
87
115
|
}
|
|
88
|
-
.v-chip--pill.v-chip--size-default .v-avatar {
|
|
116
|
+
.v-chip--pill.v-chip.v-chip--size-default .v-avatar {
|
|
89
117
|
--v-avatar-height: 32px;
|
|
90
118
|
}
|
|
91
119
|
|
|
92
|
-
.v-chip--size-default .v-
|
|
93
|
-
.v-chip--size-default .v-
|
|
94
|
-
|
|
120
|
+
.v-chip.v-chip--size-default .v-chip__filter,
|
|
121
|
+
.v-chip.v-chip--size-default .v-chip__prepend,
|
|
122
|
+
.v-chip.v-chip--size-default > .v-avatar--start,
|
|
123
|
+
.v-chip.v-chip--size-default > .v-icon--start {
|
|
95
124
|
margin-inline-end: 6px;
|
|
96
125
|
}
|
|
97
|
-
.v-chip
|
|
126
|
+
.v-chip.v-chip--size-default .v-chip__filter,
|
|
127
|
+
.v-chip.v-chip--size-default .v-chip__prepend,
|
|
128
|
+
.v-chip.v-chip--size-default .v-icon--start {
|
|
129
|
+
margin-inline-start: -6px;
|
|
130
|
+
}
|
|
131
|
+
.v-chip.v-chip--size-default .v-avatar--start {
|
|
132
|
+
margin-inline-start: -8.4px;
|
|
133
|
+
}
|
|
134
|
+
.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start {
|
|
98
135
|
margin-inline-start: -12px;
|
|
99
136
|
}
|
|
100
137
|
|
|
101
|
-
.v-chip--size-default .v-chip__append,
|
|
102
|
-
.v-chip--size-default .v-chip__close
|
|
103
|
-
|
|
138
|
+
.v-chip.v-chip--size-default .v-chip__append,
|
|
139
|
+
.v-chip.v-chip--size-default .v-chip__close,
|
|
140
|
+
.v-chip.v-chip--size-default > .v-avatar--end,
|
|
141
|
+
.v-chip.v-chip--size-default > .v-icon--end {
|
|
104
142
|
margin-inline-start: 6px;
|
|
143
|
+
margin-inline-end: -6px;
|
|
105
144
|
}
|
|
106
|
-
.v-chip--pill.v-chip--size-default .v-
|
|
145
|
+
.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end, .v-chip--pill.v-chip.v-chip--size-default .v-icon--end {
|
|
107
146
|
margin-inline-end: -12px;
|
|
108
147
|
}
|
|
148
|
+
.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end + .v-chip__close, .v-chip--pill.v-chip.v-chip--size-default .v-icon--end + .v-chip__close {
|
|
149
|
+
margin-inline-start: 12px;
|
|
150
|
+
}
|
|
109
151
|
|
|
110
|
-
.v-chip--size-large {
|
|
152
|
+
.v-chip.v-chip--size-large {
|
|
111
153
|
--v-chip-size: 1rem;
|
|
112
154
|
--v-chip-height: 38px;
|
|
113
155
|
font-size: 1rem;
|
|
114
156
|
padding: 0 14px;
|
|
115
157
|
}
|
|
116
|
-
.v-chip--size-large .v-avatar {
|
|
117
|
-
--v-avatar-height:
|
|
158
|
+
.v-chip.v-chip--size-large .v-avatar {
|
|
159
|
+
--v-avatar-height: 32px;
|
|
118
160
|
}
|
|
119
|
-
.v-chip--pill.v-chip--size-large .v-avatar {
|
|
161
|
+
.v-chip--pill.v-chip.v-chip--size-large .v-avatar {
|
|
120
162
|
--v-avatar-height: 38px;
|
|
121
163
|
}
|
|
122
164
|
|
|
123
|
-
.v-chip--size-large .v-
|
|
124
|
-
.v-chip--size-large .v-
|
|
125
|
-
|
|
165
|
+
.v-chip.v-chip--size-large .v-chip__filter,
|
|
166
|
+
.v-chip.v-chip--size-large .v-chip__prepend,
|
|
167
|
+
.v-chip.v-chip--size-large > .v-avatar--start,
|
|
168
|
+
.v-chip.v-chip--size-large > .v-icon--start {
|
|
126
169
|
margin-inline-end: 7px;
|
|
127
170
|
}
|
|
128
|
-
.v-chip
|
|
171
|
+
.v-chip.v-chip--size-large .v-chip__filter,
|
|
172
|
+
.v-chip.v-chip--size-large .v-chip__prepend,
|
|
173
|
+
.v-chip.v-chip--size-large .v-icon--start {
|
|
174
|
+
margin-inline-start: -7px;
|
|
175
|
+
}
|
|
176
|
+
.v-chip.v-chip--size-large .v-avatar--start {
|
|
177
|
+
margin-inline-start: -9.8px;
|
|
178
|
+
}
|
|
179
|
+
.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start {
|
|
129
180
|
margin-inline-start: -14px;
|
|
130
181
|
}
|
|
131
182
|
|
|
132
|
-
.v-chip--size-large .v-chip__append,
|
|
133
|
-
.v-chip--size-large .v-chip__close
|
|
134
|
-
|
|
183
|
+
.v-chip.v-chip--size-large .v-chip__append,
|
|
184
|
+
.v-chip.v-chip--size-large .v-chip__close,
|
|
185
|
+
.v-chip.v-chip--size-large > .v-avatar--end,
|
|
186
|
+
.v-chip.v-chip--size-large > .v-icon--end {
|
|
135
187
|
margin-inline-start: 7px;
|
|
188
|
+
margin-inline-end: -7px;
|
|
136
189
|
}
|
|
137
|
-
.v-chip--pill.v-chip--size-large .v-
|
|
190
|
+
.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end, .v-chip--pill.v-chip.v-chip--size-large .v-icon--end {
|
|
138
191
|
margin-inline-end: -14px;
|
|
139
192
|
}
|
|
193
|
+
.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end + .v-chip__close, .v-chip--pill.v-chip.v-chip--size-large .v-icon--end + .v-chip__close {
|
|
194
|
+
margin-inline-start: 14px;
|
|
195
|
+
}
|
|
140
196
|
|
|
141
|
-
.v-chip--size-x-large {
|
|
197
|
+
.v-chip.v-chip--size-x-large {
|
|
142
198
|
--v-chip-size: 1.125rem;
|
|
143
199
|
--v-chip-height: 44px;
|
|
144
200
|
font-size: 1.125rem;
|
|
145
201
|
padding: 0 17px;
|
|
146
202
|
}
|
|
147
|
-
.v-chip--size-x-large .v-avatar {
|
|
148
|
-
--v-avatar-height:
|
|
203
|
+
.v-chip.v-chip--size-x-large .v-avatar {
|
|
204
|
+
--v-avatar-height: 38px;
|
|
149
205
|
}
|
|
150
|
-
.v-chip--pill.v-chip--size-x-large .v-avatar {
|
|
206
|
+
.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar {
|
|
151
207
|
--v-avatar-height: 44px;
|
|
152
208
|
}
|
|
153
209
|
|
|
154
|
-
.v-chip--size-x-large .v-
|
|
155
|
-
.v-chip--size-x-large .v-
|
|
156
|
-
|
|
210
|
+
.v-chip.v-chip--size-x-large .v-chip__filter,
|
|
211
|
+
.v-chip.v-chip--size-x-large .v-chip__prepend,
|
|
212
|
+
.v-chip.v-chip--size-x-large > .v-avatar--start,
|
|
213
|
+
.v-chip.v-chip--size-x-large > .v-icon--start {
|
|
157
214
|
margin-inline-end: 8.5px;
|
|
158
215
|
}
|
|
159
|
-
.v-chip
|
|
216
|
+
.v-chip.v-chip--size-x-large .v-chip__filter,
|
|
217
|
+
.v-chip.v-chip--size-x-large .v-chip__prepend,
|
|
218
|
+
.v-chip.v-chip--size-x-large .v-icon--start {
|
|
219
|
+
margin-inline-start: -8.5px;
|
|
220
|
+
}
|
|
221
|
+
.v-chip.v-chip--size-x-large .v-avatar--start {
|
|
222
|
+
margin-inline-start: -11.9px;
|
|
223
|
+
}
|
|
224
|
+
.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start {
|
|
160
225
|
margin-inline-start: -17px;
|
|
161
226
|
}
|
|
162
227
|
|
|
163
|
-
.v-chip--size-x-large .v-chip__append,
|
|
164
|
-
.v-chip--size-x-large .v-chip__close
|
|
165
|
-
|
|
228
|
+
.v-chip.v-chip--size-x-large .v-chip__append,
|
|
229
|
+
.v-chip.v-chip--size-x-large .v-chip__close,
|
|
230
|
+
.v-chip.v-chip--size-x-large > .v-avatar--end,
|
|
231
|
+
.v-chip.v-chip--size-x-large > .v-icon--end {
|
|
166
232
|
margin-inline-start: 8.5px;
|
|
233
|
+
margin-inline-end: -8.5px;
|
|
167
234
|
}
|
|
168
|
-
.v-chip--pill.v-chip--size-x-large .v-
|
|
235
|
+
.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end, .v-chip--pill.v-chip.v-chip--size-x-large .v-icon--end {
|
|
169
236
|
margin-inline-end: -17px;
|
|
170
237
|
}
|
|
238
|
+
.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end + .v-chip__close, .v-chip--pill.v-chip.v-chip--size-x-large .v-icon--end + .v-chip__close {
|
|
239
|
+
margin-inline-start: 17px;
|
|
240
|
+
}
|
|
171
241
|
|
|
172
242
|
.v-chip.v-chip--density-default {
|
|
173
243
|
height: calc(var(--v-chip-height) + 0px);
|
|
@@ -181,7 +251,7 @@
|
|
|
181
251
|
height: calc(var(--v-chip-height) + -12px);
|
|
182
252
|
}
|
|
183
253
|
|
|
184
|
-
.v-chip--variant-plain, .v-chip--variant-outlined, .v-chip--variant-text, .v-chip--variant-
|
|
254
|
+
.v-chip--variant-plain, .v-chip--variant-outlined, .v-chip--variant-text, .v-chip--variant-tonal {
|
|
185
255
|
background: transparent;
|
|
186
256
|
color: inherit;
|
|
187
257
|
}
|
|
@@ -194,14 +264,14 @@
|
|
|
194
264
|
.v-chip--variant-plain .v-chip__overlay {
|
|
195
265
|
display: none;
|
|
196
266
|
}
|
|
197
|
-
.v-chip--variant-
|
|
267
|
+
.v-chip--variant-elevated, .v-chip--variant-flat {
|
|
198
268
|
background: rgb(var(--v-theme-surface-variant));
|
|
199
269
|
color: rgb(var(--v-theme-on-surface-variant));
|
|
200
270
|
}
|
|
201
|
-
.v-chip--variant-
|
|
271
|
+
.v-chip--variant-elevated {
|
|
202
272
|
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);
|
|
203
273
|
}
|
|
204
|
-
.v-chip--variant-
|
|
274
|
+
.v-chip--variant-flat {
|
|
205
275
|
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);
|
|
206
276
|
}
|
|
207
277
|
.v-chip--variant-outlined {
|
|
@@ -210,7 +280,7 @@
|
|
|
210
280
|
.v-chip--variant-text .v-chip__overlay {
|
|
211
281
|
background: currentColor;
|
|
212
282
|
}
|
|
213
|
-
.v-chip--variant-
|
|
283
|
+
.v-chip--variant-tonal .v-chip__underlay {
|
|
214
284
|
background: currentColor;
|
|
215
285
|
opacity: var(--v-activated-opacity);
|
|
216
286
|
border-radius: inherit;
|
|
@@ -228,6 +298,9 @@
|
|
|
228
298
|
.v-chip--link {
|
|
229
299
|
cursor: pointer;
|
|
230
300
|
}
|
|
301
|
+
.v-chip--filter {
|
|
302
|
+
user-select: none;
|
|
303
|
+
}
|
|
231
304
|
.v-chip--label {
|
|
232
305
|
border-radius: 4px;
|
|
233
306
|
}
|
|
@@ -252,6 +325,10 @@
|
|
|
252
325
|
font-size: inherit;
|
|
253
326
|
}
|
|
254
327
|
|
|
328
|
+
.v-chip__filter {
|
|
329
|
+
transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
330
|
+
}
|
|
331
|
+
|
|
255
332
|
.v-chip__overlay {
|
|
256
333
|
position: absolute;
|
|
257
334
|
top: 0;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { resolveDirective as _resolveDirective, withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable complexity */
|
|
2
4
|
// Styles
|
|
3
5
|
import "./VChip.css"; // Components
|
|
4
6
|
|
|
5
7
|
import { VAvatar } from "../VAvatar/index.mjs";
|
|
6
8
|
import { VChipGroupSymbol } from "../VChipGroup/VChipGroup.mjs";
|
|
9
|
+
import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs";
|
|
7
10
|
import { VExpandXTransition } from "../transitions/index.mjs";
|
|
8
11
|
import { VIcon } from "../VIcon/index.mjs"; // Composables
|
|
9
12
|
|
|
@@ -73,13 +76,14 @@ export const VChip = defineComponent({
|
|
|
73
76
|
}),
|
|
74
77
|
...makeThemeProps(),
|
|
75
78
|
...makeVariantProps({
|
|
76
|
-
variant: '
|
|
79
|
+
variant: 'tonal'
|
|
77
80
|
})
|
|
78
81
|
},
|
|
79
82
|
emits: {
|
|
80
83
|
'click:close': e => true,
|
|
81
84
|
'update:active': value => true,
|
|
82
|
-
'update:modelValue': value => true
|
|
85
|
+
'update:modelValue': value => true,
|
|
86
|
+
'group:selected': val => true
|
|
83
87
|
},
|
|
84
88
|
|
|
85
89
|
setup(props, _ref) {
|
|
@@ -88,10 +92,6 @@ export const VChip = defineComponent({
|
|
|
88
92
|
emit,
|
|
89
93
|
slots
|
|
90
94
|
} = _ref;
|
|
91
|
-
const isActive = useProxiedModel(props, 'modelValue');
|
|
92
|
-
const {
|
|
93
|
-
themeClasses
|
|
94
|
-
} = provideTheme(props);
|
|
95
95
|
const {
|
|
96
96
|
borderClasses
|
|
97
97
|
} = useBorder(props);
|
|
@@ -100,10 +100,12 @@ export const VChip = defineComponent({
|
|
|
100
100
|
colorStyles,
|
|
101
101
|
variantClasses
|
|
102
102
|
} = useVariant(props);
|
|
103
|
+
const {
|
|
104
|
+
densityClasses
|
|
105
|
+
} = useDensity(props);
|
|
103
106
|
const {
|
|
104
107
|
elevationClasses
|
|
105
108
|
} = useElevation(props);
|
|
106
|
-
const group = useGroupItem(props, VChipGroupSymbol, false);
|
|
107
109
|
const {
|
|
108
110
|
roundedClasses
|
|
109
111
|
} = useRounded(props);
|
|
@@ -111,8 +113,10 @@ export const VChip = defineComponent({
|
|
|
111
113
|
sizeClasses
|
|
112
114
|
} = useSize(props);
|
|
113
115
|
const {
|
|
114
|
-
|
|
115
|
-
} =
|
|
116
|
+
themeClasses
|
|
117
|
+
} = provideTheme(props);
|
|
118
|
+
const isActive = useProxiedModel(props, 'modelValue');
|
|
119
|
+
const group = useGroupItem(props, VChipGroupSymbol, false);
|
|
116
120
|
const link = useLink(props, attrs);
|
|
117
121
|
|
|
118
122
|
function onCloseClick(e) {
|
|
@@ -136,6 +140,7 @@ export const VChip = defineComponent({
|
|
|
136
140
|
'v-chip--disabled': props.disabled,
|
|
137
141
|
'v-chip--label': props.label,
|
|
138
142
|
'v-chip--link': isClickable,
|
|
143
|
+
'v-chip--filter': hasFilter,
|
|
139
144
|
'v-chip--pill': props.pill
|
|
140
145
|
}, themeClasses.value, borderClasses.value, hasColor ? colorClasses.value : undefined, densityClasses.value, elevationClasses.value, roundedClasses.value, sizeClasses.value, variantClasses.value, group == null ? void 0 : group.selectedClass.value],
|
|
141
146
|
"style": [hasColor ? colorStyles.value : undefined],
|
|
@@ -144,42 +149,76 @@ export const VChip = defineComponent({
|
|
|
144
149
|
"href": link.href.value,
|
|
145
150
|
"onClick": isClickable && onClickFunc
|
|
146
151
|
}, {
|
|
147
|
-
default: () => [genOverlays(isClickable, 'v-chip'), hasFilter && _createVNode(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
default: () => [genOverlays(isClickable, 'v-chip'), hasFilter && _createVNode(VDefaultsProvider, {
|
|
153
|
+
"key": "filter",
|
|
154
|
+
"defaults": {
|
|
155
|
+
VIcon: {
|
|
156
|
+
icon: props.filterIcon
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
default: () => [_createVNode(VExpandXTransition, null, {
|
|
161
|
+
default: () => [_withDirectives(_createVNode("div", {
|
|
162
|
+
"class": "v-chip__filter"
|
|
163
|
+
}, [slots.filter ? slots.filter() : _createVNode(VIcon, null, null)]), [[_vShow, group.isSelected.value]])]
|
|
164
|
+
})]
|
|
165
|
+
}), hasPrepend && _createVNode(VDefaultsProvider, {
|
|
166
|
+
"key": "prepend",
|
|
167
|
+
"defaults": {
|
|
168
|
+
VAvatar: {
|
|
169
|
+
image: props.prependAvatar
|
|
170
|
+
},
|
|
171
|
+
VIcon: {
|
|
172
|
+
icon: props.prependIcon
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
default: () => [slots.prepend ? _createVNode("div", {
|
|
177
|
+
"class": "v-chip__prepend"
|
|
178
|
+
}, [slots.prepend()]) : props.prependAvatar ? _createVNode(VAvatar, {
|
|
179
|
+
"start": true
|
|
180
|
+
}, null) : props.prependIcon ? _createVNode(VIcon, {
|
|
181
|
+
"start": true
|
|
182
|
+
}, null) : undefined]
|
|
183
|
+
}), (_slots$default = (_slots$default2 = slots.default) == null ? void 0 : _slots$default2.call(slots, {
|
|
160
184
|
isSelected: group == null ? void 0 : group.isSelected.value,
|
|
161
185
|
selectedClass: group == null ? void 0 : group.selectedClass.value,
|
|
162
186
|
select: group == null ? void 0 : group.select,
|
|
163
187
|
toggle: group == null ? void 0 : group.toggle,
|
|
164
188
|
value: group == null ? void 0 : group.value.value,
|
|
165
189
|
disabled: props.disabled
|
|
166
|
-
})) != null ? _slots$default : props.text, hasAppend && _createVNode(
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
190
|
+
})) != null ? _slots$default : props.text, hasAppend && _createVNode(VDefaultsProvider, {
|
|
191
|
+
"key": "append",
|
|
192
|
+
"defaults": {
|
|
193
|
+
VAvatar: {
|
|
194
|
+
image: props.appendAvatar
|
|
195
|
+
},
|
|
196
|
+
VIcon: {
|
|
197
|
+
icon: props.appendIcon
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
default: () => [slots.append ? _createVNode("div", {
|
|
202
|
+
"class": "v-chip__append"
|
|
203
|
+
}, [slots.append()]) : props.appendAvatar ? _createVNode(VAvatar, {
|
|
204
|
+
"end": true
|
|
205
|
+
}, null) : props.appendIcon ? _createVNode(VIcon, {
|
|
206
|
+
"end": true
|
|
207
|
+
}, null) : undefined]
|
|
208
|
+
}), hasClose && _createVNode(VDefaultsProvider, {
|
|
209
|
+
"key": "close",
|
|
210
|
+
"defaults": {
|
|
211
|
+
VIcon: {
|
|
212
|
+
icon: props.closeIcon,
|
|
213
|
+
size: 'x-small'
|
|
214
|
+
}
|
|
178
215
|
}
|
|
179
|
-
}
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
216
|
+
}, {
|
|
217
|
+
default: () => [_createVNode("div", {
|
|
218
|
+
"class": "v-chip__close",
|
|
219
|
+
"onClick": onCloseClick
|
|
220
|
+
}, [slots.close ? slots.close() : _createVNode(VIcon, null, null)])]
|
|
221
|
+
})]
|
|
183
222
|
}), [[_resolveDirective("ripple"), isClickable && props.ripple, null]]);
|
|
184
223
|
};
|
|
185
224
|
}
|