primevue-mirror/components/lib/metergroup/style/MeterGroupStyle.js

30 lines
880 B
JavaScript
Raw Normal View History

2024-01-11 13:42:20 +00:00
import BaseStyle from 'primevue/base/style';
const classes = {
2024-01-18 12:53:33 +00:00
root: ({ props }) => [
2024-01-11 13:42:20 +00:00
'p-metergroup p-component',
{
2024-01-18 12:53:33 +00:00
'p-metergroup-horizontal': props.orientation === 'horizontal',
'p-metergroup-vertical': props.orientation === 'vertical'
2024-01-11 13:42:20 +00:00
}
],
2024-02-04 16:11:37 +00:00
metercontainer: 'p-metergroup-meters',
2024-01-11 13:42:20 +00:00
meter: 'p-metergroup-meter',
2024-01-18 12:53:33 +00:00
labellist: ({ props }) => [
2024-02-04 16:11:37 +00:00
'p-metergroup-labels',
2024-01-11 13:42:20 +00:00
{
2024-02-04 16:11:37 +00:00
'p-metergroup-labels-vertical': props.labelOrientation === 'vertical',
'p-metergroup-labels-horizontal': props.labelOrientation === 'horizontal'
2024-01-11 13:42:20 +00:00
}
],
2024-02-04 16:11:37 +00:00
labellistitem: 'p-metergroup-label',
2024-01-12 09:51:29 +00:00
labelicon: 'p-metergroup-label-icon',
2024-02-04 16:11:37 +00:00
labellisttype: 'p-metergroup-label-marker',
label: 'p-metergroup-label-text'
2024-01-11 13:42:20 +00:00
};
export default BaseStyle.extend({
name: 'metergroup',
classes
});