Migrated paginator

pull/5507/head
Cagatay Civici 2024-02-16 14:44:56 +03:00
parent 03f2a99682
commit 64123c5cbd
3 changed files with 114 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import metergroup from 'primevue/theme/aura/metergroup';
import orderlist from 'primevue/theme/aura/orderlist';
import organizationchart from 'primevue/theme/aura/organizationchart';
import overlaypanel from 'primevue/theme/aura/overlaypanel';
import paginator from 'primevue/theme/aura/paginator';
import panel from 'primevue/theme/aura/panel';
import panelmenu from 'primevue/theme/aura/panelmenu';
import picklist from 'primevue/theme/aura/picklist';
@ -198,6 +199,7 @@ export default {
orderlist,
organizationchart,
overlaypanel,
paginator,
panel,
panelmenu,
picklist,

View File

@ -0,0 +1,106 @@
export default {
variables: {
colorScheme: {
light: {
root: {
background: '{surface.0}',
textColor: '{surface.700}'
},
navigator: {
backgroundHover: '{surface.100}',
color: '{surface.500}',
colorHover: '{surface.600}'
},
currentPageReport: {
textColor: '{surface.500}'
}
},
dark: {
root: {
background: '{surface.900}',
textColor: '{surface.0}'
},
navigator: {
backgroundHover: '{surface.800}',
color: '{surface.400}',
colorHover: '{surface.300}'
},
currentPageReport: {
textColor: '{surface.400}'
}
}
}
},
css: `
.p-paginator {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
background: var(--p-paginator-background);
color: var(--p-paginator-text-color);
border: 0 none;
padding: 0.5rem 1rem;
border-radius: var(--p-rounded-base);
gap: 0.25rem;
}
.p-paginator-left-content {
margin-right: auto;
}
.p-paginator-right-content {
margin-left: auto;
}
.p-paginator-page,
.p-paginator-next,
.p-paginator-last,
.p-paginator-first,
.p-paginator-prev {
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
user-select: none;
overflow: hidden;
position: relative;
background: transparent;
border: 0 none;
color: var(--p-paginator-navigator-color);
min-width: 2.5rem;
height: 2.5rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
border-radius: 50%;
}
.p-paginator-page:not(.p-disabled):not(.p-highlight):hover,
.p-paginator-first:not(.p-disabled):hover,
.p-paginator-prev:not(.p-disabled):hover,
.p-paginator-next:not(.p-disabled):hover,
.p-paginator-last:not(.p-disabled):hover {
background: var(--p-paginator-navigator-background-hover);
color: var(--p-paginator-navigator-color-hover);
}
.p-paginator-current {
color: var(--p-paginator-current-page-report-text-color);
}
.p-paginator-pages {
display: flex;
align-items: center;
gap: 0.25rem;
}
.p-paginator-page.p-highlight {
background: var(--p-list-item-highlight-background);
color: var(--p-list-item-highlight-text-color);
}
.p-paginator-page-input .p-inputtext {
max-width: 2.5rem;
}
`
};

View File

@ -0,0 +1,6 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts"
}