File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed
extensions/ql-vscode/src/view Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { useCallback } from "react" ;
2
2
import { styled } from "styled-components" ;
3
- import { VSCodeTextField } from "@vscode/webview-ui-toolkit /react" ;
3
+ import { VscodeTextfield } from "@vscode-elements /react-elements " ;
4
4
import { Codicon } from "./icon" ;
5
5
6
- const TextField = styled ( VSCodeTextField ) `
6
+ const TextField = styled ( VscodeTextfield ) `
7
7
width: 100%;
8
8
` ;
9
9
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ import {
14
14
useRole ,
15
15
} from "@floating-ui/react" ;
16
16
import { css , styled } from "styled-components" ;
17
- import { VSCodeTextField } from "@vscode/webview-ui-toolkit /react" ;
17
+ import { VscodeTextfield } from "@vscode-elements /react-elements " ;
18
18
import type { Option } from "./options" ;
19
19
import { findMatchingOptions } from "./options" ;
20
20
import { SuggestBoxItem } from "./SuggestBoxItem" ;
21
21
import { LabelText } from "./LabelText" ;
22
22
import type { Diagnostic } from "./diagnostics" ;
23
23
import { useOpenKey } from "./useOpenKey" ;
24
24
25
- const Input = styled ( VSCodeTextField ) < { $error : boolean } > `
25
+ const Input = styled ( VscodeTextfield ) < { $error : boolean } > `
26
26
width: 100%;
27
27
font-family: var(--vscode-editor-font-family);
28
28
@@ -96,7 +96,7 @@ export type SuggestBoxProps<
96
96
97
97
/**
98
98
* Can be used to render a different component for the input. This is used
99
- * in testing to use default HTML components rather than the VSCodeTextField
99
+ * in testing to use default HTML components rather than the VscodeTextField
100
100
* for easier testing.
101
101
* @param props The props returned by `getReferenceProps` of {@link useInteractions}
102
102
*/
Original file line number Diff line number Diff line change 1
1
import type { ChangeEvent } from "react" ;
2
2
import { styled } from "styled-components" ;
3
- import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react" ;
4
- import { VscodeButton } from "@vscode-elements/react-elements" ;
3
+ import { VscodeButton , VscodeTextfield } from "@vscode-elements/react-elements" ;
5
4
import { Codicon } from "../common" ;
6
5
7
6
export class Renaming {
@@ -23,7 +22,7 @@ function tryCompilePattern(pattern: string): RegExp | undefined {
23
22
}
24
23
}
25
24
26
- const Input = styled ( VSCodeTextField ) `
25
+ const Input = styled ( VscodeTextfield ) `
27
26
width: 20em;
28
27
` ;
29
28
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type {
4
4
ModeledMethod ,
5
5
TypeModeledMethod ,
6
6
} from "../../model-editor/modeled-method" ;
7
- import { VSCodeTextField } from "@vscode/webview-ui-toolkit /react" ;
7
+ import { VscodeTextfield } from "@vscode-elements /react-elements " ;
8
8
import { useDebounceCallback } from "../common/useDebounceCallback" ;
9
9
10
10
type Props = {
@@ -53,7 +53,7 @@ export const ModelTypeTextbox = ({
53
53
) ;
54
54
55
55
return (
56
- < VSCodeTextField
56
+ < VscodeTextfield
57
57
value = { value }
58
58
onInput = { handleChange }
59
59
onClick = { stopClickPropagation }
You can’t perform that action at this time.
0 commit comments