Migrated blockui

pull/5507/head
Cagatay Civici 2024-02-12 18:33:36 +03:00
parent 5168b43902
commit 3df68ce165
4 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,18 @@
export default {
css: `
.p-blockui {
border-radius: var(--p-rounded-base);
}
.p-blockui-container {
position: relative;
}
.p-blockui.p-component-overlay {
position: absolute;
}
.p-blockui-document.p-component-overlay {
position: fixed;
}
`
};

View File

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

View File

@ -188,12 +188,12 @@ export default {
background-color: transparent; background-color: transparent;
} }
to { to {
background-color: var(--maskbg); background-color: var(--p-mask-background);
} }
} }
@keyframes p-component-overlay-leave-animation { @keyframes p-component-overlay-leave-animation {
from { from {
background-color: var(--maskbg); background-color: var(--p-mask-background);
} }
to { to {
background-color: transparent; background-color: transparent;

View File

@ -1,6 +1,7 @@
import accordion from 'primevue/theme/aura/accordion'; import accordion from 'primevue/theme/aura/accordion';
import avatar from 'primevue/theme/aura/avatar'; import avatar from 'primevue/theme/aura/avatar';
import badge from 'primevue/theme/aura/badge'; import badge from 'primevue/theme/aura/badge';
import blockui from 'primevue/theme/aura/blockui';
import card from 'primevue/theme/aura/card'; import card from 'primevue/theme/aura/card';
import divider from 'primevue/theme/aura/divider'; import divider from 'primevue/theme/aura/divider';
import fieldset from 'primevue/theme/aura/fieldset'; import fieldset from 'primevue/theme/aura/fieldset';
@ -52,7 +53,6 @@ export default {
offset: '2px' offset: '2px'
}, },
anchorGutter: '2px', anchorGutter: '2px',
maskBackground: 'rgba(0,0,0,0.4)',
primary: { primary: {
50: '{emerald.50}', 50: '{emerald.50}',
100: '{emerald.100}', 100: '{emerald.100}',
@ -89,7 +89,8 @@ export default {
highlight: { highlight: {
background: '{primary.50}', background: '{primary.50}',
textColor: '{primary.700}' textColor: '{primary.700}'
} },
maskBackground: 'rgba(0,0,0,0.4)'
}, },
dark: { dark: {
surface: { surface: {
@ -113,7 +114,8 @@ export default {
highlight: { highlight: {
background: 'color-mix(in srgb, {primary.400}, transparent 84%)', background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
textColor: 'rgba(255,255,255,.87)' textColor: 'rgba(255,255,255,.87)'
} },
maskBackground: 'rgba(0,0,0,0.4)'
} }
} }
}, },
@ -122,6 +124,7 @@ export default {
accordion, accordion,
avatar, avatar,
badge, badge,
blockui,
card, card,
divider, divider,
fieldset, fieldset,