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

Chore: Deprecate components available in @grafana/ui #115

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10.4 is not released yet, but I've added this here to show that an alternative is available.

*/
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
Loading