mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana/ui: Move the Stack component out of unstable (#77495)
* grafana/ui: Move Stack out of unstable * grafana/ui: Replace imports
This commit is contained in:
parent
1e065580ac
commit
d62170e4ce
@ -215,6 +215,7 @@ export { Link } from './Link/Link';
|
|||||||
export { TextLink } from './Link/TextLink';
|
export { TextLink } from './Link/TextLink';
|
||||||
export { Text } from './Text/Text';
|
export { Text } from './Text/Text';
|
||||||
export { Box } from './Layout/Box/Box';
|
export { Box } from './Layout/Box/Box';
|
||||||
|
export { Stack } from './Layout/Stack/Stack';
|
||||||
|
|
||||||
export { Label } from './Forms/Label';
|
export { Label } from './Forms/Label';
|
||||||
export { Field, type FieldProps } from './Forms/Field';
|
export { Field, type FieldProps } from './Forms/Field';
|
||||||
|
@ -10,4 +10,3 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export { Grid } from './components/Layout/Grid/Grid';
|
export { Grid } from './components/Layout/Grid/Grid';
|
||||||
export { Stack } from './components/Layout/Stack/Stack';
|
|
||||||
|
@ -5,8 +5,7 @@ import { useLocation } from 'react-router-dom';
|
|||||||
|
|
||||||
import { GrafanaTheme2 } from '@grafana/data';
|
import { GrafanaTheme2 } from '@grafana/data';
|
||||||
import { selectors } from '@grafana/e2e-selectors';
|
import { selectors } from '@grafana/e2e-selectors';
|
||||||
import { CustomScrollbar, Icon, IconButton, useStyles2 } from '@grafana/ui';
|
import { CustomScrollbar, Icon, IconButton, useStyles2, Stack } from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import { useGrafana } from 'app/core/context/GrafanaContext';
|
import { useGrafana } from 'app/core/context/GrafanaContext';
|
||||||
import { t } from 'app/core/internationalization';
|
import { t } from 'app/core/internationalization';
|
||||||
import { useSelector } from 'app/types';
|
import { useSelector } from 'app/types';
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import React, { forwardRef, PropsWithChildren } from 'react';
|
import React, { forwardRef, PropsWithChildren } from 'react';
|
||||||
|
|
||||||
import { IconName } from '@grafana/data';
|
import { IconName } from '@grafana/data';
|
||||||
import { Icon, Tooltip, Box } from '@grafana/ui';
|
import { Icon, Tooltip, Box, Stack } from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import { Unit } from 'app/types';
|
import { Unit } from 'app/types';
|
||||||
|
|
||||||
type OrgUnitProps = { units?: Unit[]; icon: IconName };
|
type OrgUnitProps = { units?: Unit[]; icon: IconName };
|
||||||
|
@ -3,20 +3,20 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|||||||
import { OrgRole } from '@grafana/data';
|
import { OrgRole } from '@grafana/data';
|
||||||
import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
|
import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
|
||||||
import {
|
import {
|
||||||
Button,
|
|
||||||
ConfirmModal,
|
|
||||||
Icon,
|
|
||||||
Tooltip,
|
|
||||||
CellProps,
|
|
||||||
Tag,
|
|
||||||
InteractiveTable,
|
|
||||||
Column,
|
|
||||||
FetchDataFunc,
|
|
||||||
Pagination,
|
|
||||||
Avatar,
|
Avatar,
|
||||||
Box,
|
Box,
|
||||||
|
Button,
|
||||||
|
CellProps,
|
||||||
|
Column,
|
||||||
|
ConfirmModal,
|
||||||
|
FetchDataFunc,
|
||||||
|
Icon,
|
||||||
|
InteractiveTable,
|
||||||
|
Pagination,
|
||||||
|
Stack,
|
||||||
|
Tag,
|
||||||
|
Tooltip,
|
||||||
} from '@grafana/ui';
|
} from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import { UserRolePicker } from 'app/core/components/RolePicker/UserRolePicker';
|
import { UserRolePicker } from 'app/core/components/RolePicker/UserRolePicker';
|
||||||
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
||||||
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
|
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
InteractiveTable,
|
Avatar,
|
||||||
CellProps,
|
CellProps,
|
||||||
Tooltip,
|
|
||||||
Icon,
|
|
||||||
Tag,
|
|
||||||
Pagination,
|
|
||||||
Column,
|
Column,
|
||||||
FetchDataFunc,
|
FetchDataFunc,
|
||||||
|
Icon,
|
||||||
|
InteractiveTable,
|
||||||
|
Pagination,
|
||||||
|
Stack,
|
||||||
|
Tag,
|
||||||
Text,
|
Text,
|
||||||
Avatar,
|
Tooltip,
|
||||||
} from '@grafana/ui';
|
} from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
|
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
|
||||||
import { UserDTO } from 'app/types';
|
import { UserDTO } from 'app/types';
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ import React from 'react';
|
|||||||
import { GrafanaTheme2 } from '@grafana/data';
|
import { GrafanaTheme2 } from '@grafana/data';
|
||||||
import { selectors } from '@grafana/e2e-selectors';
|
import { selectors } from '@grafana/e2e-selectors';
|
||||||
import { config, locationService, reportInteraction } from '@grafana/runtime';
|
import { config, locationService, reportInteraction } from '@grafana/runtime';
|
||||||
import { Button, useStyles2, Text, Box } from '@grafana/ui';
|
import { Button, useStyles2, Text, Box, Stack } from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import { Trans } from 'app/core/internationalization';
|
import { Trans } from 'app/core/internationalization';
|
||||||
import { DashboardModel } from 'app/features/dashboard/state';
|
import { DashboardModel } from 'app/features/dashboard/state';
|
||||||
import { onAddLibraryPanel, onCreateNewPanel, onImportDashboard } from 'app/features/dashboard/utils/dashboard';
|
import { onAddLibraryPanel, onCreateNewPanel, onImportDashboard } from 'app/features/dashboard/utils/dashboard';
|
||||||
|
@ -12,8 +12,8 @@ import {
|
|||||||
useStyles2,
|
useStyles2,
|
||||||
InlineField,
|
InlineField,
|
||||||
Pagination,
|
Pagination,
|
||||||
|
Stack,
|
||||||
} from '@grafana/ui';
|
} from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
|
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
|
||||||
import { Page } from 'app/core/components/Page/Page';
|
import { Page } from 'app/core/components/Page/Page';
|
||||||
import PageLoader from 'app/core/components/PageLoader/PageLoader';
|
import PageLoader from 'app/core/components/PageLoader/PageLoader';
|
||||||
|
@ -2,19 +2,19 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|||||||
import { connect, ConnectedProps } from 'react-redux';
|
import { connect, ConnectedProps } from 'react-redux';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LinkButton,
|
|
||||||
FilterInput,
|
|
||||||
InlineField,
|
|
||||||
CellProps,
|
|
||||||
DeleteButton,
|
|
||||||
InteractiveTable,
|
|
||||||
Icon,
|
|
||||||
Tooltip,
|
|
||||||
Column,
|
|
||||||
Pagination,
|
|
||||||
Avatar,
|
Avatar,
|
||||||
|
CellProps,
|
||||||
|
Column,
|
||||||
|
DeleteButton,
|
||||||
|
FilterInput,
|
||||||
|
Icon,
|
||||||
|
InlineField,
|
||||||
|
InteractiveTable,
|
||||||
|
LinkButton,
|
||||||
|
Pagination,
|
||||||
|
Stack,
|
||||||
|
Tooltip,
|
||||||
} from '@grafana/ui';
|
} from '@grafana/ui';
|
||||||
import { Stack } from '@grafana/ui/src/unstable';
|
|
||||||
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
|
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
|
||||||
import { Page } from 'app/core/components/Page/Page';
|
import { Page } from 'app/core/components/Page/Page';
|
||||||
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
||||||
|
Loading…
Reference in New Issue
Block a user