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-chip {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2024-03-12 10:07:36 +00:00
|
|
|
background: ${dt('chip.background')};
|
|
|
|
color: ${dt('chip.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
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;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
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 {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|