Skip to content

Commit 8b3afee

Browse files
committed
refactor(icons): Breaking change name of leftIcon property to iconPrefix and right icon property to iconSuffix to prevent conflicts with formkits icon resolver #49
1 parent 6a5760a commit 8b3afee

23 files changed

+67
-87
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
- **inputs:** Use prefix and suffix instead of labelLeft and labelRight ([206fbea](https://github.com/sfxcode/formkit-primevue/commit/206fbea))
4848
- **RadioButton:** Use flex styling for better aligning in default ([68c7950](https://github.com/sfxcode/formkit-primevue/commit/68c7950))
49-
- **Outputs:** Add prefix, prefixIcon, suffix, suffixIcon to definition ([3b1579a](https://github.com/sfxcode/formkit-primevue/commit/3b1579a))
49+
- **Outputs:** Add prefix, iconPrefix, suffix, iconSuffix to definition ([3b1579a](https://github.com/sfxcode/formkit-primevue/commit/3b1579a))
5050
- **editor:** Use Columns ([433439d](https://github.com/sfxcode/formkit-primevue/commit/433439d))
5151

5252
### ❤️ Contributors

dev/pages/inputs/InputMask.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const schema
1616
name: 'custom',
1717
label: 'Input Mask',
1818
mask: '(999) 999-9999',
19-
unmask: true,
19+
iconPrefix: 'pi pi-check',
20+
iconSuffix: 'pi pi-check',
2021
},
2122
{
2223
$formkit: 'primeInputMask',

dev/pages/inputs/InputText.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = 'placeholder'
3-
const customAttributes = 'prefixIcon, suffixIcon'
3+
const customAttributes = 'iconPrefix, iconSuffix'
44
55
const schema
66
= [
@@ -18,14 +18,14 @@ const schema
1818
label: 'Icon Left',
1919
help: '',
2020
placeholder: 'icon',
21-
prefixIcon: 'pi pi-check',
21+
iconPrefix: 'pi pi-check',
2222
},
2323
{
2424
$formkit: 'primeInputText',
2525
name: 'iconRight',
2626
label: 'Icon Right (Disabled)',
2727
help: 'Right Icon Demo',
28-
suffixIcon: 'pi pi-check',
28+
iconSuffix: 'pi pi-check',
2929
disabled: true,
3030
},
3131

dev/pages/outputs/OutputBoolean.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [
@@ -9,24 +9,24 @@ const schema
99
name: 'trueValue',
1010
label: 'True Example',
1111
prefix: 'MyValue',
12-
prefixIcon: 'pi pi-check',
12+
iconPrefix: 'pi pi-check',
1313
1414
},
1515
{
1616
$formkit: 'primeOutputBoolean',
1717
name: 'falseValue',
1818
label: 'False',
1919
suffix: 'MyValue',
20-
suffixIcon: 'pi pi-check',
20+
iconSuffix: 'pi pi-check',
2121
},
2222
{
2323
$formkit: 'primeOutputBoolean',
2424
name: 'falseValue',
2525
label: 'False',
2626
prefix: 'prefix',
27-
prefixIcon: 'pi pi-check',
27+
iconPrefix: 'pi pi-check',
2828
suffix: 'suffix',
29-
suffixIcon: 'pi pi-times',
29+
iconSuffix: 'pi pi-times',
3030
},
3131
3232
]

dev/pages/outputs/OutputDate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [
@@ -15,14 +15,14 @@ const schema
1515
name: 'date2',
1616
label: 'Icon Left',
1717
help: '',
18-
prefixIcon: 'pi pi-check',
18+
iconPrefix: 'pi pi-check',
1919
},
2020
{
2121
$formkit: 'primeOutputDate',
2222
name: 'date3',
2323
label: 'Icon Right',
2424
help: 'Right Icon Demo',
25-
suffixIcon: 'pi pi-check text-yellow-500',
25+
iconSuffix: 'pi pi-check text-yellow-500',
2626
},
2727
2828
]

dev/pages/outputs/OutputDuration.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [

dev/pages/outputs/OutputLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [

dev/pages/outputs/OutputList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [

dev/pages/outputs/OutputNumber.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [
@@ -15,15 +15,15 @@ const schema
1515
name: 'number2',
1616
label: 'Icon Left',
1717
help: '',
18-
prefixIcon: 'pi pi-check',
18+
iconPrefix: 'pi pi-check',
1919
},
2020
{
2121
$formkit: 'primeOutputNumber',
2222
name: 'number3',
2323
format: 'currency',
2424
label: 'Icon Right',
2525
help: 'Right Icon Demo',
26-
suffixIcon: 'pi pi-check',
26+
iconSuffix: 'pi pi-check',
2727
2828
},
2929

dev/pages/outputs/OutputText.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = ''
3-
const customAttributes = 'prefixIcon, prefix, suffix, suffixIcon'
3+
const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix'
44
55
const schema
66
= [
@@ -15,14 +15,14 @@ const schema
1515
name: 'iconLeft',
1616
label: 'Icon Left',
1717
help: '',
18-
prefixIcon: 'pi pi-check',
18+
iconPrefix: 'pi pi-check',
1919
},
2020
{
2121
$formkit: 'primeOutputText',
2222
name: 'iconRight',
2323
label: 'Icon Right',
2424
help: 'Right Icon Demo',
25-
suffixIcon: 'pi pi-check text-yellow-500',
25+
iconSuffix: 'pi pi-check text-yellow-500',
2626
},
2727
2828
]

0 commit comments

Comments
 (0)