@grafana/ui
Version:
Grafana Components Library
30 lines (27 loc) • 957 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { t } from '@grafana/i18n';
import { useTheme2 } from '../../themes/ThemeContext.mjs';
import { IconButton } from '../IconButton/IconButton.mjs';
import { getSelectStyles } from './getSelectStyles.mjs';
;
const MultiValueContainer = ({ innerProps, children }) => {
const theme = useTheme2();
const styles = getSelectStyles(theme);
return /* @__PURE__ */ jsx("div", { ...innerProps, className: styles.multiValueContainer, children });
};
const MultiValueRemove = ({ children, innerProps }) => {
const theme = useTheme2();
const styles = getSelectStyles(theme);
return /* @__PURE__ */ jsx(
IconButton,
{
...innerProps,
name: "times",
size: "sm",
className: styles.multiValueRemove,
tooltip: t("grafana-ui.select.multi-value-remove", "Remove")
}
);
};
export { MultiValueContainer, MultiValueRemove };
//# sourceMappingURL=MultiValue.mjs.map