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 11import { useCallback } from "react" ;
22import { styled } from "styled-components" ;
3- import { VSCodeTextField } from "@vscode/webview-ui-toolkit /react" ;
3+ import { VscodeTextfield } from "@vscode-elements /react-elements " ;
44import { Codicon } from "./icon" ;
55
6- const TextField = styled ( VSCodeTextField ) `
6+ const TextField = styled ( VscodeTextfield ) `
77 width: 100%;
88` ;
99
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ import {
1414 useRole ,
1515} from "@floating-ui/react" ;
1616import { css , styled } from "styled-components" ;
17- import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react" ;
1817import type { Option } from "./options" ;
1918import { findMatchingOptions } from "./options" ;
2019import { SuggestBoxItem } from "./SuggestBoxItem" ;
2120import { LabelText } from "./LabelText" ;
2221import type { Diagnostic } from "./diagnostics" ;
2322import { useOpenKey } from "./useOpenKey" ;
23+ import { VscodeTextfield } from "@vscode-elements/react-elements" ;
2424
25- const Input = styled ( VSCodeTextField ) < { $error : boolean } > `
25+ const Input = styled ( VscodeTextfield ) < { $error : boolean } > `
2626 width: 100%;
2727 font-family: var(--vscode-editor-font-family);
2828
@@ -96,7 +96,7 @@ export type SuggestBoxProps<
9696
9797 /**
9898 * 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
100100 * for easier testing.
101101 * @param props The props returned by `getReferenceProps` of {@link useInteractions}
102102 */
Original file line number Diff line number Diff line change 11import type { ChangeEvent } from "react" ;
22import { 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" ;
54import { Codicon } from "../common" ;
65
76export class Renaming {
@@ -23,7 +22,7 @@ function tryCompilePattern(pattern: string): RegExp | undefined {
2322 }
2423}
2524
26- const Input = styled ( VSCodeTextField ) `
25+ const Input = styled ( VscodeTextfield ) `
2726 width: 20em;
2827` ;
2928
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import type {
44 ModeledMethod ,
55 TypeModeledMethod ,
66} from "../../model-editor/modeled-method" ;
7- import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react" ;
87import { useDebounceCallback } from "../common/useDebounceCallback" ;
8+ import { VscodeTextfield } from "@vscode-elements/react-elements" ;
99
1010type Props = {
1111 modeledMethod : TypeModeledMethod ;
@@ -53,7 +53,7 @@ export const ModelTypeTextbox = ({
5353 ) ;
5454
5555 return (
56- < VSCodeTextField
56+ < VscodeTextfield
5757 value = { value }
5858 onInput = { handleChange }
5959 onClick = { stopClickPropagation }
You can’t perform that action at this time.
0 commit comments