UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

40 lines (37 loc) 1.76 kB
import BaseStyle from 'primevue/base/style'; var css = "\n@layer primevue {\n .p-listbox-list-wrapper {\n overflow: auto;\n }\n\n .p-listbox-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n }\n\n .p-listbox-item {\n cursor: pointer;\n position: relative;\n overflow: hidden;\n }\n\n .p-listbox-item-group {\n cursor: auto;\n }\n\n .p-listbox-filter-container {\n position: relative;\n }\n\n .p-listbox-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-listbox-filter {\n width: 100%;\n }\n}\n"; var classes = { root: function root(_ref) { var instance = _ref.instance, props = _ref.props; return ['p-listbox p-component', { 'p-focus': instance.focused, 'p-disabled': props.disabled }]; }, header: 'p-listbox-header', filterContainer: 'p-listbox-filter-container', filterInput: 'p-listbox-filter p-inputtext p-component', filterIcon: 'p-listbox-filter-icon', wrapper: 'p-listbox-list-wrapper', list: 'p-listbox-list', itemGroup: 'p-listbox-item-group', item: function item(_ref2) { var instance = _ref2.instance, option = _ref2.option, index = _ref2.index, getItemOptions = _ref2.getItemOptions; return ['p-listbox-item', { 'p-highlight': instance.isSelected(option), 'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions), 'p-disabled': instance.isOptionDisabled(option) }]; }, emptyMessage: 'p-listbox-empty-message' }; var ListboxStyle = BaseStyle.extend({ name: 'listbox', css: css, classes: classes }); export { ListboxStyle as default };