Update theme config with `theme.base`, `theme.preset` and `theme.options`

pull/5507/head
mertsincan 2024-02-19 22:53:42 +00:00
parent 4053bbf4b9
commit b5df82f247
308 changed files with 12926 additions and 97 deletions

View File

@ -1,6 +1,6 @@
<script>
import BaseStyle from 'primevue/base/style';
import { toVariables } from 'primevue/theme';
import { toVariables } from 'primevue/themes';
import { ObjectUtils } from 'primevue/utils';
import { mergeProps } from 'vue';
import BaseComponentStyle from './style/BaseComponentStyle';
@ -36,11 +36,11 @@ export default {
}
}
},
$globalTheme: {
$globalPresetTheme: {
immediate: true,
handler(newValue) {
if (newValue) {
const { variables, css } = newValue;
const { variables } = newValue;
const { colorScheme, ...vRest } = variables || {};
const { dark, ...csRest } = colorScheme || {};
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [this.$style.name]: vRest }).css : '';
@ -48,7 +48,17 @@ export default {
const dark_css = ObjectUtils.isNotEmpty(dark) ? toVariables({ [this.$style.name]: dark }, { selector: '.p-dark' }).css : '';
const variables_css = `${vRest_css}${csRest_css}${dark_css}`;
this.$style?.loadTheme(`${variables_css}${css}`, { useStyleOptions: this.$styleOptions });
this.$style?.loadTheme(`${variables_css}`, { name: `${this.$style.name}-variables`, useStyleOptions: this.$styleOptions });
}
}
},
$globalBaseTheme: {
immediate: true,
handler(newValue) {
if (newValue) {
const { css } = newValue;
this.$style?.loadTheme(`${css}`, { useStyleOptions: this.$styleOptions });
}
}
}
@ -119,7 +129,7 @@ export default {
this._loadThemeVariables();
BaseComponentStyle.loadGlobalTheme(this.$presetTheme?.components?.global?.css, { nonce: this.$config?.csp?.nonce });
BaseComponentStyle.loadGlobalTheme(this.$baseTheme?.components?.global?.css, { nonce: this.$config?.csp?.nonce });
},
_loadThemeVariables() {
const { primitive, semantic } = this.$presetTheme;
@ -286,12 +296,20 @@ export default {
isUnstyled() {
return this.unstyled !== undefined ? this.unstyled : this.$config?.unstyled;
},
$baseTheme() {
const { base } = this.$config?.theme || {};
return ObjectUtils.getItemValue(base);
},
$presetTheme() {
const { preset, options } = this.$config?.theme || {};
return ObjectUtils.getItemValue(preset, options);
},
$globalTheme() {
$globalBaseTheme() {
return ObjectUtils.getItemValue(this.$baseTheme?.components?.[this.$style.name], this.$params);
},
$globalPresetTheme() {
return ObjectUtils.getItemValue(this.$presetTheme?.components?.[this.$style.name], this.$params);
},
$params() {

View File

@ -1,5 +1,5 @@
import BaseStyle from 'primevue/base/style';
import { toVariables } from 'primevue/theme';
import { toVariables } from 'primevue/themes';
import { ObjectUtils } from 'primevue/utils';
import { mergeProps } from 'vue';
@ -75,10 +75,10 @@ const BaseDirective = {
return BaseDirective._usePT(instance, defaultPT, callback, key, params);
},
_loadThemeStyle: (instance = {}, useStyleOptions) => {
const theme = instance.globalTheme();
const preset = instance.globalPresetTheme();
if (theme) {
const { variables, css } = theme;
if (preset) {
const { variables } = preset;
const { colorScheme, ...vRest } = variables || {};
const { dark, ...csRest } = colorScheme || {};
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [instance.$name]: vRest }).css : '';
@ -86,7 +86,15 @@ const BaseDirective = {
const dark_css = ObjectUtils.isNotEmpty(dark) ? toVariables({ [instance.$name]: dark }, { selector: '.p-dark' }).css : '';
const variables_css = `${vRest_css}${csRest_css}${dark_css}`;
instance.$style?.loadTheme(`${variables_css}${css}`, { name: `${instance.$name}-directive-style`, useStyleOptions });
instance.$style?.loadTheme(`${variables_css}`, { name: `${instance.$name}-directive-variable`, useStyleOptions });
}
const base = instance.globalBaseTheme();
if (base) {
const { css } = base;
instance.$style?.loadTheme(`${css}`, { name: `${instance.$name}-directive-style`, useStyleOptions });
}
},
_hook: (directiveName, hookName, el, binding, vnode, prevVnode) => {
@ -125,8 +133,10 @@ const BaseDirective = {
/* computed instance variables */
defaultPT: () => BaseDirective._getPT(config?.pt, undefined, (value) => value?.directives?.[name]),
isUnstyled: () => (el.$instance?.$binding?.value?.unstyled !== undefined ? el.$instance?.$binding?.value?.unstyled : config?.unstyled),
baseTheme: () => ObjectUtils.getItemValue(config?.theme?.base),
presetTheme: () => ObjectUtils.getItemValue(config?.theme?.preset, config?.theme?.options),
globalTheme: () => ObjectUtils.getItemValue(el.$instance?.presetTheme?.()?.directives?.[name], undefined),
globalBaseTheme: () => ObjectUtils.getItemValue(el.$instance?.baseTheme?.()?.directives?.[name], undefined),
globalPresetTheme: () => ObjectUtils.getItemValue(el.$instance?.presetTheme?.()?.directives?.[name], undefined),
/* instance's methods */
ptm: (key = '', params = {}) => BaseDirective._getPTValue(el.$instance, el.$instance?.$binding?.value?.pt, key, { ...params }),
ptmo: (obj = {}, key = '', params = {}) => BaseDirective._getPTValue(el.$instance, obj, key, params, false),

View File

@ -1,5 +1,6 @@
import { FilterMatchMode } from 'primevue/api';
import Aura from 'primevue/theme/aura';
import PrimeOne from 'primevue/themes/primeone';
import Aura from 'primevue/themes/primeone/aura';
import { inject, reactive } from 'vue';
export const defaultOptions = {
@ -135,6 +136,7 @@ export const defaultOptions = {
tooltip: 1100
},
theme: {
base: PrimeOne,
preset: Aura,
options: undefined
},

0
components/lib/themes/index.d.ts vendored Normal file
View File

View File

@ -0,0 +1 @@
export * from './utils';

View File

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

View File

@ -0,0 +1 @@
export { default } from 'primevue/themes/primeone/presets/aura';

View File

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

View File

@ -0,0 +1,57 @@
export default {
css: `
.p-accordion-header-link {
cursor: pointer;
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
align-items: center;
user-select: none;
text-decoration: none;
padding: 1.125rem 1.125rem 1.125rem 1.125rem;
color: var(--p-accordion-header-text-color);
background: var(--p-accordion-header-background);
font-weight: 600;
border-radius: var(--p-rounded-base);
transition: color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-accordion-header-text {
line-height: 1;
}
.p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: -2px;
}
.p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {
color: var(--p-accordion-header-text-color-hover);
}
.p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {
color: var(--p-accordion-header-text-color-active);
}
.p-accordion-toggle-icon {
transform: rotate(90deg);
}
.p-accordion-header.p-highlight .p-accordion-toggle-icon {
transform: rotate(-180deg);
}
.p-accordion-content {
padding: 0 1.125rem 1.125rem 1.125rem;
background: var(--p-accordion-content-background);
color: var(--p-accordion-content-text-color);
}
.p-accordion-tab {
border-bottom: 1px solid var(--p-accordion-content-border-color);
}
.p-accordion-tab:last-child {
border-bottom: 0 none
}
`
};

View File

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

View File

@ -0,0 +1,68 @@
export default {
css: `
.p-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
font-size: 1rem;
background: var(--p-avatar-background);
border-radius: var(--p-rounded-base);
}
.p-avatar-image {
background-color: transparent;
}
.p-avatar-circle {
border-radius: 50%;
}
.p-avatar-circle img {
border-radius: 50%;
}
.p-avatar-icon {
font-size: 1rem;
}
.p-avatar img {
width: 100%;
height: 100%;
}
.p-avatar-lg {
width: 3rem;
height: 3rem;
font-size: 1.5rem;
}
.p-avatar-lg .p-avatar-icon {
font-size: 1.5rem;
}
.p-avatar-xl {
width: 4rem;
height: 4rem;
font-size: 2rem;
}
.p-avatar-xl .p-avatar-icon {
font-size: 2rem;
}
.p-avatar-group {
display: flex;
align-items: center;
}
.p-avatar-group .p-avatar + .p-avatar {
margin-left: -1rem;
}
.p-avatar-group .p-avatar {
border: 2px solid var(--p-avatar-border-color);
}
`
};

View File

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

View File

@ -0,0 +1,87 @@
export default {
css: `
.p-badge {
display: inline-flex;
border-radius: 10px;
justify-content: center;
padding: 0 0.5rem;
background: var(--p-badge-primary-background);
color: var(--p-badge-primary-text-color);
font-size: 0.75rem;
font-weight: 700;
min-width: 1.5rem;
height: 1.5rem;
line-height: 1.5rem;
}
.p-overlay-badge {
position: relative;
}
.p-overlay-badge .p-badge {
position: absolute;
top: 0;
right: 0;
transform: translate(50%, -50%);
transform-origin: 100% 0;
margin: 0;
}
.p-badge-dot {
width: 0.5rem;
min-width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
padding: 0;
}
.p-badge-no-gutter {
padding: 0;
border-radius: 50%;
}
.p-badge-secondary {
background-color: var(--p-badge-secondary-background);
color: var(--p-badge-secondary-text-color);
}
.p-badge-success {
background-color: var(--p-badge-success-background);
color: var(--p-badge-success-text-color);
}
.p-badge-info {
background-color: var(--p-badge-info-background);
color: var(--p-badge-info-text-color);
}
.p-badge-warning {
background-color: var(--p-badge-warn-background);
color: var(--p-badge-warn-text-color);
}
.p-badge-danger {
background-color: var(--p-badge-danger-background);
color: var(--p-badge-danger-text-color);
}
.p-badge-contrast {
background-color: var(--p-badge-contrast-background);
color: var(--p-badge-contrast-text-color);
}
.p-badge-lg {
font-size: 1.125rem;
min-width: 2.25rem;
height: 2.25rem;
line-height: 2.25rem;
}
.p-badge-xl {
font-size: 1.5rem;
min-width: 3rem;
height: 3rem;
line-height: 3rem;
}
`
};

View File

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

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

@ -0,0 +1,66 @@
export default {
css: `
.p-breadcrumb {
background: var(--p-breadcrumb-background);
border: 0 none;
border-radius: 6px;
padding: 1rem;
overflow-x: auto;
}
.p-breadcrumb .p-breadcrumb-list {
margin: 0;
padding: 0;
list-style-type: none;
display: flex;
align-items: center;
flex-wrap: nowrap;
}
.p-breadcrumb .p-menuitem-link {
text-decoration: none;
display: flex;
align-items: center;
}
.p-breadcrumb .p-menuitem-separator {
display: flex;
align-items: center;
}
.p-breadcrumb::-webkit-scrollbar {
display: none;
}
.p-breadcrumb .p-menuitem-link {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
border-radius: var(--p-rounded-base);
outline-color: transparent;
}
.p-breadcrumb .p-menuitem-link:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-breadcrumb .p-menuitem-text {
color: var(--p-breadcrumb-item-text-color);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
line-height: 1;
}
.p-breadcrumb .p-menuitem-text:hover {
color: var(--p-breadcrumb-item-text-color-hover);
line-height: 1;
}
.p-breadcrumb .p-menuitem-icon {
color: var(--p-breadcrumb-item-icon-color);
}
.p-breadcrumb .p-breadcrumb-list li.p-menuitem-separator {
margin: 0 0.5rem 0 0.5rem;
color: var(--p-breadcrumb-separator-color);
}
`
};

View File

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

View File

@ -0,0 +1,650 @@
export default {
css: `
.p-button {
display: inline-flex;
cursor: pointer;
user-select: none;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
color: var(--p-button-primary-text-color);
background: var(--p-button-primary-background);
border: 1px solid var(--p-button-primary-border-color);
padding: 0.5rem 1rem;
font-size: 1rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration);
border-radius: var(--p-rounded-base);
outline-color: transparent;
}
.p-button:disabled {
cursor: default;
}
.p-button-icon-left {
margin-right: 0.5rem;
}
.p-button-icon-right {
order: 1;
margin-left: 0.5rem;
}
.p-button-icon-top {
margin-bottom: 0.5rem;
}
.p-button-icon-bottom {
order: 2;
margin-top: 0.5rem;
}
.p-button-icon-only {
justify-content: center;
width: 2.5rem;
padding: 0.5rem 0;
}
.p-button-icon-only .p-button-label {
visibility: hidden;
width: 0;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
margin: 0;
}
.p-button-icon-only.p-button-rounded {
border-radius: 50%;
height: 2.5rem;
}
.p-button-sm {
font-size: 0.875rem;
padding: 0.375rem 0.875rem;
}
.p-button-sm .p-button-icon {
font-size: 0.875rem;
}
.p-button-lg {
font-size: 1.25rem;
padding: 0.625rem 1.25rem;
}
.p-button-sm .p-button-icon {
font-size: 1.25rem;
}
.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem;
}
.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0;
}
.p-button-vertical {
flex-direction: column;
}
.p-button-label {
font-weight: 500;
}
.p-fluid .p-button {
width: 100%;
}
.p-fluid .p-button-icon-only {
width: 2.5rem;
}
.p-button:not(:disabled):hover {
background: var(--p-button-primary-background-hover);
border: 1px solid var(--p-button-primary-border-color-hover);
color: var(--p-button-primary-text-color-hover);
}
.p-button:not(:disabled):active {
background: var(--p-button-primary-background-active);
border: 1px solid var(--p-button-primary-border-color-active);
color: var(--p-button-primary-text-color-active);
}
.p-button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-button-primary-background);
outline-offset: var(--p-focus-ring-offset);
}
.p-button .p-badge {
margin-left: 0.5rem;
min-width: 1rem;
height: 1rem;
line-height: 1rem;
background: var(--p-button-primary-text-color);
color: var(--p-button-primary-background);
}
.p-button-raised {
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.p-button-rounded {
border-radius: 2rem;
}
/* Default Severities */
.p-button-secondary {
background: var(--p-button-secondary-background);
border: 1px solid var(--p-button-secondary-border-color);
color: var(--p-button-secondary-text-color);
}
.p-button-secondary:not(:disabled):hover {
background: var(--p-button-secondary-background-hover);
border: 1px solid var(--p-button-secondary-border-color-hover);
color: var(--p-button-secondary-text-color-hover);
}
.p-button-secondary:not(:disabled):active {
background: var(--p-button-secondary-background-active);
border: 1px solid var(--p-button-secondary-border-color-active);
color: var(--p-button-secondary-text-color-active);
}
.p-button-success {
background: var(--p-button-success-background);
border: 1px solid var(--p-button-success-border-color);
color: var(--p-button-success-text-color);
}
.p-button-success:not(:disabled):hover {
background: var(--p-button-success-background-hover);
border: 1px solid var(--p-button-success-border-color-hover);
color: var(--p-button-success-text-color-hover);
}
.p-button-success:not(:disabled):active {
background: var(--p-button-success-background-active);
border: 1px solid var(--p-button-success-border-color-active);
color: var(--p-button-success-text-color-active);
}
.p-button-success:focus-visible {
outline-color: var(--p-button-success-background);
}
.p-button-info {
background: var(--p-button-info-background);
border: 1px solid var(--p-button-info-border-color);
color: var(--p-button-info-text-color);
}
.p-button-info:not(:disabled):hover {
background: var(--p-button-info-background-hover);
border: 1px solid var(--p-button-info-border-color-hover);
color: var(--p-button-info-text-color-hover);
}
.p-button-info:not(:disabled):active {
background: var(--p-button-info-background-active);
border: 1px solid var(--p-button-info-border-color-active);
color: var(--p-button-info-text-color-active);
}
.p-button-info:focus-visible {
outline-color: var(--p-button-info-background);
}
.p-button-warning {
background: var(--p-button-warn-background);
border: 1px solid var(--p-button-warn-border-color);
color: var(--p-button-warn-text-color);
}
.p-button-warning:not(:disabled):hover {
background: var(--p-button-warn-background-hover);
border: 1px solid var(--p-button-warn-border-color-hover);
color: var(--p-button-warn-text-color-hover);
}
.p-button-warning:not(:disabled):active {
background: var(--p-button-warn-background-active);
border: 1px solid var(--p-button-warn-border-color-active);
color: var(--p-button-warn-text-color-active);
}
.p-button-warning:focus-visible {
outline-color: var(--p-button-warn-background);
}
.p-button-help {
background: var(--p-button-help-background);
border: 1px solid var(--p-button-help-border-color);
color: var(--p-button-help-text-color);
}
.p-button-help:not(:disabled):hover {
background: var(--p-button-help-background-hover);
border: 1px solid var(--p-button-help-border-color-hover);
color: var(--p-button-help-text-color-hover);
}
.p-button-help:not(:disabled):active {
background: var(--p-button-help-background-active);
border: 1px solid var(--p-button-help-border-color-active);
color: var(--p-button-help-text-color-active);
}
.p-button-help:focus-visible {
outline-color: var(--p-button-help-background);
}
.p-button-danger {
background: var(--p-button-danger-background);
border: 1px solid var(--p-button-danger-border-color);
color: var(--p-button-danger-text-color);
}
.p-button-danger:not(:disabled):hover {
background: var(--p-button-danger-background-hover);
border: 1px solid var(--p-button-danger-border-color-hover);
color: var(--p-button-danger-text-color-hover);
}
.p-button-danger:not(:disabled):active {
background: var(--p-button-danger-background-active);
border: 1px solid var(--p-button-danger-border-color-active);
color: var(--p-button-danger-text-color-active);
}
.p-button-danger:focus-visible {
outline-color: var(--p-button-danger-background);
}
.p-button-contrast {
background: var(--p-button-contrast-background);
border: 1px solid var(--p-button-contrast-border-color);
color: var(--p-button-contrast-text-color);
}
.p-button-contrast:not(:disabled):hover {
background: var(--p-button-contrast-background-hover);
border: 1px solid var(--p-button-contrast-border-color-hover);
color: var(--p-button-contrast-text-color-hover);
}
.p-button-contrast:not(:disabled):active {
background: var(--p-button-contrast-background-active);
border: 1px solid var(--p-button-contrast-border-color-active);
color: var(--p-button-contrast-text-color-active);
}
.p-button-contrast:focus-visible {
outline-color: var(--p-button-contrast-background);
}
/* Outlined Buttons */
.p-button-outlined {
background: transparent;
border-color: var(--p-button-outlined-primary-border-color);
color: var(--p-button-outlined-primary-text-color);
}
.p-button-outlined:not(:disabled):hover {
background: var(--p-button-outlined-primary-background-hover);
border-color: var(--p-button-outlined-primary-border-color);
color: var(--p-button-outlined-primary-text-color);
}
.p-button-outlined:not(:disabled):active {
background: var(--p-button-outlined-primary-background-active);
border-color: var(--p-button-outlined-primary-border-color);
color: var(--p-button-outlined-primary-text-color);
}
.p-button-outlined.p-button-secondary {
border-color: var(--p-button-outlined-secondary-border-color);
color: var(--p-button-outlined-secondary-text-color);
}
.p-button-outlined.p-button-secondary:not(:disabled):hover {
background: var(--p-button-outlined-secondary-background-hover);
border-color: var(--p-button-outlined-secondary-border-color);
color: var(--p-button-outlined-secondary-text-color);
}
.p-button-outlined.p-button-secondary:not(:disabled):active {
background: var(--p-button-outlined-secondary-background-active);
border-color: var(--p-button-outlined-secondary-border-color);
color: var(--p-button-outlined-secondary-text-color);
}
.p-button-outlined.p-button-success {
border-color: var(--p-button-outlined-success-border-color);
color: var(--p-button-outlined-success-text-color);
}
.p-button-outlined.p-button-success:not(:disabled):hover {
background: var(--p-button-outlined-success-background-hover);
border-color: var(--p-button-outlined-success-border-color);
color: var(--p-button-outlined-success-text-color);
}
.p-button-outlined.p-button-success:not(:disabled):active {
background: var(--p-button-outlined-success-background-active);
border-color: var(--p-button-outlined-success-border-color);
color: var(--p-button-outlined-success-text-color);
}
.p-button-outlined.p-button-info {
border-color: var(--p-button-outlined-info-border-color);
color: var(--p-button-outlined-info-text-color);
}
.p-button-outlined.p-button-info:not(:disabled):hover {
background: var(--p-button-outlined-info-background-hover);
border-color: var(--p-button-outlined-info-border-color);
color: var(--p-button-outlined-info-text-color);
}
.p-button-outlined.p-button-info:not(:disabled):active {
background: var(--p-button-outlined-info-background-active);
border-color: var(--p-button-outlined-info-border-color);
color: var(--p-button-outlined-info-text-color);
}
.p-button-outlined.p-button-warning {
border-color: var(--p-button-outlined-warn-border-color);
color: var(--p-button-outlined-warn-text-color);
}
.p-button-outlined.p-button-warning:not(:disabled):hover {
background: var(--p-button-outlined-warn-background-hover);
border-color: var(--p-button-outlined-warn-border-color);
color: var(--p-button-outlined-warn-text-color);
}
.p-button-outlined.p-button-warning:not(:disabled):active {
background: var(--p-button-outlined-warn-background-active);
border-color: var(--p-button-outlined-warn-border-color);
color: var(--p-button-outlined-warn-text-color);
}
.p-button-outlined.p-button-help {
border-color: var(--p-button-outlined-help-border-color);
color: var(--p-button-outlined-help-text-color);
}
.p-button-outlined.p-button-help:not(:disabled):hover {
background: var(--p-button-outlined-help-background-hover);
border-color: var(--p-button-outlined-help-border-color);
color: var(--p-button-outlined-help-text-color);
}
.p-button-outlined.p-button-help:not(:disabled):active {
background: var(--p-button-outlined-help-background-active);
border-color: var(--p-button-outlined-help-border-color);
color: var(--p-button-outlined-help-text-color);
}
.p-button-outlined.p-button-danger {
border-color: var(--p-button-outlined-danger-border-color);
color: var(--p-button-outlined-danger-text-color);
}
.p-button-outlined.p-button-danger:not(:disabled):hover {
background: var(--p-button-outlined-danger-background-hover);
border-color: var(--p-button-outlined-danger-border-color);
color: var(--p-button-outlined-danger-text-color);
}
.p-button-outlined.p-button-danger:not(:disabled):active {
background: var(--p-button-outlined-danger-background-active);
border-color: var(--p-button-outlined-danger-border-color);
color: var(--p-button-outlined-danger-text-color);
}
.p-button-outlined.p-button-contrast {
border-color: var(--p-button-outlined-contrast-border-color);
color: var(--p-button-outlined-contrast-text-color);
}
.p-button-outlined.p-button-contrast:not(:disabled):hover {
background: var(--p-button-outlined-contrast-background-hover);
border-color: var(--p-button-outlined-contrast-border-color);
color: var(--p-button-outlined-contrast-text-color);
}
.p-button-outlined.p-button-contrast:not(:disabled):active {
background: var(--p-button-outlined-contrast-background-active);
border-color: var(--p-button-outlined-contrast-border-color);
color: var(--p-button-outlined-contrast-text-color);
}
.p-button-outlined.p-button-plain {
border-color: var(--p-button-outlined-plain-border-color);
color: var(--p-button-outlined-plain-text-color);
}
.p-button-outlined.p-button-plain:not(:disabled):hover {
background: var(--p-button-outlined-plain-background-hover);
border-color: var(--p-button-outlined-plain-border-color);
color: var(--p-button-outlined-plain-text-color);
}
.p-button-outlined.p-button-plain:not(:disabled):active {
background: var(--p-button-outlined-plain-background-active);
border-color: var(--p-button-outlined-plain-border-color);
color: var(--p-button-outlined-plain-text-color);
}
/* Text Button */
.p-button-text {
background: transparent;
border-color: transparent;
color: var(--p-button-text-primary-text-color);
}
.p-button-text:not(:disabled):hover {
background: var(--p-button-text-primary-background-hover);
border-color: transparent;
color: var(--p-button-text-primary-text-color);
}
.p-button-text:not(:disabled):active {
background: var(--p-button-text-primary-background-active);
border-color: transparent;
color: var(--p-button-text-primary-text-color);
}
.p-button-text.p-button-secondary {
background: transparent;
border-color: transparent;
color: var(--p-button-text-secondary-text-color);
}
.p-button-text.p-button-secondary:not(:disabled):hover {
background: var(--p-button-text-secondary-background-hover);
border-color: transparent;
color: var(--p-button-text-secondary-text-color);
}
.p-button-text.p-button-secondary:not(:disabled):active {
background: var(--p-button-text-secondary-background-active);
border-color: transparent;
color: var(--p-button-text-secondary-text-color);
}
.p-button-text.p-button-success {
background: transparent;
border-color: transparent;
color: var(--p-button-text-success-text-color);
}
.p-button-text.p-button-success:not(:disabled):hover {
background: var(--p-button-text-success-background-hover);
border-color: transparent;
color: var(--p-button-text-success-text-color);
}
.p-button-text.p-button-success:not(:disabled):active {
background: var(--p-button-text-success-background-active);
border-color: transparent;
color: var(--p-button-text-success-text-color);
}
.p-button-text.p-button-info {
background: transparent;
border-color: transparent;
color: var(--p-button-text-info-text-color);
}
.p-button-text.p-button-info:not(:disabled):hover {
background: var(--p-button-text-info-background-hover);
border-color: transparent;
color: var(--p-button-text-info-text-color);
}
.p-button-text.p-button-info:not(:disabled):active {
background: var(--p-button-text-info-background-active);
border-color: transparent;
color: var(--p-button-text-info-text-color);
}
.p-button-text.p-button-warning {
background: transparent;
border-color: transparent;
color: var(--p-button-text-warn-text-color);
}
.p-button-text.p-button-warning:not(:disabled):hover {
background: var(--p-button-text-warn-background-hover);
border-color: transparent;
color: var(--p-button-text-warn-text-color);
}
.p-button-text.p-button-warning:not(:disabled):active {
background: var(--p-button-text-warn-background-active);
border-color: transparent;
color: var(--p-button-text-warn-text-color);
}
.p-button-text.p-button-help {
background: transparent;
border-color: transparent;
color: var(--p-button-text-help-text-color);
}
.p-button-text.p-button-help:not(:disabled):hover {
background: var(--p-button-text-help-background-hover);
border-color: transparent;
color: var(--p-button-text-help-text-color);
}
.p-button-text.p-button-help:not(:disabled):active {
background: var(--p-button-text-help-background-active);
border-color: transparent;
color: var(--p-button-text-help-text-color);
}
.p-button-text.p-button-danger {
background: transparent;
border-color: transparent;
color: var(--p-button-text-danger-text-color);
}
.p-button-text.p-button-danger:not(:disabled):hover {
background: var(--p-button-text-danger-background-hover);
border-color: transparent;
color: var(--p-button-text-danger-text-color);
}
.p-button-text.p-button-danger:not(:disabled):active {
background: var(--p-button-text-danger-background-active);
border-color: transparent;
color: var(--p-button-text-danger-text-color);
}
.p-button-text.p-button-plain {
background: transparent;
border-color: transparent;
color: var(--p-button-text-plain-text-color);
}
.p-button-text.p-button-plain:not(:disabled):hover {
background: var(--p-button-text-plain-background-hover);
border-color: transparent;
color: var(--p-button-text-plain-text-color);
}
.p-button-text.p-button-plain:not(:disabled):active {
background: var(--p-button-text-plain-background-active);
border-color: transparent;
color: var(--p-button-text-plain-text-color);
}
/* Link Button */
.p-button-link {
background: transparent;
border-color: transparent;
color: var(--p-button-link-text-color);
}
.p-button-link:not(:disabled):hover {
background: transparent;
border-color: transparent;
color: var(--p-button-link-text-color-hover);
}
.p-button-link:not(:disabled):hover .p-button-label {
text-decoration: underline;
}
.p-button-link:not(:disabled):active {
background: transparent;
border-color: transparent;
color: var(--p-button-link-text-color-active);
}
.p-buttonset .p-button {
margin: 0;
}
.p-buttonset .p-button:not(:last-child),
.p-buttonset .p-button:not(:last-child):hover {
border-right: 0 none;
}
.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {
border-radius: 0;
}
.p-buttonset .p-button:first-of-type:not(:only-of-type) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.p-buttonset .p-button:last-of-type:not(:only-of-type) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.p-buttonset .p-button:focus-visible {
position: relative;
z-index: 1;
}
.p-fluid .p-buttonset {
display: flex;
}
.p-fluid .p-buttonset .p-button {
flex: 1;
}
`
};

View File

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

View File

@ -0,0 +1,35 @@
export default {
css: `
.p-card {
background: var(--p-card-background);
color: var(--p-card-text-color);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
border-radius: 12px;
display: flex;
flex-direction: column;
}
.p-card-caption {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.p-card-body {
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.p-card-title {
font-size: 1.25rem;
font-weight: 600;
}
.p-card-subtitle {
font-weight: 400;
color: var(--p-card-subtitle-text-color);
}
`
};

View File

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

View File

@ -0,0 +1,114 @@
export default {
css: `
.p-carousel {
display: flex;
flex-direction: column;
}
.p-carousel-content {
display: flex;
flex-direction: column;
overflow: auto;
}
.p-carousel-container {
display: flex;
flex-direction: row;
}
.p-carousel-items-content {
overflow: hidden;
width: 100%;
}
.p-carousel-items-container {
display: flex;
flex-direction: row;
}
.p-carousel-prev,
.p-carousel-next {
align-self: center;
flex-grow: 0;
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
width: 1.75rem;
height: 1.75rem;
color: var(--p-carousel-navigator-color);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration),outline-color var(--p-transition-duration);
outline-color: transparent;
margin: 0.5rem;
}
.p-carousel-prev:enabled:hover,
.p-carousel-next:enabled:hover {
color: var(--p-carousel-navigator-color-hover);
background: var(--p-carousel-navigator-background-hover);
}
.p-carousel-prev:focus-visible,
.p-carousel-next:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-carousel-indicators {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
padding: 1rem;
gap: 0.5rem;
}
.p-carousel-indicator button {
display: flex;
align-items: center;
justify-content: center;
background: var(--p-carousel-indicator-background);
width: 2rem;
height: 0.5rem;
border: 0 none;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
border-radius: var(--p-rounded-base);
}
.p-carousel-indicator button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-carousel-indicator button:hover {
background: var(--p-carousel-indicator-background-hover);
}
.p-carousel-indicator.p-highlight button {
background: var(--p-carousel-indicator-background-active);
}
.p-carousel-vertical .p-carousel-container {
flex-direction: column;
}
.p-carousel-vertical .p-carousel-items-container {
flex-direction: column;
height: 100%;
}
.p-items-hidden .p-carousel-item {
visibility: hidden;
}
.p-items-hidden .p-carousel-item.p-carousel-item-active {
visibility: visible;
}
`
};

View File

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

View File

@ -0,0 +1,106 @@
export default {
css: `
.p-checkbox {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
width: var(--p-checkbox-width);
height: var(--p-checkbox-height);
}
.p-checkbox-input {
cursor: pointer;
appearance: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
border: 1px solid transparent;
border-radius: var(--p-checkbox-border-radius);
}
.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
border-radius: var(--p-rounded-sm);
border: 1px solid var(--p-checkbox-border-color);
background: var(--p-checkbox-background);
width: var(--p-checkbox-width);
height: var(--p-checkbox-height);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), box-shadow var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
box-shadow: var(--p-checkbox-box-shadow);
}
.p-checkbox-icon {
transition-duration: var(--p-transition-duration);
color: var(--p-checkbox-icon-color);
font-size: var(--p-checkbox-icon-size);
width: var(--p-checkbox-icon-size);
height: var(--p-checkbox-icon-size);
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
border-color: var(--p-checkbox-border-color-hover);
}
.p-checkbox.p-highlight .p-checkbox-box {
border-color: var(--p-checkbox-border-color-checked);
background: var(--p-checkbox-background-checked);
}
.p-checkbox.p-highlight .p-checkbox-box .p-checkbox-icon {
color: var(--p-checkbox-icon-color-checked);
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover).p-highlight .p-checkbox-box {
border-color: var(--p-checkbox-border-color-checked-hover);
background: var(--p-checkbox-background-checked-hover)
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover).p-highlight .p-checkbox-box .p-checkbox-icon {
color: var(--p-checkbox-icon-color-checked-hover);
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-checkbox.p-invalid > .p-checkbox-box {
border-color: var(--p-checkbox-border-color-invalid);
}
.p-checkbox.p-variant-filled .p-checkbox-box {
background: var(--p-checkbox-background-filled);
}
.p-checkbox.p-variant-filled.p-highlight .p-checkbox-box {
background: var(--p-checkbox-background-checked);
}
.p-checkbox.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover).p-highlight .p-checkbox-box {
background: var(--p-checkbox-background-checked-hover);
}
.p-checkbox.p-disabled {
opacity: 1;
}
.p-checkbox.p-disabled .p-checkbox-box {
background: var(--p-checkbox-background-disabled);
}
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
color: var(--p-checkbox-icon-color-disabled);
}
`
};

View File

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

View File

@ -0,0 +1,47 @@
export default {
css: `
.p-chip {
display: inline-flex;
align-items: center;
background-color: var(--p-chip-background);
color: var(--p-chip-text-color);
border-radius: 16px;
padding: 0.25rem 0.75rem;
}
.p-chip:has(.p-chip-remove-icon) {
padding-right: 0.5rem;
}
.p-chip-text {
line-height: 1.5;
}
.p-chip-icon {
line-height: 1.5;
margin-right: 0.5rem;
}
.p-chip-remove-icon {
line-height: 1.5;
cursor: pointer;
margin-left: 0.375rem;
border-radius: 6px;
transition: outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-chip img {
border-radius: 50%;
width: 2rem;
height: 2rem;
margin-left: -0.5rem;
margin-right: 0.5rem;
}
.p-chip-remove-icon:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
`
};

View File

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

View File

@ -0,0 +1,111 @@
export default {
css: `
.p-chips {
display: inline-flex;
}
.p-chips-multiple-container {
margin: 0;
padding: 0;
list-style-type: none;
cursor: text;
overflow: hidden;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 0.25rem 0.25rem;
gap: 0.25rem;
color: var(--p-chips-text-color);
background: var(--p-chips-background);
border: 1px solid var(--p-chips-border-color);
border-radius: var(--p-rounded-base);
width: 100%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
box-shadow: var(--p-chips-box-shadow);
}
.p-chips:not(.p-disabled):hover .p-chips-multiple-container {
border-color: var(--p-chips-border-color-hover);
}
.p-chips:not(.p-disabled).p-focus .p-chips-multiple-container {
border-color: var(--p-chips-border-color-focus);
outline: 0 none;
}
.p-chips.p-invalid .p-chips-multiple-container {
border-color: var(--p-chips-border-color-invalid);
}
.p-variant-filled.p-chips-multiple-container {
background: var(--p-chips-background-filled);
}
.p-chips:not(.p-disabled).p-focus .p-variant-filled.p-chips-multiple-container {
background: var(--p-chips-background-filled-focus);
}
.p-chips.p-disabled .p-chips-multiple-container {
opacity: 1;
background: var(--p-chips-background-disabled);
color: var(--p-chips-text-color-disabled);
}
.p-chips-token {
cursor: default;
display: inline-flex;
align-items: center;
flex: 0 0 auto;
padding: 0.25rem 0.75rem;
background: var(--p-chips-chip-background);
color: var(--p-chips-chip-text-color);
border-radius: var(--p-rounded-sm);
}
.p-chips-token.p-focus {
background: var(--p-chips-chip-background-focus);
color: var(--p-chips-chip-text-color-focus);
}
.p-chips-input-token {
flex: 1 1 auto;
display: inline-flex;
}
.p-chips-token-icon {
cursor: pointer;
margin-left: 0.375rem;
}
.p-chips-input-token {
padding: 0.25rem 0;
margin-left: 0.5rem;
}
.p-chips-input-token input {
border: 0 none;
outline: 0 none;
background-color: transparent;
margin: 0;
padding: 0;
box-shadow: none;
border-radius: 0;
width: 100%;
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: inherit;
padding: 0;
margin: 0;
}
.p-chips-input-token input::placeholder {
color: var(--p-chips-placeholder-text-color);
}
.p-fluid .p-chips {
display: flex;
}
`
};

View File

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

View File

@ -0,0 +1,48 @@
export default {
css: `
.p-colorpicker-color {
background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.p-colorpicker-hue {
background: linear-gradient(0deg,
red 0,
#ff0 17%,
#0f0 33%,
#0ff 50%,
#00f 67%,
#f0f 83%,
red);
}
.p-colorpicker-preview {
width: 1.5rem;
height: 1.5rem;
padding: 0;
border: 0 none;
border-radius: var(--p-rounded-base);
transition: outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-colorpicker-preview:enabled:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-colorpicker > .p-colorpicker-panel {
background: var(--p-colorpicker-panel-background);
border: 1px solid var(--p-colorpicker-panel-border-color);
border-radius: var(--p-rounded-base);
}
.p-colorpicker-panel .p-colorpicker-color-handle,
.p-colorpicker-panel .p-colorpicker-hue-handle {
border-color: var(--p-colorpicker-handle-color);
}
.p-colorpicker-overlay-panel {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
`
};

View File

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

View File

@ -0,0 +1,13 @@
export default {
css: `
.p-confirm-dialog .p-dialog-content {
display: flex;
align-items: center;
gap: 1rem;
}
.p-confirm-dialog-icon {
font-size: 2rem;
}
`
};

View File

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

View File

@ -0,0 +1,111 @@
export default {
css: `
.p-confirm-popup {
position: absolute;
margin-top: 10px;
top: 0;
left: 0;
background: var(--p-confirmpopup-background);
color: var(--p-confirmpopup-text-color);
border: 1px solid var(--p-confirmpopup-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-confirm-popup-content {
display: flex;
align-items: center;
padding: 1rem;
}
.p-confirm-popup-icon {
font-size: 1.5rem;
width: 1.5rem;
height: 1.5rem;
}
.p-confirm-popup-message {
margin-left: 1rem;
}
.p-confirm-popup-footer {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
padding: 0 1rem 1rem 1rem;
}
.p-confirm-popup-footer button {
width: auto;
}
.p-confirm-popup-footer button:last-child {
margin: 0;
}
.p-confirm-popup-flipped {
margin-top: 0;
margin-bottom: 10px;
}
.p-confirm-popup-enter-from {
opacity: 0;
transform: scaleY(0.8);
}
.p-confirm-popup-leave-to {
opacity: 0;
}
.p-confirm-popup-enter-active {
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-confirm-popup-leave-active {
transition: opacity 0.1s linear;
}
.p-confirm-popup:after,
.p-confirm-popup:before {
bottom: 100%;
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.p-confirm-popup:after {
border-width: 8px;
margin-left: -8px;
border-style: solid;
border-color: transparent;
border-bottom-color: var(--p-confirmpopup-background);
}
.p-confirm-popup:before {
border-width: 10px;
margin-left: -10px;
border-style: solid;
border-color: transparent;
border-bottom-color: var(--p-confirmpopup-border-color);
}
.p-confirm-popup-flipped:after,
.p-confirm-popup-flipped:before {
bottom: auto;
top: 100%;
}
.p-confirm-popup-flipped:after {
border-bottom-color: transparent;
border-top-color: var(--p-confirmpopup-background);
}
.p-confirm-popup-flipped:before {
border-bottom-color: transparent;
border-top-color: var(--p-confirmpopup-border-color);
}
`
};

View File

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

View File

@ -0,0 +1,126 @@
export default {
css: `
.p-contextmenu {
padding: 0.25rem 0.25rem;
background: var(--p-contextmenu-background);
color: var(--p-contextmenu-text-color);
border: 1px solid var(--p-contextmenu-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
min-width: 12.5rem;
}
.p-contextmenu ul {
margin: 0;
padding: 0;
list-style: none;
}
.p-contextmenu-root-list {
outline: 0 none;
}
.p-contextmenu .p-submenu-list {
position: absolute;
min-width: 100%;
z-index: 1;
padding: 0.25rem 0.25rem;
background: var(--p-contextmenu-background);
color: var(--p-contextmenu-text-color);
border: 1px solid var(--p-contextmenu-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-contextmenu .p-menuitem-link {
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
overflow: hidden;
position: relative;
color: inherit;
padding: 0.5rem 0.75rem;
user-select: none;
}
.p-contextmenu .p-menuitem-text {
line-height: 1;
}
.p-contextmenu .p-menuitem {
position: relative;
margin: 2px 0;
}
.p-contextmenu .p-menuitem:first-child {
margin-top: 0;
}
.p-contextmenu .p-menuitem:last-child {
margin-bottom: 0;
}
.p-contextmenu .p-menuitem-content {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
border-radius: var(--p-rounded-sm);
color: var(--p-contextmenu-item-text-color);
}
.p-contextmenu .p-menuitem-icon {
color: var(--p-contextmenu-item-icon-color);
margin-right: 0.5rem;
}
.p-contextmenu .p-submenu-icon {
color: var(--p-contextmenu-item-icon-color);
margin-left: auto;
font-size: 0.875rem;
width: 0.875rem;
height: 0.875rem;
}
.p-contextmenu .p-menuitem.p-focus > .p-menuitem-content {
color: var(--p-contextmenu-item-text-color-focus);
background: var(--p-contextmenu-item-background-focus);
}
.p-contextmenu .p-menuitem.p-focus > .p-menuitem-content .p-menuitem-icon,
.p-contextmenu .p-menuitem.p-focus > .p-menuitem-content .p-submenu-icon {
color: var(--p-contextmenu-item-icon-color-focus);
}
.p-contextmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover {
color: var(--p-contextmenu-item-text-color-focus);
background: var(--p-contextmenu-item-background-focus);
}
.p-contextmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-menuitem-icon,
.p-contextmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-submenu-icon {
color: var(--p-contextmenu-item-icon-color-focus);
}
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-content {
color: var(--p-contextmenu-item-text-color-focus);
background: var(--p-contextmenu-item-background-focus);
}
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-content .p-menuitem-icon,
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-content .p-submenu-icon {
color: var(--p-contextmenu-item-icon-color-focus);
}
.p-contextmenu .p-menuitem-separator {
border-top: 1px solid var(--p-contextmenu-separator-border-color);
margin: 2px 0;
}
.p-contextmenu-enter-from,
.p-contextmenu-leave-active {
opacity: 0;
}
.p-contextmenu-enter-active {
transition: opacity 250ms;
}
`
};

View File

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

View File

@ -0,0 +1,527 @@
export default {
css: `
.p-datatable {
position: relative;
}
.p-datatable-table {
border-spacing: 0px;
width: 100%;
}
.p-datatable .p-sortable-column {
cursor: pointer;
user-select: none;
outline-color: transparent;
}
.p-datatable .p-sortable-column .p-column-title,
.p-datatable .p-sortable-column .p-sortable-column-icon,
.p-datatable .p-sortable-column .p-sortable-column-badge {
vertical-align: middle;
}
.p-datatable .p-sortable-column .p-sortable-column-icon {
color: var(--p-datatable-sort-icon-color);
margin-left: 0.5rem;
transition: color var(--p-transition-duration);
}
.p-datatable .p-sortable-column .p-sortable-column-badge {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
height: 1rem;
min-width: 1rem;
line-height: 1rem;
margin-left: 0.5rem;
}
.p-datatable .p-sortable-column:not(.p-highlight):hover {
background: var(--p-datatable-header-cell-background-hover);
color: var(--p-datatable-header-cell-text-color-hover);
}
.p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {
color: var(--p-datatable-sort-icon-color-hover);
}
.p-datatable .p-sortable-column.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-datatable .p-sortable-column:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: -1px;
}
.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {
color: var(--p-highlight-text-color);
}
.p-datatable-hoverable-rows .p-selectable-row {
cursor: pointer;
}
.p-datatable-scrollable > .p-datatable-wrapper {
position: relative;
}
.p-datatable-scrollable-table > .p-datatable-thead {
top: 0;
z-index: 1;
}
.p-datatable-scrollable-table > .p-datatable-frozen-tbody {
position: sticky;
z-index: 1;
}
.p-datatable-scrollable-table>.p-datatable-tfoot {
bottom: 0;
z-index: 1;
}
.p-datatable-scrollable .p-frozen-column {
position: sticky;
background: inherit;
}
.p-datatable-scrollable th.p-frozen-column {
z-index: 1;
}
.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-thead,
.p-datatable-scrollable > .p-datatable-wrapper > .p-virtualscroller > .p-datatable-table > .p-datatable-thead {
background: var(--p-datatable-header-cell-background);
}
.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tfoot,
.p-datatable-scrollable > .p-datatable-wrapper > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot {
background: var(--p-datatable-footer-cell-background);
}
.p-datatable-flex-scrollable {
display: flex;
flex-direction: column;
height: 100%;
}
.p-datatable-flex-scrollable>.p-datatable-wrapper {
display: flex;
flex-direction: column;
flex: 1;
height: 100%;
}
.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header {
position: sticky;
z-index: 1;
}
/* Resizable */
.p-datatable-resizable-table > .p-datatable-thead > tr > th,
.p-datatable-resizable-table > .p-datatable-tfoot > tr > td,
.p-datatable-resizable-table > .p-datatable-tbody > tr > td {
overflow: hidden;
white-space: nowrap;
}
.p-datatable-resizable-table>.p-datatable-thead > tr > th.p-resizable-column:not(.p-frozen-column) {
background-clip: padding-box;
position: relative;
}
.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-resizable-column:last-child .p-column-resizer {
display: none;
}
.p-datatable .p-column-resizer {
display: block;
position: absolute;
top: 0;
right: 0;
margin: 0;
width: 0.5rem;
height: 100%;
padding: 0px;
cursor: col-resize;
border: 1px solid transparent;
}
.p-datatable .p-column-header-content {
display: flex;
align-items: center;
}
.p-datatable .p-column-resizer-helper {
width: 1px;
position: absolute;
z-index: 10;
display: none;
background: var(--p-datatable-resizer-color);
}
.p-datatable .p-row-toggler,
.p-datatable .p-row-editor-init,
.p-datatable .p-row-editor-save,
.p-datatable .p-row-editor-cancel {
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
width: 1.75rem;
height: 1.75rem;
color: var(--p-datatable-row-action-color);
border: 0 none;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), box-shadow var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-datatable .p-row-toggler:enabled:hover,
.p-datatable .p-row-editor-init:enabled:hover,
.p-datatable .p-row-editor-save:enabled:hover,
.p-datatable .p-row-editor-cancel:enabled:hover {
color: var(--p-datatable-row-action-color-hover);
background: var(--p-datatable-row-action-background-hover);
}
.p-datatable .p-row-toggler:focus-visible,
.p-datatable .p-row-editor-init:focus-visible,
.p-datatable .p-row-editor-save:focus-visible,
.p-datatable .p-row-editor-cancel:focus-visible {
outline: 1px solid var(--p-focus-ring-color);
outline-offset: 2px;
}
.p-datatable .p-row-editor-save {
margin-right: 0.5rem;
}
.p-datatable-tbody > tr.p-highlight .p-row-toggler:hover,
.p-datatable-tbody > tr.p-highlight .p-row-editor-init:hover,
.p-datatable-tbody > tr.p-highlight .p-row-editor-save:hover,
.p-datatable-tbody > tr.p-highlight .p-row-editor-cancel:hover {
background: var(--p-datatable-row-action-background-hover-highlight);
color: inherit;
}
.p-datatable-reorder-indicator-up,
.p-datatable-reorder-indicator-down {
position: absolute;
display: none;
}
.p-reorderable-column,
.p-datatable-reorderablerow-handle {
cursor: move;
}
.p-datatable .p-datatable-loading-overlay {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.p-column-filter-row {
display: flex;
align-items: center;
width: 100%;
}
.p-column-filter-menu {
display: inline-flex;
margin-left: auto;
}
.p-column-filter-row .p-column-filter-element {
flex: 1 1 auto;
width: 1%;
}
.p-column-filter-menu-button,
.p-column-filter-clear-button {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-decoration: none;
overflow: hidden;
position: relative;
}
.p-column-filter-row-items {
margin: 0;
padding: 0;
list-style: none;
}
.p-column-filter-row-item {
cursor: pointer;
}
.p-column-filter-add-button,
.p-column-filter-remove-button {
justify-content: center;
}
.p-column-filter-add-button .p-button-label,
.p-column-filter-remove-button .p-button-label {
flex-grow: 0;
}
.p-column-filter-buttonbar {
display: flex;
align-items: center;
justify-content: space-between;
}
.p-column-filter-buttonbar .p-button:not(.p-button-icon-only) {
width: auto;
}
.p-datatable-virtualscroller-spacer {
display: flex;
}
.p-datatable .p-virtualscroller .p-virtualscroller-loading {
transform: none !important;
min-height: 0;
position: sticky;
top: 0;
left: 0;
}
.p-datatable .p-paginator-top {
border-width: 0 0 1px 0;
border-radius: 0;
}
.p-datatable .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0;
}
.p-datatable-header {
background: var(--p-datatable-header-background);
color: var(--p-datatable-header-text-color);
border: 1px solid var(--p-datatable-header-border-color);
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
font-weight: 600;
}
.p-datatable-footer {
background: var(--p-datatable-header-background);
color: var(--p-datatable-header-text-color);
border: 1px solid var(--p-datatable-header-border-color);
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
font-weight: 600;
}
.p-datatable-thead > tr > th {
text-align: left;
padding: 0.75rem 1rem;
background: var(--p-datatable-header-cell-background);
border: 1px solid var(--p-datatable-header-cell-border-color);
border-width: 0 0 1px 0;
color: var(--p-datatable-header-cell-text-color);
font-weight: 600;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), box-shadow var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-datatable-tbody > tr {
outline-color: transparent;
background: var(--p-datatable-row-background);
color: var(--p-datatable-row-text-color);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), box-shadow var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-datatable-tbody > tr > td {
text-align: left;
border: 1px solid var(--p-datatable-body-cell-border-color);
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
}
.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {
background: var(--p-datatable-row-background-hover);
color: var(--p-datatable-row-text-color-hover);
}
.p-datatable-tbody > tr.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-datatable-tbody > tr:has(+ .p-highlight) > td {
border-bottom-color: var(--p-datatable-body-cell-border-color-selected);
}
.p-datatable-tbody > tr.p-highlight > td {
border-bottom-color: var(--p-datatable-body-cell-border-color-selected);
}
.p-datatable-tbody > tr:focus-visible {
outline: 1px solid var(--p-focus-ring-color);
outline-offset: -1px;
}
.p-datatable-tbody > tr.p-highlight-contextmenu {
outline: 1px solid var(--p-focus-ring-color);
outline-offset: -1px;
}
.p-datatable-tfoot > tr > td {
text-align: left;
padding: 0.75rem 1rem;
border: 1px solid var(--p-datatable-footer-cell-border-color);
border-width: 0 0 1px 0;
font-weight: 600;
color: var(--p-datatable-footer-cell-text-color);
background: var(--p-datatable-footer-cell-background);
}
.p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
box-shadow: inset 0 2px 0 0 var(--p-datatable-drop-point-color);
}
.p-datatable-tbody>tr.p-datatable-dragpoint-bottom > td {
box-shadow: inset 0 -2px 0 0 var(--p-datatable-drop-point-color);
}
.p-datatable-loading-icon {
font-size: 2rem;
width: 2rem;
height: 2rem;
}
.p-datatable.p-datatable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-footer {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-paginator-top {
border-width: 0 1px 0 1px;
}
.p-datatable.p-datatable-gridlines .p-paginator-bottom {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th {
border-width: 1px 0 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th:last-child {
border-width: 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td {
border-width: 1px 0 0 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td:last-child {
border-width: 1px 1px 0 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tbody>tr:last-child>td {
border-width: 1px 0 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tbody>tr:last-child>td:last-child {
border-width: 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td {
border-width: 1px 0 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td:last-child {
border-width: 1px 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead+.p-datatable-tfoot > tr > td {
border-width: 0 0 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead+.p-datatable-tfoot > tr > td:last-child {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {
border-width: 0 0 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {
border-width: 0 0 0 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody >tr:last-child >td:last-child {
border-width: 0 1px 0 1px;
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd {
background: var(--p-datatable-row-background-striped);
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-datatable.p-datatable-sm .p-datatable-header {
padding: 0.375rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
padding: 0.375rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
padding: 0.375rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {
padding: 0.375rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-footer {
padding: 0.375rem 0.5rem;
}
.p-datatable.p-datatable-lg .p-datatable-header {
padding: 0.9375rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {
padding: 0.9375rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-tbody>tr>td {
padding: 0.9375rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td {
padding: 0.9375rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-footer {
padding: 0.9375rem 1.25rem;
}
`
};

View File

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

View File

@ -0,0 +1,42 @@
export default {
css: `
.p-dataview .p-paginator-top {
border-width: 0 0 1px 0;
border-radius: 0;
}
.p-dataview .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0;
}
.p-dataview-header {
background: var(--p-dataview-header-background);
color: var(--p-dataview-header-text-color);
border: 1px solid var(--p-dataview-header-border-color);
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
font-weight: 600;
}
.p-dataview-content {
background: var(--p-dataview-content-background);
color: var(--p-dataview-content-text-color);
border: 0 none;
padding: 0;
}
.p-dataview-footer {
background: var(--p-dataview-footer-background);
color: var(--p-dataview-footer-text-color);
border: 1px solid var(--p-dataview-footer-border-color);
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
font-weight: 600;
}
.p-dataview-layout-options.p-selectbutton .p-button svg {
position: relative;
}
`
};

View File

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

View File

@ -0,0 +1,158 @@
export default {
css: `
.p-dialog {
max-height: 90%;
transform: scale(1);
border-radius: var(--p-rounded-xl);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
background: var(--p-dialog-background);
border: 1px solid var(--p-dialog-border-color);
color: var(--p-dialog-text-color);
}
.p-dialog-content {
overflow-y: auto;
padding: 0 1.5rem 1.5rem 1.5rem;
}
.p-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
padding: 1.5rem;
}
.p-dialog-title {
font-weight: 600;
font-size: 1.25rem;
}
.p-dialog-footer {
flex-shrink: 0;
padding: 0 1.5rem 1.5rem 1.5rem;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
.p-dialog-header-icons {
display: flex;
align-items: center;
gap: 0.5rem;
}
.p-dialog-header-icon {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
width: 1.75rem;
height: 1.75rem;
color: var(--p-dialog-header-icon-color);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-dialog-header-icon:enabled:hover {
background: var(--p-dialog-header-icon-background-hover);
color: var(--p-dialog-header-icon-color-hover);
}
.p-dialog-header-icon:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-dialog-enter-active {
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}
.p-dialog-leave-active {
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.p-dialog-enter-from,
.p-dialog-leave-to {
opacity: 0;
transform: scale(0.7);
}
.p-dialog-top .p-dialog,
.p-dialog-bottom .p-dialog,
.p-dialog-left .p-dialog,
.p-dialog-right .p-dialog,
.p-dialog-topleft .p-dialog,
.p-dialog-topright .p-dialog,
.p-dialog-bottomleft .p-dialog,
.p-dialog-bottomright .p-dialog {
margin: 0.75rem;
transform: translate3d(0px, 0px, 0px);
}
.p-dialog-top .p-dialog-enter-active,
.p-dialog-top .p-dialog-leave-active,
.p-dialog-bottom .p-dialog-enter-active,
.p-dialog-bottom .p-dialog-leave-active,
.p-dialog-left .p-dialog-enter-active,
.p-dialog-left .p-dialog-leave-active,
.p-dialog-right .p-dialog-enter-active,
.p-dialog-right .p-dialog-leave-active,
.p-dialog-topleft .p-dialog-enter-active,
.p-dialog-topleft .p-dialog-leave-active,
.p-dialog-topright .p-dialog-enter-active,
.p-dialog-topright .p-dialog-leave-active,
.p-dialog-bottomleft .p-dialog-enter-active,
.p-dialog-bottomleft .p-dialog-leave-active,
.p-dialog-bottomright .p-dialog-enter-active,
.p-dialog-bottomright .p-dialog-leave-active {
transition: all 0.3s ease-out;
}
.p-dialog-top .p-dialog-enter-from,
.p-dialog-top .p-dialog-leave-to {
transform: translate3d(0px, -100%, 0px);
}
.p-dialog-bottom .p-dialog-enter-from,
.p-dialog-bottom .p-dialog-leave-to {
transform: translate3d(0px, 100%, 0px);
}
.p-dialog-left .p-dialog-enter-from,
.p-dialog-left .p-dialog-leave-to,
.p-dialog-topleft .p-dialog-enter-from,
.p-dialog-topleft .p-dialog-leave-to,
.p-dialog-bottomleft .p-dialog-enter-from,
.p-dialog-bottomleft .p-dialog-leave-to {
transform: translate3d(-100%, 0px, 0px);
}
.p-dialog-right .p-dialog-enter-from,
.p-dialog-right .p-dialog-leave-to,
.p-dialog-topright .p-dialog-enter-from,
.p-dialog-topright .p-dialog-leave-to,
.p-dialog-bottomright .p-dialog-enter-from,
.p-dialog-bottomright .p-dialog-leave-to {
transform: translate3d(100%, 0px, 0px);
}
.p-dialog-maximized {
width: 100vw !important;
height: 100vh !important;
top: 0px !important;
left: 0px !important;
max-height: 100%;
height: 100%;
border-radius: 0;
}
.p-dialog-maximized .p-dialog-content {
flex-grow: 1;
}
`
};

View File

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

View File

@ -0,0 +1,80 @@
export default {
css: `
.p-divider-horizontal {
display: flex;
width: 100%;
position: relative;
align-items: center;
margin: 1rem 0;
padding: 0 1rem;
}
.p-divider-horizontal:before {
position: absolute;
display: block;
top: 50%;
left: 0;
width: 100%;
content: "";
border-top: 1px solid var(--p-divider-border-color);
}
.p-divider-horizontal .p-divider-content {
padding: 0 0.5rem;
}
.p-divider-vertical {
min-height: 100%;
margin: 0 1rem;
display: flex;
position: relative;
justify-content: center;
margin: 0 1rem;
padding: 1rem 0;
}
.p-divider-vertical:before {
position: absolute;
display: block;
top: 0;
left: 50%;
height: 100%;
content: "";
border-left: 1px solid var(--p-divider-border-color);
}
.p-divider.p-divider-vertical .p-divider-content {
padding: 0.5rem 0;
}
.p-divider-content {
z-index: 1;
background: var(--p-divider-content-background);
color: var(--p-divider-content-text-color);
}
.p-divider-solid.p-divider-horizontal:before {
border-top-style: solid;
}
.p-divider-solid.p-divider-vertical:before {
border-left-style: solid;
}
.p-divider-dashed.p-divider-horizontal:before {
border-top-style: dashed;
}
.p-divider-dashed.p-divider-vertical:before {
border-left-style: dashed;
}
.p-divider-dotted.p-divider-horizontal:before {
border-top-style: dotted;
}
.p-divider-dotted.p-divider-vertical:before {
border-left-style: dotted;
}
`
};

View File

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

View File

@ -0,0 +1,173 @@
export default {
css: `
.p-dock {
position: absolute;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
}
.p-dock-list-container {
display: flex;
pointer-events: auto;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 0.5rem 0.5rem;
border-radius: 0.5rem;
}
.p-dock-list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
align-items: center;
justify-content: center;
outline: 0 none;
}
.p-dock-item {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
will-change: transform;
padding: 0.5rem;
border-radius: 6px;
}
p-dock-item.p-focus {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-dock-link {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
cursor: default;
width: 3rem;
height: 3rem;
}
.p-dock-item-second-prev,
.p-dock-item-second-next {
transform: scale(1.2);
}
.p-dock-item-prev,
.p-dock-item-next {
transform: scale(1.4);
}
.p-dock-item-current {
transform: scale(1.6);
z-index: 1;
}
.p-dock-top {
left: 0;
top: 0;
width: 100%;
}
.p-dock-top .p-dock-item {
transform-origin: center top;
}
.p-dock-bottom {
left: 0;
bottom: 0;
width: 100%;
}
.p-dock-bottom .p-dock-item {
transform-origin: center bottom;
}
.p-dock-right {
right: 0;
top: 0;
height: 100%;
}
.p-dock-right .p-dock-item {
transform-origin: center right;
}
.p-dock-right .p-dock-list {
flex-direction: column;
}
.p-dock-left {
left: 0;
top: 0;
height: 100%;
}
.p-dock-left .p-dock-item {
transform-origin: center left;
}
.p-dock-left .p-dock-list {
flex-direction: column;
}
.p-dock-top .p-dock-item-second-prev,
.p-dock-top .p-dock-item-second-next,
.p-dock-bottom .p-dock-item-second-prev,
.p-dock-bottom .p-dock-item-second-next {
margin: 0 0.9rem;
}
.p-dock-top .p-dock-item-prev,
.p-dock-top .p-dock-item-next,
.p-dock-bottom .p-dock-item-prev,
.p-dock-bottom .p-dock-item-next {
margin: 0 1.3rem;
}
.p-dock-top .p-dock-item-current,
.p-dock-bottom .p-dock-item-current {
margin: 0 1.5rem;
}
.p-dock-left .p-dock-item-second-prev,
.p-dock-left .p-dock-item-second-next,
.p-dock-right .p-dock-item-second-prev,
.p-dock-right .p-dock-item-second-next {
margin: 0.9rem 0;
}
.p-dock-left .p-dock-item-prev,
.p-dock-left .p-dock-item-next,
.p-dock-right .p-dock-item-prev,
.p-dock-right .p-dock-item-next {
margin: 1.3rem 0;
}
.p-dock-left .p-dock-item-current,
.p-dock-right .p-dock-item-current {
margin: 1.5rem 0;
}
.p-dock-mobile.p-dock-top .p-dock-list-container,
.p-dock-mobile.p-dock-bottom .p-dock-list-container {
overflow-x: auto;
width: 100%;
}
.p-dock-mobile.p-dock-top .p-dock-list-container .p-dock-list,
.p-dock-mobile.p-dock-bottom .p-dock-list-container .p-dock-list {
margin: 0 auto;
}
.p-dock-mobile.p-dock-left .p-dock-list-container,
.p-dock-mobile.p-dock-right .p-dock-list-container {
overflow-y: auto;
height: 100%;
}
.p-dock-mobile.p-dock-left .p-dock-list-container .p-dock-list,
.p-dock-mobile.p-dock-right .p-dock-list-container .p-dock-list {
margin: auto 0;
}
.p-dock-mobile .p-dock-list .p-dock-item {
transform: none;
margin: 0;
}
`
};

View File

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

View File

@ -0,0 +1,64 @@
export default {
css: `
.p-fieldset {
border: 1px solid var(--p-fieldset-border-color);
background: var(--p-fieldset-background);
color: var(--p-fieldset-text-color);
border-radius: var(--p-rounded-base);
padding: 0 1.125rem 1.125rem 1.125rem;
margin: 0;
}
.p-fieldset-legend {
font-weight: 600;
border-radius: 6px;
border: 0 none;
padding: 0.5rem 0.75rem;
margin-bottom: 0.375rem;
}
.p-fieldset-toggleable > .p-fieldset-legend {
padding: 0;
}
.p-fieldset-toggleable > .p-fieldset-legend > a {
cursor: pointer;
user-select: none;
overflow: hidden;
position: relative;
text-decoration: none;
display: flex;
gap: 0.5rem;
align-items: center;
justify-content: center;
padding: 0.5rem 0.75rem;
color: var(--p-legend-text-color);
border-radius: var(--p-rounded-base);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-fieldset-toggleable > .p-fieldset-legend > a:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-fieldset-toggleable > .p-fieldset-legend > a:hover {
color: var(--p-fieldset-legend-text-color-hover);
background: var(--p-fieldset-legend-background-hover);
}
.p-fieldset-toggler {
color: var(--p-fieldset-toggle-icon-color);
transition: color var(--p-transition-duration);
}
.p-fieldset-toggleable > .p-fieldset-legend > a:hover > .p-fieldset-toggler {
color: var(--p-fieldset-toggle-icon-color-hover);
}
.p-fieldset .p-fieldset-content {
padding: 0;
}
`
};

View File

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

View File

@ -0,0 +1,5 @@
export default {
css: `
`
};

View File

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

View File

@ -0,0 +1,384 @@
export default {
css: `
.p-galleria-content {
display: flex;
flex-direction: column;
}
.p-galleria-item-wrapper {
display: flex;
flex-direction: column;
position: relative;
}
.p-galleria-item-container {
position: relative;
display: flex;
height: 100%;
}
.p-galleria-item-nav {
position: absolute;
top: 50%;
margin-top: -0.5rem;
display: inline-flex;
justify-content: center;
align-items: center;
overflow: hidden;
background: transparent;
color: var(--p-galleria-navigator-color);
width: 3rem;
height: 3rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
border-radius: 50%;
margin: 0 0.5rem;
}
.p-galleria-item-nav:not(.p-disabled):hover {
background: var(--p-galleria-navigator-background-hover);
}
.p-galleria-item-prev-icon,
.p-galleria-item-next-icon {
font-size: 1.5rem;
width: 1.5rem;
height: 1.5rem;
}
.p-galleria-item-prev {
left: 0;
}
.p-galleria-item-next {
right: 0;
}
.p-galleria-item {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
.p-galleria-item-nav-onhover .p-galleria-item-nav {
pointer-events: none;
opacity: 0;
transition: opacity var(--p-transition-duration) ease-in-out;
}
.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {
pointer-events: all;
opacity: 1;
}
.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {
pointer-events: none;
}
.p-galleria-caption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: var(--p-galleria-caption-background);
color: var(--p-galleria-caption-text-color);
padding: 1rem;
}
.p-galleria-thumbnail-wrapper {
display: flex;
flex-direction: column;
overflow: auto;
flex-shrink: 0;
}
.p-galleria-thumbnail-prev,
.p-galleria-thumbnail-next {
align-self: center;
flex: 0 0 auto;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
margin: 0.5rem;
background: transparent;
color: var(--p-galleria-thumbnail-navigator-color);
width: 2rem;
height: 2rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
border-radius: 50%;
}
.p-galleria-thumbnail-prev:hover,
.p-galleria-thumbnail-next:hover {
background: var(--p-galleria-thumbnail-navigator-background-hover);
color: var(--p-galleria-thumbnail-navigator-color-hover);
}
.p-galleria-thumbnail-prev:focus-visible,
.p-galleria-thumbnail-next:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-galleria-thumbnail-prev span,
.p-galleria-thumbnail-next span {
display: flex;
justify-content: center;
align-items: center;
}
.p-galleria-thumbnail-container {
display: flex;
flex-direction: row;
background: var(--p-galleria-thumbnail-container-background);
padding: 1rem 0.25rem;
}
.p-galleria-thumbnail-items-container {
overflow: hidden;
width: 100%;
}
.p-galleria-thumbnail-items {
display: flex;
}
.p-galleria-thumbnail-item {
overflow: auto;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0.5;
}
.p-galleria-thumbnail-item-content {
outline-color: transparent;
}
.p-galleria-thumbnail-item-content:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-galleria-thumbnail-item:hover {
opacity: 1;
transition: opacity 0.3s;
}
.p-galleria-thumbnail-item-current {
opacity: 1;
}
.p-galleria-thumbnails-left .p-galleria-content,
.p-galleria-thumbnails-right .p-galleria-content {
flex-direction: row;
}
.p-galleria-thumbnails-left .p-galleria-item-wrapper,
.p-galleria-thumbnails-right .p-galleria-item-wrapper {
flex-direction: row;
}
.p-galleria-thumbnails-left .p-galleria-item-wrapper,
.p-galleria-thumbnails-top .p-galleria-item-wrapper {
order: 2;
}
.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,
.p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {
order: 1;
}
.p-galleria-thumbnails-left .p-galleria-thumbnail-container,
.p-galleria-thumbnails-right .p-galleria-thumbnail-container {
flex-direction: column;
flex-grow: 1;
}
.p-galleria-thumbnails-left .p-galleria-thumbnail-items,
.p-galleria-thumbnails-right .p-galleria-thumbnail-items {
flex-direction: column;
height: 100%;
}
.p-galleria-indicators {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
gap: 0.5rem;
}
.p-galleria-indicator > button {
display: inline-flex;
align-items: center;
background-color: var(--p-galleria-indicator-background);
width: 1rem;
height: 1rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
border-radius: 50%;
}
.p-galleria-indicator > button:hover {
background: var(--p-galleria-indicator-background-hover);
}
.p-galleria-indicator > button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-galleria-indicator.p-highlight > button {
background-color: var(--p-galleria-indicator-background-active);
}
.p-galleria-indicators-left .p-galleria-item-wrapper,
.p-galleria-indicators-right .p-galleria-item-wrapper {
flex-direction: row;
align-items: center;
}
.p-galleria-indicators-left .p-galleria-item-container,
.p-galleria-indicators-top .p-galleria-item-container {
order: 2;
}
.p-galleria-indicators-left .p-galleria-indicators,
.p-galleria-indicators-top .p-galleria-indicators {
order: 1;
}
.p-galleria-indicators-left .p-galleria-indicators,
.p-galleria-indicators-right .p-galleria-indicators {
flex-direction: column;
}
.p-galleria-indicator-onitem .p-galleria-indicators {
position: absolute;
display: flex;
z-index: 1;
background: var(--p-galleria-inset-indicators-background);
}
.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator > button {
background: var(--p-galleria-inset-indicator-background);
}
.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight > button {
background-color: var(--p-galleria-inset-indicator-background-active);
}
.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {
top: 0;
left: 0;
width: 100%;
align-items: flex-start;
}
.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {
right: 0;
top: 0;
height: 100%;
align-items: flex-end;
}
.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {
bottom: 0;
left: 0;
width: 100%;
align-items: flex-end;
}
.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {
left: 0;
top: 0;
height: 100%;
align-items: flex-start;
}
.p-galleria-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
--p-mask-background: var(--p-galleria-mask-background);
}
.p-galleria-close {
position: absolute;
top: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
margin: 0.5rem;
background: transparent;
color: var(--p-galleria-close-color);
width: 3rem;
height: 3rem;
border-radius: 50%;
outline-color: transparent;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-galleria-close-icon {
font-size: 1.5rem;
width: 1.5rem;
height: 1.5rem;
}
.p-galleria-close:hover {
background: var(--p-galleria-close-background-hover);
color: var(--p-galleria-close-color-hover);
}
.p-galleria-close:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-galleria-mask .p-galleria-item-nav {
position: fixed;
top: 50%;
margin-top: -0.5rem;
}
.p-galleria-enter-active {
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}
.p-galleria-leave-active {
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.p-galleria-enter-from,
.p-galleria-leave-to {
opacity: 0;
transform: scale(0.7);
}
.p-galleria-enter-active .p-galleria-item-nav {
opacity: 0;
}
.p-items-hidden .p-galleria-thumbnail-item {
visibility: hidden;
}
.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {
visibility: visible;
}
`
};

View File

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

View File

@ -0,0 +1,232 @@
export default {
css: `
.p-component,
.p-component * {
box-sizing: border-box;
}
.p-hidden-space {
visibility: hidden;
}
.p-reset {
margin: 0;
padding: 0;
border: 0;
outline: 0;
text-decoration: none;
font-size: 100%;
list-style: none;
}
.p-disabled,
.p-disabled * {
cursor: default;
pointer-events: none;
user-select: none;
}
.p-component-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.p-unselectable-text {
user-select: none;
}
.p-sr-only {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal;
}
.p-link {
text-align: left;
background-color: transparent;
margin: 0;
padding: 0;
border: none;
cursor: pointer;
user-select: none;
}
.p-link:disabled {
cursor: default;
}
/* Non vue overlay animations */
.p-connected-overlay {
opacity: 0;
transform: scaleY(0.8);
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-visible {
opacity: 1;
transform: scaleY(1);
}
.p-connected-overlay-hidden {
opacity: 0;
transform: scaleY(1);
transition: opacity 0.1s linear;
}
/* Vue based overlay animations */
.p-connected-overlay-enter-from {
opacity: 0;
transform: scaleY(0.8);
}
.p-connected-overlay-leave-to {
opacity: 0;
}
.p-connected-overlay-enter-active {
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-leave-active {
transition: opacity 0.1s linear;
}
/* Toggleable Content */
.p-toggleable-content-enter-from,
.p-toggleable-content-leave-to {
max-height: 0;
}
.p-toggleable-content-enter-to,
.p-toggleable-content-leave-from {
max-height: 1000px;
}
.p-toggleable-content-leave-active {
overflow: hidden;
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
}
.p-toggleable-content-enter-active {
overflow: hidden;
transition: max-height 1s ease-in-out;
}
* {
box-sizing: border-box;
}
.p-component {
font-family: var(--p-font-family);
font-feature-settings: var(--p-font-feature-settings, normal);
font-size: 1rem;
font-weight: normal;
}
.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4);
transition-duration: var(--p-transition-duration);
}
.p-disabled,
.p-component:disabled {
opacity: 0.6;
}
.p-error {
color: #f87171;
}
.p-text-secondary {
color: #64748b;
}
.pi {
font-size: 1rem;
}
.p-icon {
width: 1rem;
height: 1rem;
}
.p-link {
font-family: var(--p-font-family);
font-feature-settings: var(--p-font-feature-settings, normal);
font-size: 1rem;
border-radius: 6px;
outline-color: transparent;
}
.p-link:focus-visible {
outline: 1px solid var(--p-focus-ring-color);
outline-offset: 2px;
box-shadow: none;
}
.p-component-overlay-enter {
animation: p-component-overlay-enter-animation 150ms forwards;
}
.p-component-overlay-leave {
animation: p-component-overlay-leave-animation 150ms forwards;
}
@keyframes p-component-overlay-enter-animation {
from {
background-color: transparent;
}
to {
background-color: var(--p-mask-background);
}
}
@keyframes p-component-overlay-leave-animation {
from {
background-color: var(--p-mask-background);
}
to {
background-color: transparent;
}
}
.p-ripple {
overflow: hidden;
position: relative;
}
.p-ink {
display: block;
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 100%;
transform: scale(0);
pointer-events: none;
}
.p-ink-active {
animation: ripple 0.4s linear;
}
.p-ripple-disabled .p-ink {
display: none;
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2.5);
}
}
`
};

View File

@ -0,0 +1,29 @@
export default {
css: `
.p-icon-field {
position: relative;
}
.p-icon-field .p-input-icon {
position: absolute;
top: 50%;
margin-top: -.5rem;
}
.p-icon-field-left .p-input-icon {
left: 0.75rem;
}
.p-icon-field-right .p-input-icon {
right: 0.75rem;
}
.p-icon-field-left .p-inputtext {
padding-left: 2.5rem;
}
.p-icon-field-right .p-inputtext {
padding-right: 2.5rem;
}
`
};

View File

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

View File

@ -0,0 +1,109 @@
export default {
css: `
.p-image-mask {
display: flex;
align-items: center;
justify-content: center;
--p-mask-background: var(--p-image-mask-background);
}
.p-image-preview-container {
position: relative;
display: inline-flex;
line-height: 0;
}
.p-image-preview-indicator {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
border: 0 none;
padding: 0;
cursor: pointer;
background: transparent;
color: var(--p-image-preview-indicator-text-color);
transition: background-color var(--p-transition-duration);
}
.p-image-preview-container:hover > .p-image-preview-indicator {
opacity: 1;
cursor: pointer;
background: var(--p-image-preview-indicator-background);
}
.p-image-preview-icon {
width: 1.5rem;
height: 1.5rem;
}
.p-image-toolbar {
position: absolute;
top: 0;
right: 0;
display: flex;
z-index: 1;
padding: 1rem;
gap: 0.5rem;
}
.p-image-action {
display: inline-flex;
justify-content: center;
align-items: center;
color: var(--p-image-action-color);
background: transparent;
width: 3rem;
height: 3rem;
border-radius: 50%;
outline-color: transparent;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-image-action:hover {
color: var(--p-image-action-color-hover);
background: var(--p-image-action-background-hover);
}
.p-image-action:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-image-action .p-icon {
font-size: 1.5rem;
width: 1.5rem;
height: 1.5rem;
}
.p-image-action.p-disabled {
pointer-events: auto;
}
.p-image-preview {
transition: transform 0.15s;
max-width: 100vw;
max-height: 100vh;
}
.p-image-preview-enter-active {
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}
.p-image-preview-leave-active {
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.p-image-preview-enter-from,
.p-image-preview-leave-to {
opacity: 0;
transform: scale(0.7);
}
`
};

View File

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

View File

@ -0,0 +1,149 @@
import accordion from 'primevue/themes/primeone/base/accordion';
import avatar from 'primevue/themes/primeone/base/avatar';
import badge from 'primevue/themes/primeone/base/badge';
import blockui from 'primevue/themes/primeone/base/blockui';
import breadcrumb from 'primevue/themes/primeone/base/breadcrumb';
import button from 'primevue/themes/primeone/base/button';
import card from 'primevue/themes/primeone/base/card';
import carousel from 'primevue/themes/primeone/base/carousel';
import checkbox from 'primevue/themes/primeone/base/checkbox';
import chip from 'primevue/themes/primeone/base/chip';
import chips from 'primevue/themes/primeone/base/chips';
import colorpicker from 'primevue/themes/primeone/base/colorpicker';
import confirmdialog from 'primevue/themes/primeone/base/confirmdialog';
import confirmpopup from 'primevue/themes/primeone/base/confirmpopup';
import contextmenu from 'primevue/themes/primeone/base/contextmenu';
import datatable from 'primevue/themes/primeone/base/datatable';
import dataview from 'primevue/themes/primeone/base/dataview';
import dialog from 'primevue/themes/primeone/base/dialog';
import divider from 'primevue/themes/primeone/base/divider';
import dock from 'primevue/themes/primeone/base/dock';
import fieldset from 'primevue/themes/primeone/base/fieldset';
import galleria from 'primevue/themes/primeone/base/galleria';
import global from 'primevue/themes/primeone/base/global';
import iconfield from 'primevue/themes/primeone/base/iconfield';
import image from 'primevue/themes/primeone/base/image';
import inlinemessage from 'primevue/themes/primeone/base/inlinemessage';
import inplace from 'primevue/themes/primeone/base/inplace';
import inputgroup from 'primevue/themes/primeone/base/inputgroup';
import inputswitch from 'primevue/themes/primeone/base/inputswitch';
import inputtext from 'primevue/themes/primeone/base/inputtext';
import knob from 'primevue/themes/primeone/base/knob';
import megamenu from 'primevue/themes/primeone/base/megamenu';
import menu from 'primevue/themes/primeone/base/menu';
import menubar from 'primevue/themes/primeone/base/menubar';
import message from 'primevue/themes/primeone/base/message';
import metergroup from 'primevue/themes/primeone/base/metergroup';
import orderlist from 'primevue/themes/primeone/base/orderlist';
import organizationchart from 'primevue/themes/primeone/base/organizationchart';
import overlaypanel from 'primevue/themes/primeone/base/overlaypanel';
import paginator from 'primevue/themes/primeone/base/paginator';
import panel from 'primevue/themes/primeone/base/panel';
import panelmenu from 'primevue/themes/primeone/base/panelmenu';
import password from 'primevue/themes/primeone/base/password';
import picklist from 'primevue/themes/primeone/base/picklist';
import progressbar from 'primevue/themes/primeone/base/progressbar';
import progressspinner from 'primevue/themes/primeone/base/progressspinner';
import radiobutton from 'primevue/themes/primeone/base/radiobutton';
import rating from 'primevue/themes/primeone/base/rating';
import scrollpanel from 'primevue/themes/primeone/base/scrollpanel';
import scrolltop from 'primevue/themes/primeone/base/scrolltop';
import selectbutton from 'primevue/themes/primeone/base/selectbutton';
import sidebar from 'primevue/themes/primeone/base/sidebar';
import skeleton from 'primevue/themes/primeone/base/skeleton';
import slider from 'primevue/themes/primeone/base/slider';
import speeddial from 'primevue/themes/primeone/base/speeddial';
import splitbutton from 'primevue/themes/primeone/base/splitbutton';
import splitter from 'primevue/themes/primeone/base/splitter';
import steps from 'primevue/themes/primeone/base/steps';
import tabmenu from 'primevue/themes/primeone/base/tabmenu';
import tabview from 'primevue/themes/primeone/base/tabview';
import tag from 'primevue/themes/primeone/base/tag';
import terminal from 'primevue/themes/primeone/base/terminal';
import textarea from 'primevue/themes/primeone/base/textarea';
import tieredmenu from 'primevue/themes/primeone/base/tieredmenu';
import timeline from 'primevue/themes/primeone/base/timeline';
import toast from 'primevue/themes/primeone/base/toast';
import togglebutton from 'primevue/themes/primeone/base/togglebutton';
import toolbar from 'primevue/themes/primeone/base/toolbar';
import tooltip from 'primevue/themes/primeone/base/tooltip';
import tree from 'primevue/themes/primeone/base/tree';
import treetable from 'primevue/themes/primeone/base/treetable';
export default {
components: {
global,
accordion,
avatar,
badge,
blockui,
breadcrumb,
button,
card,
carousel,
checkbox,
chip,
chips,
colorpicker,
confirmdialog,
confirmpopup,
contextmenu,
dataview,
datatable,
dialog,
divider,
dock,
fieldset,
galleria,
iconfield,
image,
inlinemessage,
inplace,
inputgroup,
inputswitch,
inputtext,
knob,
megamenu,
menu,
menubar,
message,
metergroup,
orderlist,
organizationchart,
overlaypanel,
paginator,
password,
panel,
panelmenu,
picklist,
progressbar,
progressspinner,
radiobutton,
rating,
scrollpanel,
scrolltop,
selectbutton,
skeleton,
sidebar,
slider,
speeddial,
splitter,
splitbutton,
steps,
tabmenu,
tabview,
textarea,
tieredmenu,
tag,
terminal,
timeline,
togglebutton,
tree,
treetable,
toast,
toolbar
},
directives: {
tooltip
}
};

View File

@ -0,0 +1,94 @@
export default {
css: `
.p-inline-message {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 0.75rem;
margin: 0;
border-radius: var(--p-rounded-base);
}
.p-inline-message-text {
font-weight: 500;
}
.p-inline-message-icon {
flex-shrink: 0;
margin-right: 0.5rem;
}
.p-inline-message-icon-only .p-inline-message-text {
visibility: hidden;
width: 0;
}
.p-fluid .p-inline-message {
display: flex;
}
.p-inline-message-info {
background: var(--p-inlinemessage-info-background);
border: 1px solid var(--p-inlinemessage-info-border-color);
color: var(--p-inlinemessage-info-text-color);
box-shadow: var(--p-inlinemessage-info-box-shadow);
}
.p-inline-message-info .p-inline-message-icon {
color: var(--p-inlinemessage-info-text-color);
}
.p-inline-message-success {
background: var(--p-inlinemessage-success-background);
border: 1px solid var(--p-inlinemessage-success-border-color);
color: var(--p-inlinemessage-success-text-color);
box-shadow: var(--p-inlinemessage-success-box-shadow);
}
.p-inline-message-success .p-inline-message-icon {
color: var(--p-inlinemessage-success-text-color);
}
.p-inline-message-warn {
background: var(--p-inlinemessage-warn-background);
border: 1px solid var(--p-inlinemessage-warn-border-color);
color: var(--p-inlinemessage-warn-text-color);
box-shadow: var(--p-inlinemessage-warn-box-shadow);
}
.p-inline-message-warn .p-inline-message-icon {
color: var(--p-inlinemessage-warn-text-color);
}
.p-inline-message-error {
background: var(--p-inlinemessage-error-background);
border: 1px solid var(--p-inlinemessage-error-border-color);
color: var(--p-inlinemessage-error-text-color);
box-shadow: var(--p-inlinemessage-error-box-shadow);
}
.p-inline-message-error .p-inline-message-icon {
color: var(--p-inlinemessage-error-text-color);
}
.p-inline-message-secondary {
background: var(--p-inlinemessage-secondary-background);
border: 1px solid var(--p-inlinemessage-secondary-border-color);
color: var(--p-inlinemessage-secondary-text-color);
box-shadow: var(--p-inlinemessage-secondary-box-shadow);
}
.p-inline-message-secondary .p-inline-message-icon {
color: var(--p-inlinemessage-secondary-text-color);
}
.p-inline-message-contrast {
background: var(--p-inlinemessage-contrast-background);
border: 1px solid var(--p-inlinemessage-contrast-border-color);
color: var(--p-inlinemessage-contrast-text-color);
box-shadow: var(--p-inlinemessage-contrast-box-shadow);
}
.p-inline-message-contrast .p-inline-message-icon {
color: var(--p-inlinemessage-contrast-text-color);
}
.p-inline-message-icon-only .p-inline-message-icon {
margin-right: 0;
}
`
};

View File

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

View File

@ -0,0 +1,38 @@
export default {
css: `
.p-inplace .p-inplace-display {
display: inline;
cursor: pointer;
}
.p-inplace .p-inplace-content {
display: inline;
}
.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {
display: flex;
}
.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {
flex: 1 1 auto;
width: 1%;
}
.p-inplace-display {
padding: 0.5rem 0.75rem;
border-radius: var(--p-rounded-base);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-inplace-display:not(.p-disabled):hover {
background: var(--p-inplace-display-background-hover);
color: var(--p-inplace-display-text-color-hover);
}
.p-inplace-display:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
`
};

View File

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

View File

@ -0,0 +1,102 @@
export default {
css: `
.p-inputgroup {
display: flex;
align-items: stretch;
width: 100%;
}
.p-inputgroup-addon {
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
background: var(--p-inputgroup-addon-background);
color: var(--p-inputgroup-addon-text-color);
border-top: 1px solid var(--p-inputgroup-addon-border-color);
border-left: 1px solid var(--p-inputgroup-addon-border-color);
border-bottom: 1px solid var(--p-inputgroup-addon-border-color);
padding: 0.5rem 0.75rem;
min-width: 2.5rem;
}
.p-inputgroup .p-float-label {
display: flex;
align-items: stretch;
width: 100%;
}
.p-inputgroup .p-inputtext,
.p-fluid .p-inputgroup .p-inputtext,
.p-inputgroup .p-inputwrapper,
.p-fluid .p-inputgroup .p-input {
flex: 1 1 auto;
width: 1%;
}
.p-inputgroup-addon:last-child {
border-right: 1px solid var(--p-inputgroup-addon-border-color);
}
.p-inputgroup > .p-component,
.p-inputgroup > .p-inputwrapper > .p-inputtext,
.p-inputgroup > .p-float-label > .p-component {
border-radius: 0;
margin: 0;
}
.p-inputgroup > .p-component + .p-inputgroup-addon,
.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,
.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {
border-left: 0 none;
}
.p-inputgroup > .p-component:focus,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,
.p-inputgroup > .p-float-label > .p-component:focus {
z-index: 1;
}
.p-inputgroup > .p-component:focus ~ label,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus~label,
.p-inputgroup > .p-float-label > .p-component:focus~label {
z-index: 1;
}
.p-inputgroup-addon:first-child,
.p-inputgroup button:first-child,
.p-inputgroup input:first-child,
.p-inputgroup > .p-inputwrapper:first-child,
.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.p-inputgroup .p-float-label:first-child input {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.p-inputgroup-addon:last-child,
.p-inputgroup button:last-child,
.p-inputgroup input:last-child,
.p-inputgroup > .p-inputwrapper:last-child,
.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.p-inputgroup .p-float-label:last-child input {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.p-fluid .p-inputgroup .p-button {
width: auto;
}
.p-fluid .p-inputgroup .p-button.p-button-icon-only {
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"
}

View File

@ -0,0 +1,90 @@
export default {
css: `
.p-inputswitch {
display: inline-block;
width: 2.5rem;
height: 1.5rem;
}
.p-inputswitch-input {
cursor: pointer;
appearance: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
border-radius: var(--p-inputswitch-border-radius);
}
.p-inputswitch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 0 none;
background: var(--p-inputswitch-background);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), box-shadow var(--p-transition-duration), outline-color var(--p-transition-duration);
border-radius: var(--p-inputswitch-border-radius);
outline-color: transparent;
}
.p-inputswitch-slider:before {
position: absolute;
content: "";
top: 50%;
background: var(--p-inputswitch-handle-background);
width: 1rem;
height: 1rem;
left: 0.25rem;
margin-top: -0.5rem;
border-radius: 50%;
transition: all var(--p-transition-duration);
}
.p-inputswitch.p-highlight .p-inputswitch-slider {
background: var(--p-inputswitch-background-checked);
}
.p-inputswitch.p-highlight .p-inputswitch-slider:before {
background: var(--p-inputswitch-handle-background-checked);
left: 1.25rem;
}
.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:hover) .p-inputswitch-slider {
background: var(--p-inputswitch-background-hover);
}
.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:hover) .p-inputswitch-slider:before {
background: var(--p-inputswitch-handle-background-hover);
}
.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:hover).p-highlight .p-inputswitch-slider {
background: var(--p-inputswitch-background-checked-hover);
}
.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:hover).p-highlight .p-inputswitch-slider:before {
background: var(--p-inputswitch-handle-background-checked-hover);
}
.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:focus-visible) .p-inputswitch-slider {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-inputswitch.p-invalid > .p-inputswitch-slider {
background: var(--p-inputswitch-background-invalid);
}
.p-inputswitch.p-invalid > .p-inputswitch-slider:before {
background: var(--p-inputswitch-handle-background-invalid);
}
`
};

View File

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

View File

@ -0,0 +1,63 @@
export default {
css: `
.p-inputtext {
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: var(--p-inputtext-text-color);
background: var(--p-inputtext-background);
padding: 0.5rem 0.75rem;
border: 1px solid var(--p-inputtext-border-color);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration);
appearance: none;
border-radius: var(--p-rounded-base);
outline-color: transparent;
box-shadow: var(--p-inputtext-box-shadow);
}
.p-inputtext:enabled:hover {
border-color: var(--p-inputtext-border-color-hover);
}
.p-inputtext:enabled:focus {
border-color: var(--p-inputtext-border-color-focus);
outline: 0 none;
}
.p-inputtext.p-invalid {
border-color: var(--p-inputtext-border-color-invalid);
}
.p-inputtext.p-variant-filled {
background-color: var(--p-inputtext-background-filled);
}
.p-inputtext.p-variant-filled:enabled:focus {
background-color: var(--p-inputtext-background-filled-focus);
}
.p-inputtext:disabled {
opacity: 1;
background: var(--p-inputtext-background-disabled);
color: var(--p-inputtext-text-color-disabled);
}
.p-input-icon-right > svg:last-of-type,
.p-input-icon-right > i:last-of-type {
right: 0.75rem;
color: #94a3b8;
}
.p-input-icon-right > .p-inputtext {
padding-right: 2.5rem;
}
.p-inputtext::placeholder {
color: var(--p-inputtext-placeholder-text-color);
}
.p-fluid .p-inputtext {
width: 100%;
}
`
};

View File

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

View File

@ -0,0 +1,35 @@
export default {
css: `
.p-knob-range {
fill: none;
transition: stroke 0.1s ease-in;
}
.p-knob-value {
animation-name: p-knob-dash-frame;
animation-fill-mode: forwards;
fill: none;
}
.p-knob-text {
font-size: 1.3rem;
text-align: center;
}
.p-knob svg {
border-radius: var(--p-rounded-base);
outline-color: transparent;
transition: outline-color var(--p-transition-duration);
}
.p-knob svg:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
@keyframes p-knob-dash-frame {
100% {
stroke-dashoffset: 0;
}
}
`
};

View File

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

View File

@ -0,0 +1,282 @@
export default {
css: `
.p-megamenu {
display: flex;
position: relative;
padding: 0.5rem 0.5rem;
background: var(--p-megamenu-background);
color: var(--p-megamenu-text-color);
border: 1px solid var(--p-megamenu-border-color);
border-radius: var(--p-rounded-base);
}
.p-megamenu-root-list {
margin: 0;
padding: 0;
list-style: none;
}
.p-megamenu .p-menuitem-content {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
border-radius: var(--p-rounded-sm);
color: var(--p-megamenu-item-text-color);
}
.p-megamenu .p-menuitem-link {
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
overflow: hidden;
position: relative;
color: inherit;
padding: 0.5rem 0.75rem;
user-select: none;
}
.p-megamenu .p-menuitem-text {
line-height: 1;
}
.p-megamenu .p-menuitem-icon {
color: var(--p-megamenu-item-icon-color);
margin-right: 0.5rem;
}
.p-megamenu .p-menuitem.p-focus > .p-menuitem-content {
color: var(--p-megamenu-item-text-color-focus);
background: var(--p-megamenu-item-background-focus);
}
.p-megamenu .p-menuitem.p-focus > .p-menuitem-content .p-menuitem-icon,
.p-megamenu .p-menuitem.p-focus > .p-menuitem-content .p-submenu-icon {
color: var(--p-megamenu-item-icon-color-focus);
}
.p-megamenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover {
color: var(--p-megamenu-item-text-color-focus);
background: var(--p-megamenu-item-background-focus);
}
.p-megamenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-menuitem-icon,
.p-megamenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-submenu-icon {
color: var(--p-megamenu-item-icon-color-focus);
}
.p-megamenu .p-menuitem-active > .p-menuitem-content {
color: var(--p-megamenu-item-text-color-focus);
background: var(--p-megamenu-item-background-focus);
}
.p-megamenu .p-menuitem-active > .p-menuitem-content .p-menuitem-icon,
.p-megamenu .p-menuitem-active > .p-menuitem-content .p-submenu-icon {
color: var(--p-megamenu-item-icon-color-focus);
}
.p-megamenu .p-submenu-icon {
color: var(--p-megamenu-item-icon-color);
margin-left: 0.5rem;
font-size: 0.875rem;
width: 0.875rem;
height: 0.875rem;
}
.p-megamenu-panel {
display: none;
position: absolute;
width: auto;
z-index: 1;
left: 0;
min-width: 100%;
background: var(--p-megamenu-background);
color: var(--p-megamenu-text-color);
border: 1px solid var(--p-megamenu-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)
}
.p-megamenu-root-list > .p-menuitem-active > .p-megamenu-panel {
display: block;
}
.p-megamenu-submenu {
margin: 0;
list-style: none;
padding: 0.25rem 0.25rem;
min-width: 12.5rem;
}
.p-megamenu-submenu .p-menuitem {
margin: 2px 0;
}
.p-megamenu-submenu .p-menuitem:first-child {
margin-top: 0;
}
.p-megamenu-submenu .p-menuitem:last-child {
margin-bottom: 0;
}
.p-megamenu-submenu .p-submenu-header {
margin: 0;
padding: 0.5rem 0.75rem;
color: var(--p-megamenu-submenu-header-text-color);
font-weight: 600;
margin-bottom: 2px;
}
.p-megamenu-submenu .p-menuitem-separator {
border-top: 1px solid var(--p-megamenu-separator-border-color);
margin: 2px 0;
}
.p-megamenu-horizontal {
align-items: center;
}
.p-megamenu-horizontal .p-megamenu-root-list {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.p-megamenu-horizontal .p-megamenu-end {
margin-left: auto;
align-self: center;
}
.p-megamenu-vertical {
display: inline-flex;
flex-direction: column;
min-width: 12.5rem;
padding: 0.25rem 0.25rem;
}
.p-megamenu-vertical .p-megamenu-root-list {
flex-direction: column;
}
.p-megamenu-vertical .p-megamenu-root-list > .p-menuitem-active > .p-megamenu-panel {
left: 100%;
top: 0;
}
.p-megamenu-vertical .p-megamenu-root-list > .p-menuitem > .p-menuitem-content .p-submenu-icon {
margin-left: auto;
}
.p-megamenu-grid {
display: flex;
}
.p-megamenu-col-2,
.p-megamenu-col-3,
.p-megamenu-col-4,
.p-megamenu-col-6,
.p-megamenu-col-12 {
flex: 0 0 auto;
padding: 0.5rem;
}
.p-megamenu-col-2 {
width: 16.6667%;
}
.p-megamenu-col-3 {
width: 25%;
}
.p-megamenu-col-4 {
width: 33.3333%;
}
.p-megamenu-col-6 {
width: 50%;
}
.p-megamenu-col-12 {
width: 100%;
}
.p-megamenu-button {
display: none;
justify-content: center;
align-items: center;
cursor: pointer;
width: 1.75rem;
height: 1.75rem;
position: relative;
color: var(--p-megamenu-mobile-toggle-color);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-megamenu-button:hover {
color: var(--p-megamenu-mobile-toggle-color-hover);
background: var(--p-megamenu-mobile-toggle-background-hover);
}
.p-megamenu-button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-megamenu-mobile {
display: flex;
}
.p-megamenu-mobile .p-megamenu-button {
display: flex;
}
.p-megamenu-mobile .p-megamenu-root-list {
position: absolute;
display: none;
flex-direction: column;
top: 100%;
left: 0;
z-index: 1;
width: 100%;
padding: 0.25rem 0.25rem;
background: var(--p-megamenu-background);
border: 1px solid var(--p-megamenu-border-color);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
gap: 2px;
}
.p-megamenu-mobile-active .p-megamenu-root-list {
display: flex;
}
.p-megamenu-mobile .p-megamenu-root-list .p-menuitem {
width: 100%;
position: static;
}
.p-megamenu-mobile .p-megamenu-panel {
position: static;
border: 0 none;
border-radius: 0;
box-shadow: none;
}
.p-megamenu-mobile .p-megamenu-grid {
flex-wrap: wrap;
overflow: auto;
max-height: 90%;
}
.p-megamenu-mobile .p-megamenu-root-list > .p-menuitem > .p-menuitem-content .p-submenu-icon {
margin-left: auto;
transition: transform 0.2s;
}
.p-megamenu-mobile .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-content .p-submenu-icon {
transform: rotate(-180deg);
}
`
};

View File

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

View File

@ -0,0 +1,92 @@
export default {
css: `
.p-menu {
padding: 0.25rem 0.25rem;
background: var(--p-menu-background);
color: var(--p-menu-text-color);
border: 1px solid var(--p-menu-border-color);
border-radius: var(--p-rounded-base);
min-width: 12.5rem;
}
.p-menu ul {
margin: 0;
padding: 0;
list-style: none;
}
.p-menu .p-menuitem {
margin: 2px 0;
}
.p-menu .p-menuitem:first-child {
margin-top: 0;
}
.p-menu .p-menuitem:last-child {
margin-bottom: 0;
}
.p-menu .p-menuitem-link {
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
overflow: hidden;
position: relative;
color: inherit;
padding: 0.5rem 0.75rem;
user-select: none;
}
.p-menu .p-menuitem-text {
line-height: 1;
}
.p-menu .p-menuitem-content {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
border-radius: var(--p-rounded-sm);
color: var(--p-menu-item-text-color);
}
.p-menu .p-menuitem-icon {
color: var(--p-menu-item-icon-color);
margin-right: 0.5rem;
}
.p-menu .p-menuitem.p-focus .p-menuitem-content {
color: var(--p-menu-item-text-color-focus);
background: var(--p-menu-item-background-focus);
}
.p-menu .p-menuitem.p-focus .p-menuitem-icon {
color: var(--p-menu-item-icon-color-focus);
}
.p-menu .p-menuitem:not(.p-disabled) .p-menuitem-content:hover {
color: var(--p-menu-item-text-color-focus);
background: var(--p-menu-item-background-focus);
}
.p-menu .p-menuitem:not(.p-disabled) .p-menuitem-content:hover .p-menuitem-icon,
.p-menu .p-menuitem:not(.p-disabled) .p-menuitem-content:hover .p-submenu-icon {
color: var(--p-menu-item-icon-color-focus);
}
.p-menu.p-menu-overlay {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-menu .p-submenu-header {
margin: 0;
padding: 0.5rem 0.75rem;
color: var(--p-menu-submenu-header-text-color);
font-weight: 600;
}
.p-menu .p-menuitem-separator {
border-top: 1px solid var(--p-menu-separator-border-color);
margin: 2px 0;
}
`
};

View File

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

View File

@ -0,0 +1,242 @@
export default {
css: `
.p-menubar {
display: flex;
align-items: center;
padding: 0.5rem 0.5rem;
background: var(--p-menubar-background);
color: var(--p-menubar-text-color);
border: 1px solid var(--p-menubar-border-color);
border-radius: var(--p-rounded-base);
}
.p-menubar ul {
margin: 0;
padding: 0;
list-style: none;
}
.p-menubar .p-menuitem-link {
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
overflow: hidden;
position: relative;
color: inherit;
padding: 0.5rem 0.75rem;
user-select: none;
}
.p-menubar .p-menuitem-text {
line-height: 1;
}
.p-menubar-root-list {
display: flex;
align-items: center;
flex-wrap: wrap;
outline: 0 none;
}
.p-menubar-root-list > .p-menuitem-active > .p-submenu-list {
display: block;
}
.p-menubar .p-menuitem-content {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
border-radius: var(--p-rounded-sm);
color: var(--p-menubar-item-text-color);
}
.p-menubar .p-menuitem-icon {
color: var(--p-menubar-item-icon-color);
margin-right: 0.5rem;
}
.p-menubar .p-menuitem.p-focus > .p-menuitem-content {
color: var(--p-menubar-item-text-color-focus);
background: var(--p-menubar-item-background-focus);
}
.p-menubar .p-menuitem.p-focus > .p-menuitem-content .p-menuitem-icon,
.p-menubar .p-menuitem.p-focus > .p-menuitem-content .p-submenu-icon {
color: var(--p-menubar-item-icon-color-focus);
}
.p-menubar .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover {
color: var(--p-menubar-item-text-color-focus);
background: var(--p-menubar-item-background-focus);
}
.p-menubar .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-menuitem-icon,
.p-menubar .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-submenu-icon {
color: var(--p-menubar-item-icon-color-focus);
}
.p-menubar .p-menuitem-active > .p-menuitem-content {
color: var(--p-menubar-item-text-color-focus);
background: var(--p-menubar-item-background-focus);
}
.p-menubar .p-menuitem-active > .p-menuitem-content .p-menuitem-icon,
.p-menubar .p-menuitem-active > .p-menuitem-content .p-submenu-icon {
color: var(--p-menubar-item-icon-color-focus);
}
.p-menubar .p-submenu-icon {
color: var(--p-menubar-item-icon-color);
margin-left: auto;
font-size: 0.875rem;
width: 0.875rem;
height: 0.875rem;
}
.p-menubar-root-list > .p-menuitem > .p-menuitem-content .p-submenu-icon {
margin-left: 0.5rem;
}
.p-menubar .p-submenu-list {
display: none;
position: absolute;
min-width: 12.5rem;
z-index: 1;
padding: 0.25rem 0.25rem;
background: var(--p-menubar-background);
color: var(--p-menubar-text-color);
border: 1px solid var(--p-menubar-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-menubar .p-submenu-list .p-menuitem-separator {
border-top: 1px solid var(--p-menubar-separator-border-color);
margin: 2px 0;
}
.p-menubar .p-submenu-list .p-menuitem {
position: relative;
margin: 2px 0;
}
.p-menubar .p-submenu-list .p-menuitem:first-child {
margin-top: 0;
}
.p-menubar .p-submenu-list .p-menuitem:last-child {
margin-bottom: 0;
}
.p-menubar .p-submenu-list > .p-menuitem-active > .p-submenu-list {
display: block;
left: 100%;
top: 0;
}
.p-menubar .p-menubar-end {
margin-left: auto;
align-self: center;
}
.p-menubar-button {
display: none;
justify-content: center;
align-items: center;
cursor: pointer;
width: 1.75rem;
height: 1.75rem;
position: relative;
color: var(--p-menubar-mobile-toggle-color);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-menubar-button:hover {
color: var(--p-menubar-mobile-toggle-color-hover);
background: var(--p-menubar-mobile-toggle-background-hover);
}
.p-menubar-button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-menubar-mobile {
position: relative;
}
.p-menubar-mobile .p-menubar-button {
display: flex;
}
.p-menubar-mobile .p-menubar-root-list {
position: absolute;
display: none;
width: 100%;
padding: 0.25rem 0.25rem;
background: var(--p-menubar-background);
border: 1px solid var(--p-menubar-border-color);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-menubar-mobile-active .p-menubar-root-list {
display: flex;
flex-direction: column;
top: 100%;
left: 0;
z-index: 1;
}
.p-menubar-mobile .p-menubar-root-list .p-menuitem {
width: 100%;
position: static;
}
.p-menubar-mobile .p-menubar-root-list .p-menuitem-separator {
border-top: 1px solid #e2e8f0;
margin: 2px 0;
}
.p-menubar-mobile .p-menubar-root-list > .p-menuitem {
position: relative;
margin: 2px 0;
}
.p-menubar-mobile .p-menubar-root-list > .p-menuitem:first-child {
margin-top: 0;
}
.p-menubar-mobile .p-menubar-root-list > .p-menuitem:last-child {
margin-bottom: 0;
}
.p-menubar-mobile .p-menubar-root-list > .p-menuitem > .p-menuitem-content .p-submenu-icon {
margin-left: auto;
transition: transform 0.2s;
}
.p-menubar-mobile .p-menubar-root-list > .p-menuitem-active > .p-menuitem-content .p-submenu-icon {
transform: rotate(-180deg);
}
.p-menubar-mobile .p-submenu-list .p-submenu-icon {
transition: transform 0.2s;
transform: rotate(90deg);
}
.p-menubar-mobile .p-menuitem-active > .p-menuitem-content .p-submenu-icon {
transform: rotate(-90deg);
}
.p-menubar-mobile .p-submenu-list {
width: 100%;
position: static;
box-shadow: none;
border: 0 none;
padding-left: 1rem;
}
`
};

View File

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

View File

@ -0,0 +1,173 @@
export default {
css: `
.p-message-wrapper {
display: flex;
align-items: center;
padding: 0.5rem 0.75rem;
}
.p-message {
margin: 1rem 0;
border-radius: 6px;
}
.p-message-icon {
flex-shrink: 0;
}
.p-message-close {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-left: auto;
overflow: hidden;
position: relative;
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
background: transparent;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
color: inherit;
}
.p-message-close:focus-visible {
outline-width: var(--p-focus-ring-width);
outline-style: var(--p-focus-ring-style);
outline-offset: var(--p-focus-ring-offset);
}
.p-message-info {
background: var(--p-message-info-background);
border: 1px solid var(--p-message-info-border-color);
color: var(--p-message-info-text-color);
box-shadow: var(--p-message-info-box-shadow);
}
.p-message-info .p-message-close:focus-visible {
outline-color: var(--p-message-info-text-color);
}
.p-message-info .p-message-close:hover {
background: var(--p-message-info-close-background-hover);
}
.p-message-success {
background: var(--p-message-success-background);
border: 1px solid var(--p-message-success-border-color);
color: var(--p-message-success-text-color);
box-shadow: var(--p-message-success-box-shadow);
}
.p-message-success .p-message-close:focus-visible {
outline-color: var(--p-message-success-text-color);
}
.p-message-success .p-message-close:hover {
background: var(--p-message-success-close-background-hover);
}
.p-message-warn {
background: var(--p-message-warn-background);
border: 1px solid var(--p-message-warn-border-color);
color: var(--p-message-warn-text-color);
box-shadow: var(--p-message-warn-box-shadow);
}
.p-message-warn .p-message-close:focus-visible {
outline-color: var(--p-message-warn-text-color);
}
.p-message-warn .p-message-close:hover {
background: var(--p-message-warn-close-background-hover);
}
.p-message-error {
background: var(--p-message-error-background);
border: 1px solid var(--p-message-error-border-color);
color: var(--p-message-error-text-color);
box-shadow: var(--p-message-error-box-shadow);
}
.p-message-error .p-message-close:focus-visible {
outline-color: var(--p-message-error-text-color);
}
.p-message-error .p-message-close:hover {
background: var(--p-message-error-close-background-hover);
}
.p-message-secondary {
background: var(--p-message-secondary-background);
border: 1px solid var(--p-message-secondary-border-color);
color: var(--p-message-secondary-text-color);
box-shadow: var(--p-message-secondary-box-shadow);
}
.p-message-secondary .p-message-close:focus-visible {
outline-color: var(--p-message-secondary-text-color);
}
.p-message-secondary .p-message-close:hover {
background: var(--p-message-secondary-close-background-hover);
}
.p-message-contrast {
background: var(--p-message-contrast-background);
border: 1px solid var(--p-message-contrast-border-color);
color: var(--p-message-contrast-text-color);
box-shadow: var(--p-message-contrast-box-shadow);
}
.p-message-contrast .p-message-close:focus-visible {
outline-color: var(--p-message-contrast-text-color);
}
.p-message-contrast .p-message-close:hover {
background: var(--p-message-contrast-close-background-hover);
}
.p-message-text {
font-size: 1rem;
font-weight: 500;
}
.p-message-icon {
font-size: 1rem;
margin-right: 0.5rem;
}
.p-message .p-icon:not(.p-message-close-icon) {
width: 1rem;
height: 1rem;
}
.p-message-enter-from {
opacity: 0;
}
.p-message-enter-active {
transition: opacity 0.3s;
}
.p-message.p-message-leave-from {
max-height: 1000px;
}
.p-message.p-message-leave-to {
max-height: 0;
opacity: 0;
margin: 0;
}
.p-message-leave-active {
overflow: hidden;
transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.15s;
}
.p-message-leave-active .p-message-close {
display: none;
}
`
};

View File

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

View File

@ -0,0 +1,95 @@
export default {
css: `
.p-metergroup {
display: flex;
gap: 1rem;
}
.p-metergroup-meters {
display: flex;
background: var(--p-metergroup-meters-background);
border-radius: var(--p-rounded-base);
}
.p-metergroup-meter {
border: 0 none;
background: var(--p-primary-color);
}
.p-metergroup-labels {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
list-style-type: none;
}
.p-metergroup-label {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.p-metergroup-label-marker {
display: inline-flex;
background: var(--p-primary-color);
width: 0.5rem;
height: 0.5rem;
border-radius: 100%;
}
.p-metergroup-label-icon {
width: 1rem;
height: 1rem;
}
.p-metergroup-horizontal {
flex-direction: column;
}
.p-metergroup-labels-horizontal {
gap: 1rem;
}
.p-metergroup-horizontal .p-metergroup-meters {
height: 0.5rem;
}
.p-metergroup-horizontal .p-metergroup-meter:first-of-type {
border-top-left-radius: var(--p-rounded-base);
border-bottom-left-radius: var(--p-rounded-base);
}
.p-metergroup-horizontal .p-metergroup-meter:last-of-type {
border-top-right-radius: var(--p-rounded-base);
border-bottom-right-radius: var(--p-rounded-base);
}
.p-metergroup-vertical {
flex-direction: row;
}
.p-metergroup-labels-vertical {
flex-direction: column;
gap: 0.5rem;
}
.p-metergroup-vertical .p-metergroup-meters {
flex-direction: column;
width: 0.5rem;
height: 100%;
}
.p-metergroup-vertical .p-metergroup-labels {
align-items: start;
}
.p-metergroup-vertical .p-metergroup-meter:first-of-type {
border-top-left-radius: var(--p-rounded-base);
border-top-right-radius: var(--p-rounded-base);
}
.p-metergroup-vertical .p-metergroup-meter:last-of-type {
border-bottom-left-radius: var(--p-rounded-base);
border-bottom-right-radius: var(--p-rounded-base);
}
`
};

View File

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

View File

@ -0,0 +1,107 @@
export default {
css: `
.p-orderlist {
display: flex;
gap: 1.125rem;
}
.p-orderlist-controls {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5rem;
}
.p-orderlist-list-container {
flex: 1 1 auto;
background: var(--p-orderlist-list-background);
border: 1px solid var(--p-orderlist-list-border-color);
border-radius: var(--p-rounded-base);
}
.p-orderlist .p-orderlist-header {
color: var(--p-orderlist-header-text-color);
border: 0 none;
padding: 0.75rem 1rem 0.5rem 1rem;
font-weight: 600;
}
.p-orderlist-list {
list-style-type: none;
margin: 0;
padding: 0;
overflow: auto;
min-height: 12rem;
max-height: 24rem;
padding: 0.25rem 0.25rem;
outline: 0 none;
}
.p-orderlist-item {
cursor: pointer;
overflow: hidden;
position: relative;
padding: 0.5rem 0.75rem;
margin: 2px 0;
border-radius: var(--p-rounded-base);
border: 0 none;
color: var(--p-orderlist-item-text-color);
background: var(--p-orderlist-item-background);
outline-color: transparent;
transition: transform var(--p-transition-duration), background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-orderlist-item:first-child {
margin-top: 0;
}
.p-orderlist-item:last-child {
margin-bottom: 0;
}
.p-orderlist-item:not(.p-highlight):hover {
color: var(--p-orderlist-item-text-color-focus);
background: var(--p-orderlist-item-background-focus);
}
.p-orderlist-item.p-focus {
color: var(--p-orderlist-item-text-color-focus);
background: var(--p-orderlist-item-background-focus);
}
.p-orderlist-item.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-orderlist-item.p-highlight.p-focus {
background: var(--p-highlight-background-focus);
color: var(--p-highlight-text-color-focus);
}
.p-orderlist-controls .p-button {
background: var(--p-orderlist-control-background);
border: 1px solid var(--p-orderlist-control-border-color);
color: var(--p-order-listcontrol-text-color);
outline-color: transparent;
transition: opacity var(--p-transition-duration), outline-color var(--p-transition-duration), background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration);
}
.p-orderlist-controls .p-button:not(:disabled):hover {
background: var(--p-orderlist-control-background-hover);
border: 1px solid var(--p-orderlist-control-border-color-hover);
color: var(--p-order-listcontrol-text-color-hover);
}
.p-orderlist-controls .p-button:not(:disabled):active {
background: var(--p-orderlist-control-background-active);
border: 1px solid var(--p-orderlist-control-border-color-active);
color: var(--p-order-listcontrol-text-color-active);
}
.p-orderlist-controls .p-button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-button-primary-background);
outline-offset: var(--p-focus-ring-offset);
}
`
};

View File

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

View File

@ -0,0 +1,111 @@
export default {
css: `
.p-organizationchart-table {
border-spacing: 0;
border-collapse: separate;
margin: 0 auto;
}
.p-organizationchart-table > tbody > tr > td {
text-align: center;
vertical-align: top;
padding: 0 0.75rem;
}
.p-organizationchart-node-content {
display: inline-block;
position: relative;
border: 1px solid var(--p-organizationchart-node-border-color);
background: var(--p-organizationchart-node-background);
color: var(--p-organizationchart-node-text-color);
padding: 0.75rem 1rem;
border-radius: var(--p-rounded-base);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
}
.p-organizationchart-node-content:has(.p-node-toggler) {
padding: 0.75rem 1rem 1.25rem 1rem;
}
.p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {
background: var(--p-organizationchart-node-background-hover);
color: var(--p-organizationchart-node-text-color-hover);
}
.p-organizationchart-node-content.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-organizationchart-node-content .p-node-toggler {
position: absolute;
bottom: -0.75rem;
margin-left: -0.75rem;
z-index: 2;
left: 50%;
user-select: none;
cursor: pointer;
width: 1.5rem;
height: 1.5rem;
text-decoration: none;
background: var(--p-organizationchart-toggle-icon-background);
color: var(--p-organizationchart-toggle-icon-color);
border-radius: 50%;
border: 1px solid var(--p-organizationchart-toggle-icon-border-color);
display: inline-flex;
justify-content: center;
align-items: center;
outline-color: transparent;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-organizationchart-node-content .p-node-toggler:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {
position: relative;
top: 1px;
}
.p-organizationchart-line-down {
margin: 0 auto;
height: 20px;
width: 1px;
background: var(--p-organizationchart-connector-color);
}
.p-organizationchart-line-right {
border-radius: 0;
border-left: 1px solid var(--p-organizationchart-connector-color);
border-top-left-radius: var(--p-rounded-base);
}
.p-organizationchart-line-left {
border-radius: 0;
border-right: 1px solid var(--p-organizationchart-connector-color);
}
.p-organizationchart-line-top {
border-top: 1px solid var(--p-organizationchart-connector-color);
}
.p-organizationchart-selectable-node {
cursor: pointer;
}
.p-organizationchart-lines :nth-child(1 of .p-organizationchart-line-left) {
border-right: 0 none;
}
.p-organizationchart-lines :nth-last-child(1 of .p-organizationchart-line-left) {
border-top-right-radius: var(--p-rounded-base);
}
.p-organizationchart-lines :nth-child(1 of .p-organizationchart-line-right) {
border-left: 1px solid var(--p-organizationchart-connector-color);
border-top-left-radius: var(--p-rounded-base);
}
`
};

View File

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

View File

@ -0,0 +1,109 @@
export default {
css: `
.p-overlaypanel {
margin-top: 10px;
background: var(--p-overlaypanel-background);
color: var(--p-overlaypanel-text-color);
border: 1px solid var(--p-overlaypanel-border-color);
border-radius: var(--p-rounded-base);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.p-overlaypanel-content {
padding: 0.75rem;
}
.p-overlaypanel-flipped {
margin-top: 0;
margin-bottom: 10px;
}
.p-overlaypanel-close {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 1.75rem;
height: 1.75rem;
background: transparent;
color: var(--p-overlaypanel-close-icon-color);
border: 0 none;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
position: absolute;
top: 0.25rem;
right: 0.25rem;
}
.p-overlaypanel-close:enabled:hover {
background: var(--p-overlaypanel-close-icon-background-hover);
color: var(--p-overlaypanel-close-icon-color-hover);
}
.p-overlaypanel-close:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-overlaypanel-enter-from {
opacity: 0;
transform: scaleY(0.8);
}
.p-overlaypanel-leave-to {
opacity: 0;
}
.p-overlaypanel-enter-active {
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-overlaypanel-leave-active {
transition: opacity 0.1s linear;
}
.p-overlaypanel:after,
.p-overlaypanel:before {
bottom: 100%;
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.p-overlaypanel:after {
border-width: 8px;
margin-left: -8px;
border-style: solid;
border-color: transparent;
border-bottom-color: var(--p-overlaypanel-background);
}
.p-overlaypanel:before {
border-width: 10px;
margin-left: -10px;
border-style: solid;
border-color: transparent;
border-bottom-color: var(--p-overlaypanel-border-color);
}
.p-overlaypanel-flipped:after,
.p-overlaypanel-flipped:before {
bottom: auto;
top: 100%;
}
.p-overlaypanel.p-overlaypanel-flipped:after {
border-bottom-color: transparent;
border-top-color: var(--p-overlaypanel-background);
}
.p-overlaypanel.p-overlaypanel-flipped:before {
border-bottom-color: transparent;
border-top-color: var(--p-overlaypanel-border-color);
}
`
};

View File

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

View File

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

View File

@ -0,0 +1,74 @@
export default {
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-highlight-background);
color: var(--p-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"
}

View File

@ -0,0 +1,60 @@
export default {
css: `
.p-panel {
border: 1px solid var(--p-panel-border-color);
border-radius: var(--p-rounded-base);
background: var(--p-panel-background);
color: var(--p-panel-text-color);
}
.p-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.125rem;
}
.p-panel-toggleable .p-panel-header {
padding: 0.75rem 1.125rem;
}
.p-panel-title {
line-height: 1;
font-weight: 600;
}
.p-panel-header-icon {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
width: 1.75rem;
height: 1.75rem;
position: relative;
color: var(--p-panel-header-icon-color);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
outline-color: transparent;
}
.p-panel-header-icon:enabled:hover {
color: var(--p-panel-header-icon-color-hover);
background: var(--p-panel-header-icon-background-hover);
}
.p-panel-header-icon:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
outline-offset: var(--p-focus-ring-offset);
}
.p-panel-content {
padding: 0 1.125rem 1.125rem 1.125rem;
}
.p-panel-footer {
padding: 0 1.125rem 1.125rem 1.125rem;
}
`
};

View File

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

View File

@ -0,0 +1,128 @@
export default {
css: `
.p-panelmenu {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.p-panelmenu-panel {
background: var(--p-panelmenu-panel-background);
border: 1px solid var(--p-panelmenu-panel-border-color);
color: var(--p-panelmenu-panel-text-color);
border-radius: var(--p-rounded-base);
padding: 0.25rem 0.25rem;
}
.p-panelmenu-header {
outline: 0 none;
border: 0 none;
}
.p-panelmenu-header-content {
border: 0 none;
color: var(--p-panelmenu-item-text-color);
border-radius: var(--p-rounded-base);
transition: background-color 0.2s, color 0.2s, outline-color 0.2s;
outline-color: transparent;
}
.p-panelmenu-header-action {
display: flex;
gap: 0.5rem;
align-items: center;
user-select: none;
cursor: pointer;
position: relative;
text-decoration: none;
color: inherit;
padding: 0.5rem 0.75rem;
font-weight: 600;
}
.p-panelmenu .p-submenu-icon,
.p-panelmenu .p-menuitem-icon {
color: var(--p-panelmenu-item-icon-color);
}
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
background: var(--p-panelmenu-item-background-focus);
color: var(--p-panelmenu-item-text-color-focus);
}
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-submenu-icon,
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-menuitem-icon {
color: var(--p-panelmenu-item-icon-color-focus);
}
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
background: var(--p-panelmenu-item-background-focus);
color: var(--p-panelmenu-item-text-color-focus);
}
.p-panelmenu-header:not(.p-disabled).p-panelmenu-header-content:hover .p-submenu-icon,
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-menuitem-icon {
color: var(--p-panelmenu-item-icon-color-focus);
}
.p-panelmenu .p-menuitem {
margin: 2px 0;
}
.p-panelmenu .p-menuitem:first-child {
margin-top: 0;
}
.p-panelmenu .p-menuitem:last-child {
margin-bottom: 0;
}
.p-panelmenu .p-submenu-list {
margin: 4px 0 0 0;
padding: 0 0 0 1rem;
list-style: none;
}
.p-panelmenu .p-menuitem-link {
display: flex;
gap: 0.5rem;
align-items: center;
user-select: none;
cursor: pointer;
text-decoration: none;
color: inherit;
position: relative;
overflow: hidden;
padding: 0.5rem 0.75rem;
}
.p-panelmenu .p-menuitem-text {
line-height: 1;
}
.p-panelmenu .p-menuitem-content {
transition: background-color var(--p-transition-duration), color var(--p-transition-duration);
border-radius: var(--p-rounded-sm);
color: var(--p-menu-item-text-color);
}
.p-panelmenu .p-menuitem.p-focus > .p-menuitem-content {
color: var(--p-panelmenu-item-text-color-focus);
background: var(--p-panelmenu-item-background-focus);
}
.p-panelmenu .p-menuitem.p-focus > .p-menuitem-icon {
color: var(--p-panelmenu-item-icon-color-focus);
}
.p-panelmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover {
color: var(--p-panelmenu-item-text-color-focus);
background: var(--p-panelmenu-item-background-focus);
}
.p-panelmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-menuitem-icon,
.p-panelmenu .p-menuitem:not(.p-disabled) > .p-menuitem-content:hover .p-submenu-icon {
color: var(--p-panelmenu-item-icon-color-focus);
}
`
};

View File

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

View File

@ -0,0 +1,71 @@
export default {
css: `
.p-password {
display: inline-flex;
position: relative;
}
.p-password .p-password-panel {
min-width: 100%;
}
.p-password-meter {
height: 10px;
margin-bottom: 0.75rem;
background: var(--p-password-meter-border-color);
border-radius: var(--p-rounded-base);
}
.p-password-strength {
height: 100%;
width: 0;
transition: width 1s ease-in-out;
border-radius: var(--p-rounded-base);
}
.p-password-strength.weak {
background: var(--p-password-strength-background-weak);
}
.p-password-strength.medium {
background: var(--p-password-strength-background-medium);
}
.p-password-strength.strong {
background: var(--p-password-strength-background-strong);
}
.p-fluid .p-password {
display: flex;
}
.p-password-input::-ms-reveal,
.p-password-input::-ms-clear {
display: none;
}
.p-password-panel {
padding: 0.75rem;
background: var(--p-password-overlay-background);
color: var(--p-password-overlay-text-color);
border: 1px solid var(--p-password-overlay-border-color);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
border-radius: var(--p-rounded-base);
}
.p-password > svg:last-of-type,
.p-password > i:last-of-type {
right: 0.75rem;
color: var(--p-password-icon-color);
position: absolute;
top: 50%;
margin-top: -0.5rem;
width: 1rem;
height: 1rem;
}
.p-password:has(svg,i) .p-password-input {
padding-right: 2.5rem;
}
`
};

View File

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

View File

@ -0,0 +1,107 @@
export default {
css: `
.p-picklist {
display: flex;
gap: 1.125rem;
}
.p-picklist-buttons {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5rem;
}
.p-picklist-list-wrapper {
flex: 1 1 50%;
background: var(--p-picklist-list-background);
border: 1px solid var(--p-picklist-list-border-color);
border-radius: var(--p-picklist-base);
}
.p-picklist .p-picklist-header {
color: var(--p-picklist-header-text-color);
border: 0 none;
padding: 0.75rem 1rem 0.5rem 1rem;
font-weight: 600;
}
.p-picklist-list {
list-style-type: none;
margin: 0;
padding: 0;
overflow: auto;
min-height: 12rem;
max-height: 24rem;
padding: 0.25rem 0.25rem;
outline: 0 none;
}
.p-picklist-item {
cursor: pointer;
overflow: hidden;
position: relative;
padding: 0.5rem 0.75rem;
margin: 2px 0;
border-radius: var(--p-rounded-base);
border: 0 none;
color: var(--p-picklist-item-text-color);
background: var(--p-picklist-item-background);
outline-color: transparent;
transition: transform var(--p-transition-duration), background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
}
.p-picklist-item:first-child {
margin-top: 0;
}
.p-picklist-item:last-child {
margin-bottom: 0;
}
.p-picklist-item:not(.p-highlight):hover {
color: var(--p-picklist-item-text-color-focus);
background: var(--p-picklist-item-background-focus);
}
.p-picklist-item.p-focus {
color: var(--p-picklist-item-text-color-focus);
background: var(--p-picklist-item-background-focus);
}
.p-picklist-item.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-picklist-item.p-highlight.p-focus {
background: var(--p-highlight-background-focus);
color: var(--p-highlight-text-color-focus);
}
.p-picklist-buttons .p-button {
background: var(--p-picklist-control-background);
border: 1px solid var(--p-picklist-control-border-color);
color: var(--p-order-listcontrol-text-color);
outline-color: transparent;
transition: opacity var(--p-transition-duration), outline-color var(--p-transition-duration), background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration);
}
.p-picklist-buttons .p-button:not(:disabled):hover {
background: var(--p-picklist-control-background-hover);
border: 1px solid var(--p-picklist-control-border-color-hover);
color: var(--p-order-listcontrol-text-color-hover);
}
.p-picklist-buttons .p-button:not(:disabled):active {
background: var(--p-picklist-control-background-active);
border: 1px solid var(--p-picklist-control-border-color-active);
color: var(--p-order-listcontrol-text-color-active);
}
.p-picklist-buttons .p-button:focus-visible {
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-button-primary-background);
outline-offset: var(--p-focus-ring-offset);
}
`
};

View File

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

View File

@ -0,0 +1,125 @@
export default {
css: `
.p-progressbar {
position: relative;
overflow: hidden;
border: 0 none;
height: 1.25rem;
background: var(--p-progressbar-background);
border-radius: var(--p-rounded-base);
}
.p-progressbar-value {
border: 0 none;
margin: 0;
background: var(--p-primary-color);
}
.p-progressbar-label {
color: var(--p-primary-inverse-color);
line-height: 1.25rem;
font-size: .75rem;
font-weight: 600;
}
.p-progressbar-determinate .p-progressbar-value {
height: 100%;
width: 0%;
position: absolute;
display: none;
border: 0 none;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.p-progressbar-determinate .p-progressbar-label {
display: inline-flex;
}
.p-progressbar-determinate .p-progressbar-value-animate {
transition: width 1s ease-in-out;
}
.p-progressbar-indeterminate .p-progressbar-value::before {
content: "";
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
.p-progressbar-indeterminate .p-progressbar-value::after {
content: "";
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation-delay: 1.15s;
}
@-webkit-keyframes p-progressbar-indeterminate-anim {
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
}
@keyframes p-progressbar-indeterminate-anim {
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
}
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
}
@keyframes p-progressbar-indeterminate-anim-short {
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
}
`
};

Some files were not shown because too many files have changed in this diff Show More