mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Forms migration: Old Select to Legacy namespace (#23200)
* Export other components as Legacy * More Select Legacy * Add namespacing to more files * Export new elements * Move Legacy Select folder * Let's not forget the scss file * Move new Select folder * Move new Select from Forms namespace * Little oopsie * Fix errors * Fix merge issues
This commit is contained in:
@@ -6,13 +6,14 @@ import {
|
||||
FieldDisplayEditor,
|
||||
PanelOptionsGroup,
|
||||
FormLabel,
|
||||
Select,
|
||||
LegacyForms,
|
||||
Switch,
|
||||
FieldPropertiesEditor,
|
||||
ThresholdsEditor,
|
||||
LegacyValueMappingsEditor,
|
||||
DataLinksEditor,
|
||||
} from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
import {
|
||||
DataLink,
|
||||
FieldConfig,
|
||||
|
||||
@@ -10,9 +10,10 @@ import {
|
||||
GraphTooltipOptions,
|
||||
PanelOptionsGrid,
|
||||
PanelOptionsGroup,
|
||||
Select,
|
||||
LegacyForms,
|
||||
FieldPropertiesEditor,
|
||||
} from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
import { Options, GraphOptions } from './types';
|
||||
import { GraphLegendEditor } from './GraphLegendEditor';
|
||||
import { NewPanelEditorContext } from 'app/features/dashboard/components/PanelEditor/PanelEditor';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Libraries
|
||||
import React, { PureComponent } from 'react';
|
||||
import { Switch, PanelOptionsGrid, PanelOptionsGroup, FormLabel, Select } from '@grafana/ui';
|
||||
import { Switch, PanelOptionsGrid, PanelOptionsGroup, FormLabel, LegacyForms } from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
|
||||
// Types
|
||||
import { Options } from './types';
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Components
|
||||
import { Select, FormLabel, PanelOptionsGroup } from '@grafana/ui';
|
||||
import { LegacyForms, FormLabel, PanelOptionsGroup } from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
|
||||
// Types
|
||||
import { PanelEditorProps } from '@grafana/data';
|
||||
|
||||
@@ -6,13 +6,15 @@ import {
|
||||
FieldDisplayEditor,
|
||||
PanelOptionsGroup,
|
||||
FormLabel,
|
||||
Select,
|
||||
LegacyForms,
|
||||
FieldPropertiesEditor,
|
||||
ThresholdsEditor,
|
||||
LegacyValueMappingsEditor,
|
||||
DataLinksEditor,
|
||||
} from '@grafana/ui';
|
||||
|
||||
const { Select } = LegacyForms;
|
||||
|
||||
import {
|
||||
PanelEditorProps,
|
||||
ReduceDataOptions,
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import React, { PureComponent, ChangeEvent } from 'react';
|
||||
|
||||
// Components
|
||||
import { PanelOptionsGroup, Select } from '@grafana/ui';
|
||||
import { PanelOptionsGroup, LegacyForms } from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
import { PanelEditorProps, SelectableValue } from '@grafana/data';
|
||||
|
||||
// Types
|
||||
|
||||
Reference in New Issue
Block a user