pull/5206/head
tugcekucukoglu 2024-02-02 16:26:27 +03:00
parent 44dd2b5e59
commit 90cd9e288e
28 changed files with 20 additions and 26 deletions

View File

@ -98,7 +98,7 @@ const AutoCompleteProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -266,7 +266,7 @@ const CalendarProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -62,7 +62,7 @@ const CascadeSelectProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -32,7 +32,7 @@ const CheckboxProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -44,7 +44,7 @@ const ChipsProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -104,7 +104,7 @@ const DropdownProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -38,7 +38,7 @@ const InputMaskProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -156,7 +156,7 @@ const InputNumberProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -20,7 +20,7 @@ const InputTextProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -68,7 +68,7 @@ const MultiSelectProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -92,7 +92,7 @@ const PasswordProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -32,7 +32,7 @@ const RadioButtonProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -20,7 +20,7 @@ const TextareaProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -38,7 +38,7 @@ const TreeSelectProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -20,7 +20,7 @@ const TriStateCheckboxProps = [
{ {
name: 'variant', name: 'variant',
type: 'string', type: 'string',
default: 'outlined', default: 'null',
description: 'Specifies the input variant of the component.' description: 'Specifies the input variant of the component.'
}, },
{ {

View File

@ -20,7 +20,6 @@ const classes = {
{ {
'p-colorpicker-overlay-panel': !props.inline, 'p-colorpicker-overlay-panel': !props.inline,
'p-disabled': props.disabled, 'p-disabled': props.disabled,
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -78,7 +78,6 @@ const classes = {
root: ({ instance }) => [ root: ({ instance }) => [
'p-confirm-popup p-component', 'p-confirm-popup p-component',
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -50,7 +50,6 @@ const classes = {
root: ({ instance }) => [ root: ({ instance }) => [
'p-contextmenu p-component', 'p-contextmenu p-component',
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -323,7 +323,6 @@ const classes = {
{ {
'p-column-filter-overlay p-component p-fluid': true, 'p-column-filter-overlay p-component p-fluid': true,
'p-column-filter-overlay-menu': props.display === 'menu', 'p-column-filter-overlay-menu': props.display === 'menu',
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -171,7 +171,6 @@ const classes = {
{ {
'p-dialog-rtl': props.rtl, 'p-dialog-rtl': props.rtl,
'p-dialog-maximized': props.maximizable && instance.maximized, 'p-dialog-maximized': props.maximizable && instance.maximized,
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -292,7 +292,6 @@ const classes = {
mask: ({ instance }) => [ mask: ({ instance }) => [
'p-galleria-mask p-component-overlay p-component-overlay-enter', 'p-galleria-mask p-component-overlay p-component-overlay-enter',
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -28,7 +28,6 @@ const classes = {
'p-menu p-component', 'p-menu p-component',
{ {
'p-menu-overlay': props.popup, 'p-menu-overlay': props.popup,
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -78,7 +78,6 @@ const classes = {
root: ({ instance }) => [ root: ({ instance }) => [
'p-overlaypanel p-component', 'p-overlaypanel p-component',
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -185,7 +185,6 @@ const classes = {
root: ({ instance }) => [ root: ({ instance }) => [
'p-sidebar p-component', 'p-sidebar p-component',
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false, 'p-ripple-disabled': instance.$primevue.config.ripple === false,
'p-sidebar-full': instance.fullScreen 'p-sidebar-full': instance.fullScreen
} }

View File

@ -62,7 +62,6 @@ const classes = {
'p-tieredmenu p-component', 'p-tieredmenu p-component',
{ {
'p-tieredmenu-overlay': props.popup, 'p-tieredmenu-overlay': props.popup,
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -92,7 +92,6 @@ const classes = {
root: ({ props, instance }) => [ root: ({ props, instance }) => [
'p-toast p-component p-toast-' + props.position, 'p-toast p-component p-toast-' + props.position,
{ {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false 'p-ripple-disabled': instance.$primevue.config.ripple === false
} }
], ],

View File

@ -20,6 +20,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
variant: {
type: String,
default: null
},
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false

View File

@ -67,6 +67,7 @@ const classes = {
'p-disabled': props.disabled, 'p-disabled': props.disabled,
'p-invalid': props.invalid, 'p-invalid': props.invalid,
'p-focus': instance.focused, 'p-focus': instance.focused,
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled',
'p-inputwrapper-filled': !instance.emptyValue, 'p-inputwrapper-filled': !instance.emptyValue,
'p-inputwrapper-focus': instance.focused || instance.overlayVisible 'p-inputwrapper-focus': instance.focused || instance.overlayVisible
} }