Skip to content

Commit 50505df

Browse files
committed
refactor: resolve directives directly
1 parent dec238a commit 50505df

File tree

18 files changed

+38
-42
lines changed

18 files changed

+38
-42
lines changed

packages/vuetify/src/components/VBtn/VBtn.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { makeThemeProps, provideTheme } from '@/composables/theme'
2727
import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'
2828

2929
// Directives
30-
import { Ripple } from '@/directives/ripple'
30+
import vRipple from '@/directives/ripple'
3131

3232
// Utilities
3333
import { computed, toDisplayString, toRef, withDirectives } from 'vue'
@@ -300,7 +300,7 @@ export const VBtn = genericComponent<VBtnSlots>()({
300300
)}
301301
</Tag>,
302302
[[
303-
Ripple,
303+
vRipple,
304304
!isDisabled.value && props.ripple,
305305
'',
306306
{ center: !!props.icon },

packages/vuetify/src/components/VCard/VCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { makeThemeProps, provideTheme } from '@/composables/theme'
2727
import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'
2828

2929
// Directives
30-
import { Ripple } from '@/directives/ripple'
30+
import vRipple from '@/directives/ripple'
3131

3232
// Utilities
3333
import { genericComponent, propsFactory, useRender } from '@/util'
@@ -95,7 +95,7 @@ export type VCardSlots = VCardItemSlots & {
9595
export const VCard = genericComponent<VCardSlots>()({
9696
name: 'VCard',
9797

98-
directives: { Ripple },
98+
directives: { vRipple },
9999

100100
props: makeVCardProps(),
101101

packages/vuetify/src/components/VChip/VChip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { makeThemeProps, provideTheme } from '@/composables/theme'
2626
import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'
2727

2828
// Directives
29-
import { Ripple } from '@/directives/ripple'
29+
import vRipple from '@/directives/ripple'
3030

3131
// Utilities
3232
import { computed, toDisplayString, toRef } from 'vue'
@@ -112,7 +112,7 @@ export const makeVChipProps = propsFactory({
112112
export const VChip = genericComponent<VChipSlots>()({
113113
name: 'VChip',
114114

115-
directives: { Ripple },
115+
directives: { vRipple },
116116

117117
props: makeVChipProps(),
118118

packages/vuetify/src/components/VExpansionPanel/VExpansionPanelTitle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { makeDimensionProps, useDimension } from '@/composables/dimensions'
1010
import { IconValue } from '@/composables/icons'
1111

1212
// Directives
13-
import { Ripple } from '@/directives/ripple'
13+
import vRipple from '@/directives/ripple'
1414

1515
// Utilities
1616
import { computed, inject, toRef } from 'vue'
@@ -59,7 +59,7 @@ export const makeVExpansionPanelTitleProps = propsFactory({
5959
export const VExpansionPanelTitle = genericComponent<VExpansionPanelTitleSlots>()({
6060
name: 'VExpansionPanelTitle',
6161

62-
directives: { Ripple },
62+
directives: { vRipple },
6363

6464
props: makeVExpansionPanelTitleProps(),
6565

packages/vuetify/src/components/VImg/VImg.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { makeRoundedProps, useRounded } from '@/composables/rounded'
1111
import { makeTransitionProps, MaybeTransition } from '@/composables/transition'
1212

1313
// Directives
14-
import intersect from '@/directives/intersect'
14+
import vIntersect from '@/directives/intersect'
1515

1616
// Utilities
1717
import {
@@ -103,7 +103,7 @@ export const makeVImgProps = propsFactory({
103103
export const VImg = genericComponent<VImgSlots>()({
104104
name: 'VImg',
105105

106-
directives: { intersect },
106+
directives: { vIntersect },
107107

108108
props: makeVImgProps(),
109109

packages/vuetify/src/components/VLazy/VLazy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { makeTagProps } from '@/composables/tag'
66
import { makeTransitionProps, MaybeTransition } from '@/composables/transition'
77

88
// Directives
9-
import intersect from '@/directives/intersect'
9+
import vIntersect from '@/directives/intersect'
1010

1111
// Utilities
1212
import { genericComponent, propsFactory, useRender } from '@/util'
@@ -36,7 +36,7 @@ export const makeVLazyProps = propsFactory({
3636
export const VLazy = genericComponent()({
3737
name: 'VLazy',
3838

39-
directives: { intersect },
39+
directives: { vIntersect },
4040

4141
props: makeVLazyProps(),
4242

packages/vuetify/src/components/VList/VListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { makeThemeProps, provideTheme } from '@/composables/theme'
2424
import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'
2525

2626
// Directives
27-
import { Ripple } from '@/directives/ripple'
27+
import vRipple from '@/directives/ripple'
2828

2929
// Utilities
3030
import { computed, onBeforeMount, toDisplayString, toRef, watch } from 'vue'
@@ -111,7 +111,7 @@ export const makeVListItemProps = propsFactory({
111111
export const VListItem = genericComponent<VListItemSlots>()({
112112
name: 'VListItem',
113113

114-
directives: { Ripple },
114+
directives: { vRipple },
115115

116116
props: makeVListItemProps(),
117117

packages/vuetify/src/components/VOverlay/VOverlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { useToggleScope } from '@/composables/toggleScope'
2121
import { makeTransitionProps, MaybeTransition } from '@/composables/transition'
2222

2323
// Directives
24-
import { ClickOutside } from '@/directives/click-outside'
24+
import vClickOutside from '@/directives/click-outside'
2525

2626
// Utilities
2727
import {
@@ -115,7 +115,7 @@ export const makeVOverlayProps = propsFactory({
115115
export const VOverlay = genericComponent<OverlaySlots>()({
116116
name: 'VOverlay',
117117

118-
directives: { ClickOutside },
118+
directives: { vClickOutside },
119119

120120
inheritAttrs: false,
121121

packages/vuetify/src/components/VSelectionControl/VSelectionControl.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useDensity } from '@/composables/density'
1313
import { useProxiedModel } from '@/composables/proxiedModel'
1414

1515
// Directives
16-
import { Ripple } from '@/directives/ripple'
16+
import vRipple from '@/directives/ripple'
1717

1818
// Utilities
1919
import { computed, inject, nextTick, ref, shallowRef, toRef, useId } from 'vue'
@@ -149,7 +149,7 @@ export const VSelectionControl = genericComponent<new <T>(
149149
) => GenericProps<typeof props, typeof slots>>()({
150150
name: 'VSelectionControl',
151151

152-
directives: { Ripple },
152+
directives: { vRipple },
153153

154154
inheritAttrs: false,
155155

packages/vuetify/src/components/VSlider/VSliderThumb.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { useElevation } from '@/composables/elevation'
1212
import { useRtl } from '@/composables/locale'
1313

1414
// Directives
15-
import Ripple from '@/directives/ripple'
15+
import vRipple from '@/directives/ripple'
1616

1717
// Utilities
1818
import { computed, inject } from 'vue'
@@ -56,7 +56,7 @@ export const makeVSliderThumbProps = propsFactory({
5656
export const VSliderThumb = genericComponent<VSliderThumbSlots>()({
5757
name: 'VSliderThumb',
5858

59-
directives: { Ripple },
59+
directives: { vRipple },
6060

6161
props: makeVSliderThumbProps(),
6262

0 commit comments

Comments
 (0)