2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-chips {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-group {
|
2024-02-19 22:53:42 +00:00
|
|
|
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;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('chips.color')};
|
|
|
|
background: ${dt('chips.background')};
|
|
|
|
border: 1px solid ${dt('chips.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 100%;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
2024-03-13 18:50:24 +00:00
|
|
|
box-shadow: ${dt('chips.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips:not(.p-disabled):hover .p-chips-group {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('chips.hover.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips:not(.p-disabled).p-focus .p-chips-group {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('chips.focus.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline: 0 none;
|
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips.p-invalid .p-chips-group {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('chips.invalid.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-variant-filled.p-chips-group {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('chips.filled.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips:not(.p-disabled).p-focus .p-variant-filled.p-chips-group {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('chips.filled.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips.p-disabled .p-chips-group {
|
2024-02-19 22:53:42 +00:00
|
|
|
opacity: 1;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('chips.disabled.background')};
|
|
|
|
color: ${dt('chips.disabled.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-chip {
|
2024-02-19 22:53:42 +00:00
|
|
|
cursor: default;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
padding: 0.25rem 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('chips.chip.background')};
|
|
|
|
color: ${dt('chips.chip.color')};
|
|
|
|
border-radius: ${dt('rounded.sm')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-chip.p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('chips.chip.focus.background')};
|
|
|
|
color: ${dt('chips.chip.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-chip-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
cursor: pointer;
|
|
|
|
margin-left: 0.375rem;
|
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-input-chip {
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.25rem 0;
|
|
|
|
margin-left: 0.5rem;
|
2024-04-06 20:24:27 +00:00
|
|
|
flex: 1 1 auto;
|
|
|
|
display: inline-flex;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-input-chip input {
|
2024-02-19 22:53:42 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2024-04-06 20:39:18 +00:00
|
|
|
.p-chips-input-chip input::placeholder {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('chips.placeholder.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-chips {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|