UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

26 lines (22 loc) 990 B
'use strict'; var jsxRuntime = require('react/jsx-runtime'); var react = require('react'); require('../../provider.cjs'); var splitChildren = require('../../splitChildren.cjs'); var minifyCss = require('../../minifyCss.cjs'); var stripFocusAndHoverStyles = require('../../stripFocusAndHoverStyles.cjs'); var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs'); /** * @slot {"name": "", "description": "Default slot for the option text." } */ class DSRMultiSelectOption extends react.Component { host; render() { splitChildren.splitChildren(this.props.children); const { theme = 'light', selected, highlighted } = this.props; this.props.disabled || this.props.disabledParent; minifyCss.minifyCss(stripFocusAndHoverStyles.stripFocusAndHoverStyles(stylesEntry.getMultiSelectOptionCss(theme))); return (jsxRuntime.jsx(jsxRuntime.Fragment, {})); } } exports.DSRMultiSelectOption = DSRMultiSelectOption;