From 4d640c4442dfbf979ec8a3d6d0c8edcfe88360dc Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 22 Mar 2024 11:53:44 +0300 Subject: [PATCH] Refactor #5437 - Removed shared classes --- components/lib/calendar/Calendar.vue | 8 +++++-- .../lib/calendar/style/CalendarStyle.js | 4 ++-- .../cascadeselect/style/CascadeSelectStyle.js | 2 +- components/lib/chips/style/ChipsStyle.js | 2 +- .../lib/colorpicker/style/ColorPickerStyle.js | 2 +- .../lib/confirmdialog/ConfirmDialog.vue | 2 +- .../confirmdialog/style/ConfirmDialogStyle.js | 2 +- components/lib/confirmpopup/ConfirmPopup.vue | 23 +++++++++++++++++-- .../confirmpopup/style/ConfirmPopupStyle.js | 4 ++-- .../lib/datatable/style/DataTableStyle.js | 8 +++---- .../lib/fileupload/style/FileUploadStyle.js | 10 ++++---- .../lib/password/style/PasswordStyle.js | 2 +- .../lib/speeddial/style/SpeedDialStyle.js | 2 +- .../lib/splitbutton/style/SplitButtonStyle.js | 12 +--------- .../lib/textarea/style/TextareaStyle.js | 2 +- components/lib/tree/style/TreeStyle.js | 2 +- 16 files changed, 50 insertions(+), 37 deletions(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index f8b6adc045..e91469112a 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -482,8 +482,12 @@
- +
diff --git a/components/lib/calendar/style/CalendarStyle.js b/components/lib/calendar/style/CalendarStyle.js index 1e8e39e514..10828072d0 100644 --- a/components/lib/calendar/style/CalendarStyle.js +++ b/components/lib/calendar/style/CalendarStyle.js @@ -66,8 +66,8 @@ const classes = { secondPicker: 'p-second-picker', ampmPicker: 'p-ampm-picker', buttonbar: 'p-datepicker-buttonbar', - todayButton: 'p-button-text', - clearButton: 'p-button-text' + todayButton: 'p-buttonbar-button', + clearButton: 'p-buttonbar-button' }; export default BaseStyle.extend({ diff --git a/components/lib/cascadeselect/style/CascadeSelectStyle.js b/components/lib/cascadeselect/style/CascadeSelectStyle.js index 0ff61058e8..326934a017 100644 --- a/components/lib/cascadeselect/style/CascadeSelectStyle.js +++ b/components/lib/cascadeselect/style/CascadeSelectStyle.js @@ -18,7 +18,7 @@ const classes = { } ], label: ({ instance, props }) => [ - 'p-cascadeselect-label p-inputtext', + 'p-cascadeselect-label', { 'p-placeholder': instance.label === props.placeholder, 'p-cascadeselect-label-empty': !instance.$slots['value'] && (instance.label === 'p-emptylabel' || instance.label.length === 0) diff --git a/components/lib/chips/style/ChipsStyle.js b/components/lib/chips/style/ChipsStyle.js index 61a5c27ded..7fe34ee00e 100644 --- a/components/lib/chips/style/ChipsStyle.js +++ b/components/lib/chips/style/ChipsStyle.js @@ -12,7 +12,7 @@ const classes = { } ], container: ({ props, instance }) => [ - 'p-inputtext p-chips-multiple-container', + 'p-chips-multiple-container', { 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled' } diff --git a/components/lib/colorpicker/style/ColorPickerStyle.js b/components/lib/colorpicker/style/ColorPickerStyle.js index 85d036f14e..024d522fbe 100644 --- a/components/lib/colorpicker/style/ColorPickerStyle.js +++ b/components/lib/colorpicker/style/ColorPickerStyle.js @@ -2,7 +2,7 @@ import BaseStyle from 'primevue/base/style'; const classes = { root: ({ props }) => ['p-colorpicker p-component', { 'p-colorpicker-overlay': !props.inline }], - input: ({ props }) => ['p-colorpicker-preview p-inputtext', { 'p-disabled': props.disabled }], + input: ({ props }) => ['p-colorpicker-preview', { 'p-disabled': props.disabled }], panel: ({ instance, props }) => [ 'p-colorpicker-panel', { diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 5f8140661a..72992520f4 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -28,7 +28,7 @@