Skip to content

Commit

Permalink
Refactor #5437
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Mar 22, 2024
1 parent 4d640c4 commit 7e17767
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions components/lib/listbox/style/ListboxStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const classes = {
root: ({ props }) => [
'p-listbox p-component',
{
'p-listbox-striped': props.stripedRows,
'p-disabled': props.disabled,
'p-invalid': props.invalid
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/orderlist/BaseOrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
},
severity: {
type: String,
default: null
default: 'secondary'
},
tabindex: {
type: Number,
Expand Down
1 change: 1 addition & 0 deletions components/lib/orderlist/OrderList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export interface OrderListProps {
tabindex?: number | string | undefined;
/**
* Defines the style of the button.
* @defaultValue secondary
*/
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
/**
Expand Down
1 change: 1 addition & 0 deletions components/lib/orderlist/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
:dataKey="dataKey"
:autoOptionFocus="autoOptionFocus"
:focusOnHover="focusOnHover"
:stripedRows="stripedRows"
:disabled="disabled"
:ariaLabel="ariaLabel"
:ariaLabelledby="ariaLabelledby"
Expand Down
7 changes: 1 addition & 6 deletions components/lib/orderlist/style/OrderListStyle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import BaseStyle from 'primevue/base/style';

const classes = {
root: ({ props }) => [
'p-orderlist p-component',
{
'p-orderlist-striped': props.stripedRows
}
],
root: 'p-orderlist p-component',
controls: 'p-orderlist-controls',
container: 'p-orderlist-list-container',
header: 'p-orderlist-header',
Expand Down
2 changes: 1 addition & 1 deletion components/lib/picklist/BasePickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
},
severity: {
type: String,
default: null
default: 'secondary'
},
tabindex: {
type: Number,
Expand Down
7 changes: 6 additions & 1 deletion components/lib/picklist/PickList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { TransitionProps, VNode } from 'vue';
import { ComponentHooks } from '../basecomponent';
import { ButtonPassThroughOptions } from '../button';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
import { ClassComponent, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers';

export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined;

Expand Down Expand Up @@ -364,6 +364,11 @@ export interface PickListProps {
* @defaultValue true
*/
showTargetControls?: boolean | undefined;
/**
* Defines the style of the button.
* @defaultValue secondary
*/
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
/**
* Index of the list element in tabbing order.
*/
Expand Down
2 changes: 2 additions & 0 deletions components/lib/picklist/PickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
:dataKey="dataKey"
:autoOptionFocus="autoOptionFocus"
:focusOnHover="focusOnHover"
:stripedRows="stripedRows"
:disabled="disabled"
:pt="ptm('list')"
:unstyled="unstyled"
Expand Down Expand Up @@ -109,6 +110,7 @@
:dataKey="dataKey"
:autoOptionFocus="autoOptionFocus"
:focusOnHover="focusOnHover"
:stripedRows="stripedRows"
:disabled="disabled"
:pt="ptm('list')"
:unstyled="unstyled"
Expand Down
7 changes: 1 addition & 6 deletions components/lib/picklist/style/PickListStyle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import BaseStyle from 'primevue/base/style';

const classes = {
root: ({ props }) => [
'p-picklist p-component',
{
'p-picklist-striped': props.stripedRows
}
],
root: 'p-picklist p-component',
sourceControls: 'p-picklist-buttons p-picklist-source-controls',
sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
sourceHeader: 'p-picklist-header',
Expand Down

0 comments on commit 7e17767

Please sign in to comment.