Skip to content

Commit 1547f2d

Browse files
committed
feat(unstyled): reflect changes in primevue config
1 parent a9e62bd commit 1547f2d

24 files changed

+52
-45
lines changed

src/components/PrimeAutoComplete.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const props = defineProps({
2121
},
2222
})
2323
24-
const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
24+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
2525
2626
const suggestions = ref([])
2727
@@ -48,7 +48,7 @@ function search(event: AutoCompleteCompleteEvent) {
4848
:typeahead="context?.typeahead ?? true"
4949
:pt="context?.pt"
5050
:pt-options="context?.ptOptions"
51-
:unstyled="context?.unstyled ?? false"
51+
:unstyled="unstyled"
5252
@keydown.enter.prevent
5353
@complete="search"
5454
@change="handleInput"

src/components/PrimeCascadeSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const props = defineProps({
2525
},
2626
})
2727
28-
const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
28+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
2929
</script>
3030

3131
<template>
@@ -49,7 +49,7 @@ const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
4949
:placeholder="context.placeholder"
5050
:pt="context.pt"
5151
:pt-options="context.ptOptions"
52-
:unstyled="context.unstyled ?? false"
52+
:unstyled="unstyled"
5353
@change="handleInput"
5454
@blur="handleBlur"
5555
/>

src/components/PrimeCheckbox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const props = defineProps({
2525
2626
const { hasPrefix, hasSuffix, generateId } = useFormKitSection(props.context)
2727
28-
const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
28+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
2929
3030
const generatedId = generateId()
3131
</script>
@@ -54,7 +54,7 @@ const generatedId = generateId()
5454
:false-value="context.falseValue ?? undefined"
5555
:pt="context.pt"
5656
:pt-options="context.ptOptions"
57-
:unstyled="context.unstyled ?? false"
57+
:unstyled="unstyled"
5858
@change="handleInput"
5959
@blur="handleBlur"
6060
/>

src/components/PrimeColorPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const { handleChange } = useFormKitInput(props.context)
4242
:format="context.format"
4343
:pt="context.pt"
4444
:pt-options="context.ptOptions"
45-
:unstyled="context.unstyled ?? false"
45+
:unstyled="unstyled"
4646
@change="handleChange"
4747
/>
4848
</div>

src/components/PrimeDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const props = defineProps({
5959
},
6060
})
6161
62-
const { isInvalid, handleInput, handleSelect } = useFormKitInput(props.context)
62+
const { unstyled, isInvalid, handleInput, handleSelect } = useFormKitInput(props.context)
6363
6464
function handleBlur(e: DatePickerBlurEvent) {
6565
props.context?.handlers.blur(e.originalEvent)

src/components/PrimeEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const props = defineProps({
2222
},
2323
})
2424
25-
const { isInvalid, handleInput } = useFormKitInput(props.context)
25+
const { unstyled, isInvalid, handleInput } = useFormKitInput(props.context)
2626
2727
function handleSelection(e: EditorSelectionChangeEvent) {
2828
if (e.range === null)
@@ -49,7 +49,7 @@ function handleSelection(e: EditorSelectionChangeEvent) {
4949
:modules="context.modules"
5050
:pt="context.pt"
5151
:pt-options="context.ptOptions"
52-
:unstyled="context.unstyled ?? false"
52+
:unstyled="unstyled"
5353
@text-change="handleInput"
5454
@selection-change="handleSelection"
5555
/>

src/components/PrimeInputMask.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const props = defineProps({
2626
},
2727
})
2828
29-
const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
29+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
3030
const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
3131
</script>
3232

@@ -52,7 +52,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
5252
:pt="context.pt"
5353
:variant="context.variant"
5454
:pt-options="context.ptOptions"
55-
:unstyled="context.unstyled ?? false"
55+
:unstyled="unstyled"
5656
@input="handleInput"
5757
@blur="handleBlur"
5858
/>

src/components/PrimeInputNumber.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const props = defineProps({
3333
},
3434
})
3535
36-
const { isInvalid, handleInput } = useFormKitInput(props.context)
36+
const { unstyled, isInvalid, handleInput } = useFormKitInput(props.context)
3737
3838
function handleBlur(e: InputNumberBlurEvent) {
3939
props.context?.handlers.blur(e.originalEvent)
@@ -70,7 +70,7 @@ function handleBlur(e: InputNumberBlurEvent) {
7070
:step="context.step ?? undefined"
7171
:pt="context.pt"
7272
:pt-options="context.ptOptions"
73-
:unstyled="context.unstyled ?? false"
73+
:unstyled="unstyled"
7474
@input="handleInput"
7575
@blur="handleBlur"
7676
/>

src/components/PrimeInputOtp.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const props = defineProps({
2323
},
2424
})
2525
26-
const { isInvalid, handleBlur, handleInput } = useFormKitInput(props.context)
26+
const { unstyled, isInvalid, handleBlur, handleInput } = useFormKitInput(props.context)
2727
</script>
2828

2929
<template>
@@ -46,7 +46,7 @@ const { isInvalid, handleBlur, handleInput } = useFormKitInput(props.context)
4646
:integer-only="context.integerOnly"
4747
:pt="context.pt"
4848
:pt-options="context.ptOptions"
49-
:unstyled="context.unstyled ?? false"
49+
:unstyled="unstyled"
5050
@change="handleInput"
5151
@blur="handleBlur"
5252
/>

src/components/PrimeInputText.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const props = defineProps({
2121
},
2222
})
2323
24-
const { isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
24+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
2525
const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
2626
</script>
2727

@@ -44,7 +44,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
4444
:placeholder="context.placeholder"
4545
:pt="context.pt"
4646
:pt-options="context.ptOptions"
47-
:unstyled="context.unstyled ?? false"
47+
:unstyled="unstyled"
4848
@input="handleInput"
4949
@blur="handleBlur"
5050
/>

0 commit comments

Comments
 (0)