Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #115 from grafana/chore/deprecate-components
Browse files Browse the repository at this point in the history
Chore: Deprecate components available in @grafana/ui
  • Loading branch information
Clarity-89 authored Feb 8, 2024
2 parents d8f2817 + 46ee372 commit e3b16e2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 92 deletions.
3 changes: 1 addition & 2 deletions src/ConfigEditor/Auth/auth-method/BasicAuth.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { cx, css } from '@emotion/css';
import { InlineField, Input, PopoverContent } from '@grafana/ui';
import { SecretInput } from '../common';
import { InlineField, Input, PopoverContent, SecretInput } from '@grafana/ui';
import { useCommonStyles } from '../styles';

export type Props = {
Expand Down
30 changes: 0 additions & 30 deletions src/ConfigEditor/Auth/common/SecretInput.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/ConfigEditor/Auth/common/SecretTextarea.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/ConfigEditor/Auth/common/index.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/ConfigEditor/Auth/custom-headers/CustomHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { css, cx } from '@emotion/css';
import { InlineFieldRow, InlineField, Input, IconButton, useTheme2 } from '@grafana/ui';
import { SecretInput } from '../common';
import { InlineFieldRow, InlineField, Input, IconButton, useTheme2, SecretInput } from '@grafana/ui';
import type { LocalHeader } from '../types';
import { useCommonStyles } from '../styles';

Expand Down
3 changes: 1 addition & 2 deletions src/ConfigEditor/Auth/tls/SelfSignedCertificate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { cx } from '@emotion/css';
import { InlineField } from '@grafana/ui';
import { SecretTextArea } from '../common';
import { InlineField, SecretTextArea } from '@grafana/ui';
import { TLSSettingsSection } from './TLSSettingsSection';
import { useCommonStyles } from '../styles';

Expand Down
3 changes: 1 addition & 2 deletions src/ConfigEditor/Auth/tls/TLSClientAuth.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { cx } from '@emotion/css';
import { InlineField, Input } from '@grafana/ui';
import { SecretTextArea } from '../common';
import { InlineField, Input, SecretTextArea } from '@grafana/ui';
import { TLSSettingsSection } from './TLSSettingsSection';
import { useCommonStyles } from '../styles';

Expand Down
3 changes: 3 additions & 0 deletions src/QueryEditor/Space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export interface SpaceProps {
layout?: 'block' | 'inline';
}

/**
* @deprecated use the Space component from @grafana/ui instead. Available starting from @grafana/[email protected]
*/
export const Space = (props: SpaceProps) => {
const styles = useStyles2(useCallback((theme) => getStyles(theme, props), [props]));

Expand Down
3 changes: 3 additions & 0 deletions src/QueryEditor/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ interface StackProps {
flexGrow?: CSSProperties['flexGrow'];
}

/**
* @deprecated use the Stack component from @grafana/ui instead. Available starting from @grafana/[email protected]
*/
export const Stack = ({ children, ...props }: React.PropsWithChildren<StackProps>) => {
const styles = useStyles2(useCallback((theme) => getStyles(theme, props), [props]));

Expand Down

0 comments on commit e3b16e2

Please sign in to comment.