Skip to content

Commit

Permalink
fix: expand accepted icon prop types (#20727)
Browse files Browse the repository at this point in the history
fixes #19858
  • Loading branch information
J-Sek authored Nov 27, 2024
1 parent b7df7f0 commit aa4c7bb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VChip/VChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const makeVChipProps = propsFactory({
draggable: Boolean,
filter: Boolean,
filterIcon: {
type: String,
type: IconValue,
default: '$complete',
},
label: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { VDefaultsProvider } from '@/components/VDefaultsProvider'

// Composables
import { useBackgroundColor } from '@/composables/color'
import { IconValue } from '@/composables/icons'
import { MaybeTransition } from '@/composables/transition'

// Utilities
Expand All @@ -20,7 +21,7 @@ export type VDatePickerHeaderSlots = {
}

export const makeVDatePickerHeaderProps = propsFactory({
appendIcon: String,
appendIcon: IconValue,
color: String,
header: String,
transition: String,
Expand Down
5 changes: 3 additions & 2 deletions packages/vuetify/src/components/VList/VList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { provideDefaults } from '@/composables/defaults'
import { makeDensityProps, useDensity } from '@/composables/density'
import { makeDimensionProps, useDimension } from '@/composables/dimensions'
import { makeElevationProps, useElevation } from '@/composables/elevation'
import { IconValue } from '@/composables/icons'
import { makeItemsProps } from '@/composables/list-items'
import { makeNestedProps, useNested } from '@/composables/nested/nested'
import { makeRoundedProps, useRounded } from '@/composables/rounded'
Expand Down Expand Up @@ -86,8 +87,8 @@ export const makeVListProps = propsFactory({
activeClass: String,
bgColor: String,
disabled: Boolean,
expandIcon: String,
collapseIcon: String,
expandIcon: IconValue,
collapseIcon: IconValue,
lines: {
type: [Boolean, String] as PropType<'one' | 'two' | 'three' | false>,
default: 'one',
Expand Down
7 changes: 4 additions & 3 deletions packages/vuetify/src/components/VStepper/VStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { makeVSheetProps, VSheet } from '@/components/VSheet/VSheet'
import { provideDefaults } from '@/composables/defaults'
import { makeDisplayProps, useDisplay } from '@/composables/display'
import { makeGroupProps, useGroup } from '@/composables/group'
import { IconValue } from '@/composables/icons'

// Utilities
import { computed, toRefs } from 'vue'
Expand Down Expand Up @@ -48,10 +49,10 @@ export type VStepperSlots = {
export const makeStepperProps = propsFactory({
altLabels: Boolean,
bgColor: String,
completeIcon: String,
editIcon: String,
completeIcon: IconValue,
editIcon: IconValue,
editable: Boolean,
errorIcon: String,
errorIcon: IconValue,
hideActions: Boolean,
items: {
type: Array as PropType<readonly StepperItem[]>,
Expand Down
9 changes: 5 additions & 4 deletions packages/vuetify/src/components/VStepper/VStepperItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { VIcon } from '@/components/VIcon/VIcon'

// Composables
import { makeGroupItemProps, useGroupItem } from '@/composables/group'
import { IconValue } from '@/composables/icons'
import { genOverlays } from '@/composables/variant'

// Directives
Expand Down Expand Up @@ -47,20 +48,20 @@ export const makeStepperItemProps = propsFactory({
subtitle: String,
complete: Boolean,
completeIcon: {
type: String,
type: IconValue,
default: '$complete',
},
editable: Boolean,
editIcon: {
type: String,
type: IconValue,
default: '$edit',
},
error: Boolean,
errorIcon: {
type: String,
type: IconValue,
default: '$error',
},
icon: String,
icon: IconValue,
ripple: {
type: [Boolean, Object] as PropType<RippleDirectiveBinding['value']>,
default: true,
Expand Down

0 comments on commit aa4c7bb

Please sign in to comment.