Skip to content

Commit 4e4a044

Browse files
committed
feat(inputs): remove defaults in components pointing to prime icons because the actual default use svg #57
1 parent 62b8123 commit 4e4a044

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/components/PrimeDatePicker.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ function handleClearClick() {
9292
:select-other-months="context?.selectOtherMonths ?? false"
9393
:icon="context?.icon"
9494
:show-icon="context.showIcon"
95-
:previous-icon="context?.previousIcon ?? 'pi pi-chevron-left'"
96-
:next-icon="context?.nextIcon ?? 'pi pi-chevron-right'"
97-
:increment-icon="context?.incrementIcon ?? 'pi pi-chevron-up'"
98-
:decrement-icon="context?.decrementIcon ?? 'pi pi-chevron-down'"
95+
:previous-icon="context?.previousIcon"
96+
:next-icon="context?.nextIcon"
97+
:increment-icon="context?.incrementIcon"
98+
:decrement-icon="context?.decrementIcon"
9999
:number-of-months="context?.numberOfMonths ?? 1"
100100
:responsive-options="context?.responsiveOptions"
101101
:view="context?.view ?? 'date'"

src/components/PrimePassword.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.c
5454
:weak-label="context.weakLabel"
5555
:medium-label="context.mediumLabel"
5656
:strong-label="context.strongLabel"
57-
:mask-icon="context.maskIcon ?? 'pi pi-eye-slash'"
58-
:unmask-icon="context.unmaskIcon ?? 'pi pi-eye'"
57+
:mask-icon="context.maskIcon"
58+
:unmask-icon="context.unmaskIcon"
5959
:feedback="context.feedback ?? false"
6060
:toggle-mask="context.toggleMask ?? false"
6161
:pt="context.pt"

src/components/PrimeRating.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.c
4040
:aria-label="context?.attrs.ariaLabel"
4141
:aria-labelledby="context?.attrs.ariaLabelledby"
4242
:stars="context.stars ?? 5"
43-
:on-icon="context.onIcon ?? 'pi pi-star-fill'"
44-
:off-icon="context.offIcon ?? 'pi pi-star'"
43+
:on-icon="context.onIcon"
44+
:off-icon="context.offIcon"
4545
:pt="context.pt"
4646
:pt-options="context.ptOptions"
4747
:unstyled="unstyled"

src/components/PrimeToggleButton.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ const { unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.
4343
:aria-labelledby="context?.attrs.ariaLabelledby"
4444
:on-label="context.onLabel ?? 'Yes'"
4545
:off-label="context.offLabel ?? 'No'"
46-
:on-icon="context.onIcon ?? 'pi pi-check'"
47-
:off-icon="context.offIcon ?? 'pi pi-times'"
48-
:icon-pos="context.iconPos ?? 'left'"
46+
:on-icon="context.onIcon"
47+
:off-icon="context.offIcon"
48+
:icon-pos="context.iconPos"
4949
:pt="context.pt"
5050
:pt-options="context.ptOptions"
5151
:unstyled="unstyled"

0 commit comments

Comments
 (0)