Grafana/ui: Move Grid out of unstable (#78220)

* Grafana/ui: move Grid out of unstable

* Update docs
This commit is contained in:
Alex Khomenko
2023-11-16 07:23:22 +02:00
committed by GitHub
parent 71f32d4e19
commit d641f9153e
6 changed files with 4 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import { Grid } from './Grid';
# Grid
The `Grid` component allows for the organized layout and alignment of content into a grid-based structure.
The Grid component is a layout component that allows you to create a grid of columns and rows to organize content and elements. It is a wrapper around the [CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) specification.
## Usage

View File

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

View File

@@ -8,5 +8,3 @@
* Once mature, they will be moved to the main export, be available to plugins, and
* be subject to the standard policies
*/
export { Grid } from './components/Layout/Grid/Grid';

View File

@@ -2,8 +2,7 @@ import { css } from '@emotion/css';
import React from 'react';
import { GrafanaTheme2 } from '@grafana/data';
import { Card, useStyles2 } from '@grafana/ui';
import { Grid } from '@grafana/ui/src/unstable';
import { Card, Grid, useStyles2 } from '@grafana/ui';
import { PluginAngularBadge } from 'app/features/plugins/admin/components/Badges';
const getStyles = (theme: GrafanaTheme2) => ({

View File

@@ -2,7 +2,7 @@ import React from 'react';
import { useLocation } from 'react-router-dom';
import { config } from '@grafana/runtime';
import { Grid } from '@grafana/ui/src/unstable';
import { Grid } from '@grafana/ui';
import { CatalogPlugin, PluginListDisplayMode } from '../types';