Moved Label to grafana/ui/components

This commit is contained in:
Hugo Häggmark 2019-01-16 10:28:05 +01:00
parent 6edc4e9f02
commit 639dc6c3c3
8 changed files with 9 additions and 13 deletions

View File

@ -1,5 +1,5 @@
import React, { SFC, ReactNode } from 'react';
import { Tooltip } from '@grafana/ui';
import { Tooltip } from '../Tooltip/Tooltip';
interface Props {
tooltip?: string;

View File

@ -2,6 +2,7 @@ export { DeleteButton } from './DeleteButton/DeleteButton';
export { Tooltip } from './Tooltip/Tooltip';
export { Portal } from './Portal/Portal';
export { CustomScrollbar } from './CustomScrollbar/CustomScrollbar';
export { Label } from './Label/Label';
// Select
export { Select, AsyncSelect, SelectOptionItem } from './Select/Select';

View File

@ -1,7 +1,6 @@
import React, { PureComponent } from 'react';
import { Select, Label } from '@grafana/ui';
import { Label } from 'app/core/components/Label/Label';
import { Select } from '@grafana/ui';
import { getBackendSrv, BackendSrv } from 'app/core/services/backend_srv';
import { DashboardSearchHit } from 'app/types';

View File

@ -1,5 +1,6 @@
import React, { SFC } from 'react';
import { Label } from 'app/core/components/Label/Label';
import { Label } from '@grafana/ui';
import { Switch } from '../../../core/components/Switch/Switch';
export interface Props {

View File

@ -1,7 +1,7 @@
import React from 'react';
import { connect } from 'react-redux';
import { Label } from '@grafana/ui';
import { Label } from 'app/core/components/Label/Label';
import { SharedPreferences } from 'app/core/components/SharedPreferences/SharedPreferences';
import { updateTeam } from './state/actions';
import { getRouteParamsId } from 'app/core/selectors/location';

View File

@ -1,8 +1,7 @@
import React, { PureComponent } from 'react';
import { GaugeOptions, PanelOptionsProps, PanelOptionsGroup } from '@grafana/ui';
import { GaugeOptions, PanelOptionsProps, PanelOptionsGroup, Label } from '@grafana/ui';
import { Switch } from 'app/core/components/Switch/Switch';
import { Label } from '../../../core/components/Label/Label';
export default class GaugeOptionsEditor extends PureComponent<PanelOptionsProps<GaugeOptions>> {
onToggleThresholdLabels = () =>

View File

@ -1,7 +1,5 @@
import React, { PureComponent } from 'react';
import { MappingType, RangeMap, Select, ValueMap } from '@grafana/ui';
import { Label } from 'app/core/components/Label/Label';
import { MappingType, RangeMap, Select, ValueMap, Label } from '@grafana/ui';
interface Props {
mapping: ValueMap | RangeMap;

View File

@ -1,8 +1,6 @@
import React, { PureComponent } from 'react';
import { GaugeOptions, PanelOptionsProps, PanelOptionsGroup } from '@grafana/ui';
import { GaugeOptions, PanelOptionsProps, PanelOptionsGroup, Label, Select } from '@grafana/ui';
import { Label } from 'app/core/components/Label/Label';
import { Select} from '@grafana/ui';
import UnitPicker from 'app/core/components/Select/UnitPicker';
const statOptions = [