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:
Alex Khomenko 2023-11-02 11:22:57 +01:00 committed by GitHub
parent 1e065580ac
commit d62170e4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 34 additions and 37 deletions

View File

@ -215,6 +215,7 @@ export { Link } from './Link/Link';
export { TextLink } from './Link/TextLink';
export { Text } from './Text/Text';
export { Box } from './Layout/Box/Box';
export { Stack } from './Layout/Stack/Stack';
export { Label } from './Forms/Label';
export { Field, type FieldProps } from './Forms/Field';

View File

@ -10,4 +10,3 @@
*/
export { Grid } from './components/Layout/Grid/Grid';
export { Stack } from './components/Layout/Stack/Stack';

View File

@ -5,8 +5,7 @@ import { useLocation } from 'react-router-dom';
import { GrafanaTheme2 } from '@grafana/data';
import { selectors } from '@grafana/e2e-selectors';
import { CustomScrollbar, Icon, IconButton, useStyles2 } from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import { CustomScrollbar, Icon, IconButton, useStyles2, Stack } from '@grafana/ui';
import { useGrafana } from 'app/core/context/GrafanaContext';
import { t } from 'app/core/internationalization';
import { useSelector } from 'app/types';

View File

@ -1,8 +1,7 @@
import React, { forwardRef, PropsWithChildren } from 'react';
import { IconName } from '@grafana/data';
import { Icon, Tooltip, Box } from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import { Icon, Tooltip, Box, Stack } from '@grafana/ui';
import { Unit } from 'app/types';
type OrgUnitProps = { units?: Unit[]; icon: IconName };

View File

@ -3,20 +3,20 @@ import React, { useEffect, useMemo, useState } from 'react';
import { OrgRole } from '@grafana/data';
import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
import {
Button,
ConfirmModal,
Icon,
Tooltip,
CellProps,
Tag,
InteractiveTable,
Column,
FetchDataFunc,
Pagination,
Avatar,
Box,
Button,
CellProps,
Column,
ConfirmModal,
FetchDataFunc,
Icon,
InteractiveTable,
Pagination,
Stack,
Tag,
Tooltip,
} from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import { UserRolePicker } from 'app/core/components/RolePicker/UserRolePicker';
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';

View File

@ -1,18 +1,18 @@
import React, { useMemo } from 'react';
import {
InteractiveTable,
Avatar,
CellProps,
Tooltip,
Icon,
Tag,
Pagination,
Column,
FetchDataFunc,
Icon,
InteractiveTable,
Pagination,
Stack,
Tag,
Text,
Avatar,
Tooltip,
} from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
import { UserDTO } from 'app/types';

View File

@ -4,8 +4,7 @@ import React from 'react';
import { GrafanaTheme2 } from '@grafana/data';
import { selectors } from '@grafana/e2e-selectors';
import { config, locationService, reportInteraction } from '@grafana/runtime';
import { Button, useStyles2, Text, Box } from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import { Button, useStyles2, Text, Box, Stack } from '@grafana/ui';
import { Trans } from 'app/core/internationalization';
import { DashboardModel } from 'app/features/dashboard/state';
import { onAddLibraryPanel, onCreateNewPanel, onImportDashboard } from 'app/features/dashboard/utils/dashboard';

View File

@ -12,8 +12,8 @@ import {
useStyles2,
InlineField,
Pagination,
Stack,
} from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
import { Page } from 'app/core/components/Page/Page';
import PageLoader from 'app/core/components/PageLoader/PageLoader';

View File

@ -2,19 +2,19 @@ import React, { useEffect, useMemo, useState } from 'react';
import { connect, ConnectedProps } from 'react-redux';
import {
LinkButton,
FilterInput,
InlineField,
CellProps,
DeleteButton,
InteractiveTable,
Icon,
Tooltip,
Column,
Pagination,
Avatar,
CellProps,
Column,
DeleteButton,
FilterInput,
Icon,
InlineField,
InteractiveTable,
LinkButton,
Pagination,
Stack,
Tooltip,
} from '@grafana/ui';
import { Stack } from '@grafana/ui/src/unstable';
import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA';
import { Page } from 'app/core/components/Page/Page';
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';