vzcode 2.36.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +30 -0
  2. package/dist/assets/index-5qf102c2.css +1 -0
  3. package/dist/assets/index-dSJDl5x9.js +356 -0
  4. package/dist/index.html +2 -2
  5. package/package.json +1 -4
  6. package/src/client/AIAssist/AIAssistWidget/index.tsx +2 -2
  7. package/src/client/AIAssist/AIAssistWidget/style.scss +8 -8
  8. package/src/client/AIAssist/Spinner.jsx +2 -2
  9. package/src/client/App/index.tsx +7 -0
  10. package/src/client/App/initialSidebarView.ts +14 -0
  11. package/src/client/App/style.scss +6 -9
  12. package/src/client/CodeEditor/getOrCreateEditor.tsx +1 -1
  13. package/src/client/CodeEditor/style.scss +13 -13
  14. package/src/client/CodeErrorOverlay/index.tsx +1 -1
  15. package/src/client/CodeErrorOverlay/style.scss +3 -3
  16. package/src/client/ImageViewer/style.scss +6 -6
  17. package/src/client/RunCodeWidget/index.tsx +3 -3
  18. package/src/client/RunCodeWidget/style.scss +2 -2
  19. package/src/client/TabList/Tab.tsx +2 -2
  20. package/src/client/TabList/style.scss +6 -5
  21. package/src/client/VZKeyboardShortcutsDoc.tsx +4 -4
  22. package/src/client/VZSettings.tsx +27 -19
  23. package/src/client/VZSidebar/CreateDirModal.tsx +3 -3
  24. package/src/client/VZSidebar/CreateFileModal.tsx +3 -3
  25. package/src/client/VZSidebar/DeleteConfirmationModal.tsx +2 -2
  26. package/src/client/VZSidebar/Item.tsx +4 -4
  27. package/src/client/VZSidebar/Search.tsx +2 -2
  28. package/src/client/VZSidebar/VoiceChatModal.tsx +1 -1
  29. package/src/client/VZSidebar/index.tsx +24 -21
  30. package/src/client/VZSidebar/styles.scss +134 -125
  31. package/src/client/main.jsx +1 -0
  32. package/src/client/standalone.scss +6 -0
  33. package/src/client/ui.scss +324 -0
  34. package/src/client/ui.tsx +323 -0
  35. package/src/llm-streaming-ui/README.md +2 -2
  36. package/src/llm-streaming-ui/components/ChatInput.tsx +26 -49
  37. package/src/llm-streaming-ui/components/DiffView.scss +1 -1
  38. package/src/llm-streaming-ui/components/Spinner.scss +3 -3
  39. package/src/llm-streaming-ui/components/Spinner.tsx +2 -2
  40. package/src/llm-streaming-ui/components/styles.scss +127 -75
  41. package/dist/assets/bootstrap-icons-BeopsB42.woff +0 -0
  42. package/dist/assets/bootstrap-icons-mSm7cUeB.woff2 +0 -0
  43. package/dist/assets/index-Cj-ERpBu.css +0 -1
  44. package/dist/assets/index-DD7vzp4U.js +0 -364
  45. package/src/client/bootstrap.ts +0 -26
  46. package/src/llm-streaming-ui/components/bootstrap.ts +0 -16
package/dist/index.html CHANGED
@@ -20,8 +20,8 @@
20
20
  href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
21
21
  rel="stylesheet"
22
22
  />
23
- <script type="module" crossorigin src="/assets/index-DD7vzp4U.js"></script>
24
- <link rel="stylesheet" crossorigin href="/assets/index-Cj-ERpBu.css">
23
+ <script type="module" crossorigin src="/assets/index-dSJDl5x9.js"></script>
24
+ <link rel="stylesheet" crossorigin href="/assets/index-5qf102c2.css">
25
25
  </head>
26
26
  <body>
27
27
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "2.36.0",
3
+ "version": "3.1.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -154,7 +154,6 @@
154
154
  "@vizhub/viz-types": "^0.5.0",
155
155
  "@vizhub/viz-utils": "^1.5.0",
156
156
  "body-parser": "^2.2.1",
157
- "bootstrap-icons": "^1.13.1",
158
157
  "codemirror": "^6.0.2",
159
158
  "codemirror-copilot": "^0.0.7",
160
159
  "codemirror-ot": "^5.8.0",
@@ -178,7 +177,6 @@
178
177
  "openai": "^6.9.1",
179
178
  "prettier-plugin-svelte": "^3.4.1",
180
179
  "react": "^18",
181
- "react-bootstrap": "^2.10.10",
182
180
  "react-dom": "^18",
183
181
  "react-markdown": "^10.1.0",
184
182
  "react-router-dom": "^7.11.0",
@@ -186,7 +184,6 @@
186
184
  "sharedb": "^5.2.2",
187
185
  "sharedb-client-browser": "^5.2.2",
188
186
  "uuid": "^13.0.0",
189
- "vizhub-ui": "^3.24.0",
190
187
  "ws": "^8.18.3"
191
188
  },
192
189
  "devDependencies": {
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useContext, useState } from 'react';
2
- import { OverlayTrigger, Tooltip } from '../../bootstrap';
2
+ import { OverlayTrigger, Tooltip } from '../../ui';
3
3
  import { PaneId, TabState } from '../../../types';
4
4
  import { VizFileId } from '@vizhub/viz-types';
5
5
  import { VZCodeContext } from '../../VZCodeContext';
@@ -133,7 +133,7 @@ export const AIAssistWidget = ({
133
133
  }
134
134
  >
135
135
  <i
136
- className="icon-button icon-button-dark"
136
+ className="vz-icon-button"
137
137
  onClick={aiAssistClickOverride || handleClick}
138
138
  >
139
139
  <SparklesSVG />
@@ -4,10 +4,10 @@
4
4
  // right: 32px;
5
5
  bottom: 16px;
6
6
  right: 16px;
7
- color: var(--vh-color-caution-01);
7
+ color: var(--vz-color-caution-01);
8
8
  }
9
9
 
10
- .vh-spinner {
10
+ .vz-spinner {
11
11
  display: flex;
12
12
  height: 100%;
13
13
  flex-direction: column;
@@ -18,11 +18,11 @@
18
18
 
19
19
  /* Fade in after a delay */
20
20
  /* https://stackoverflow.com/questions/29846224/css-animation-with-delay-and-opacity */
21
- .vh-spinner.fade-in svg {
22
- animation: 1s linear 0s normal forwards 1 fadein;
21
+ .vz-spinner.fade-in svg {
22
+ animation: 1s linear 0s normal forwards 1 vz-assist-fadein;
23
23
  }
24
24
 
25
- @keyframes fadein {
25
+ @keyframes vz-assist-fadein {
26
26
  0% {
27
27
  opacity: 0;
28
28
  }
@@ -36,11 +36,11 @@
36
36
 
37
37
  /* Infinite rotation */
38
38
  /* https://stackoverflow.com/questions/6410730/css-endless-rotation-animation */
39
- .vh-spinner-dots {
40
- animation: rotate 3s linear infinite;
39
+ .vz-spinner-dots {
40
+ animation: vz-assist-rotate 3s linear infinite;
41
41
  }
42
42
 
43
- @keyframes rotate {
43
+ @keyframes vz-assist-rotate {
44
44
  to {
45
45
  transform: rotate(360deg);
46
46
  }
@@ -50,7 +50,7 @@ export const Spinner = ({
50
50
  return (
51
51
  show && (
52
52
  <div
53
- className={`vh-spinner${fadeIn ? ' fade-in' : ''}`}
53
+ className={`vz-spinner${fadeIn ? ' fade-in' : ''}`}
54
54
  >
55
55
  <svg
56
56
  height={height}
@@ -58,7 +58,7 @@ export const Spinner = ({
58
58
  style={{ opacity: 1 }}
59
59
  >
60
60
  <g transform="translate(50, 50)" fill={fill}>
61
- <g className="vh-spinner-dots">
61
+ <g className="vz-spinner-dots">
62
62
  {dots.map(({ x, y, r }, i) => (
63
63
  <circle
64
64
  key={i}
@@ -27,6 +27,7 @@ import './style.scss';
27
27
  import { useShareDB } from './useShareDB';
28
28
  import { useESLint } from '../useESLint';
29
29
  import { enableLiveKit } from '../featureFlags';
30
+ import { getInitialSidebarViewFromSearch } from './initialSidebarView';
30
31
 
31
32
  // Instantiate the Prettier worker.
32
33
  const prettierWorker = new PrettierWorker();
@@ -81,6 +82,11 @@ function App() {
81
82
  // Get the initial username from localStorage.
82
83
  const initialUsername: Username = useInitialUsername();
83
84
 
85
+ // Open the Files panel when the URL names a file.
86
+ const [initialSidebarView] = useState(() =>
87
+ getInitialSidebarViewFromSearch(window.location.search),
88
+ );
89
+
84
90
  //@ts-ignore
85
91
  const serverUrl = import.meta.env.VITE_LIVEKIT_URL; //Vite only parses VITE_ prefixed environment variables
86
92
 
@@ -133,6 +139,7 @@ function App() {
133
139
  docPresence={docPresence}
134
140
  prettierWorker={prettierWorker}
135
141
  initialUsername={initialUsername}
142
+ initialSidebarView={initialSidebarView}
136
143
  connected={connected}
137
144
  pending={pending}
138
145
  liveKitRoomName={liveKitRoomName}
@@ -0,0 +1,14 @@
1
+ import type { VZInitialSidebarView } from '../../types';
2
+
3
+ /**
4
+ * Chooses the sidebar shown when the standalone app first loads.
5
+ * A URL that names a file (`?file=styles.css`) opens the Files
6
+ * panel so the file's tree entry is visible; otherwise the
7
+ * historical AI chat default is kept.
8
+ */
9
+ export const getInitialSidebarViewFromSearch = (
10
+ search: string,
11
+ ): VZInitialSidebarView => {
12
+ const file = new URLSearchParams(search).get('file');
13
+ return file ? 'files' : 'ai-chat';
14
+ };
@@ -4,11 +4,11 @@
4
4
  @import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
5
5
  @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
6
6
  @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
7
- :root {
7
+ .app {
8
8
  // --vzcode-font-family: ui-monospace, SFMono-Regular,
9
9
  // 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace !important;
10
10
 
11
- --vzcode-font-family: 'Roboto Mono', monospace !important;
11
+ --vzcode-font-family: 'Roboto Mono', monospace;
12
12
  --vzcode-font-size: 16px;
13
13
 
14
14
  /* Variable for the background color */
@@ -20,27 +20,24 @@
20
20
  }
21
21
 
22
22
  /* Scrollbar Styles */
23
- ::-webkit-scrollbar {
23
+ .app ::-webkit-scrollbar {
24
24
  width: 16px;
25
25
  height: 16px;
26
26
  }
27
27
 
28
- // ::-webkit-scrollbar-track {
28
+ // .app ::-webkit-scrollbar-track {
29
29
  // background: rgb(255, 255, 255, 0.1);
30
30
  // }
31
31
 
32
- ::-webkit-scrollbar-thumb {
32
+ .app ::-webkit-scrollbar-thumb {
33
33
  background: rgb(255, 255, 255, 0.3);
34
34
  }
35
35
 
36
- ::-webkit-scrollbar-thumb:hover {
36
+ .app ::-webkit-scrollbar-thumb:hover {
37
37
  background: #555;
38
38
  }
39
39
 
40
40
  /* Layout Styles */
41
- html,
42
- body,
43
- #root,
44
41
  .app {
45
42
  height: 100%;
46
43
  }
@@ -478,7 +478,7 @@ export const getOrCreateEditor = async ({
478
478
  wrap.style.display = 'inline-flex'; // prevent block expansion
479
479
  wrap.style.alignItems = 'center';
480
480
  wrap.style.justifyContent = 'center';
481
- wrap.className = 'icon-button icon-button-dark';
481
+ wrap.className = 'vz-icon-button';
482
482
  wrap.style.cursor = 'pointer';
483
483
 
484
484
  // Handle click directly on the wrapper element
@@ -74,33 +74,33 @@
74
74
  .cm-panel.cm-search {
75
75
  padding: 5px;
76
76
  position: relative;
77
- background-color: var(--vh-color-neutral-01);
77
+ background-color: var(--vz-color-neutral-01);
78
78
  border-radius: 6px;
79
- color: var(--vh-color-neutral-04);
79
+ color: var(--vz-color-neutral-04);
80
80
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
81
81
  }
82
82
 
83
83
  .cm-panels {
84
84
  background-color: #333338;
85
- color: var(--vh-color-neutral-04);
86
- border: 2px solid var(--vh-color-neutral-02);
85
+ color: var(--vz-color-neutral-04);
86
+ border: 2px solid var(--vz-color-neutral-02);
87
87
  border-radius: 6px;
88
88
  }
89
89
 
90
90
  .cm-textfield {
91
- background-color: var(--vh-color-neutral-01);
91
+ background-color: var(--vz-color-neutral-01);
92
92
  color: #efe7dc;
93
- border: 1px solid var(--vh-color-neutral-04);
93
+ border: 1px solid var(--vz-color-neutral-04);
94
94
  padding: 8px;
95
95
  border-radius: 6px;
96
96
  font-size: 14px;
97
97
  }
98
98
 
99
99
  .cm-button {
100
- background-color: var(--vh-color-neutral-01);
100
+ background-color: var(--vz-color-neutral-01);
101
101
  border: 1px solid #193350;
102
- color: var(--vh-color-neutral-04);
103
- border: 1px solid var(--vh-color-neutral-04);
102
+ color: var(--vz-color-neutral-04);
103
+ border: 1px solid var(--vz-color-neutral-04);
104
104
  border-radius: 5px;
105
105
  padding: 6px 12px;
106
106
  font-weight: bold;
@@ -133,8 +133,8 @@
133
133
  position: absolute;
134
134
  top: 0;
135
135
  right: 4px;
136
- background-color: var(--vh-color-neutral-01);
137
- color: var(--vh-color-neutral-04);
136
+ background-color: var(--vz-color-neutral-01);
137
+ color: var(--vz-color-neutral-04);
138
138
  border: none;
139
139
  font: inherit;
140
140
  padding: 4px 8px;
@@ -145,12 +145,12 @@
145
145
  }
146
146
 
147
147
  .cm-panel.cm-search [name='close']:hover {
148
- background-color: var(--vh-color-caution-01);
148
+ background-color: var(--vz-color-caution-01);
149
149
  color: #ffffff;
150
150
  }
151
151
 
152
152
  .cm-panel.cm-search [name='close']:active {
153
- background-color: var(--vh-color-caution-02);
153
+ background-color: var(--vz-color-caution-02);
154
154
  transform: scale(0.95);
155
155
  }
156
156
  }
@@ -66,7 +66,7 @@ export const CodeErrorOverlay = ({
66
66
  <pre>{errorMessage}</pre>
67
67
  {enableErrorDismiss ? (
68
68
  <i
69
- className="icon-button icon-button-dark error-dismiss-button"
69
+ className="vz-icon-button error-dismiss-button"
70
70
  onClick={handleCloseClick}
71
71
  >
72
72
  <CloseSVG />
@@ -1,8 +1,8 @@
1
1
  .vz-code-error-overlay {
2
- color: var(--vh-color-neutral-04);
3
- background: var(--vh-color-neutral-01);
2
+ color: var(--vz-color-neutral-04);
3
+ background: var(--vz-color-neutral-01);
4
4
  opacity: 0.9;
5
- border-left: 4px solid var(--vh-color-warning-01);
5
+ border-left: 4px solid var(--vz-color-warning-01);
6
6
  position: absolute;
7
7
  bottom: 0;
8
8
  left: 0;
@@ -3,14 +3,14 @@
3
3
  width: 100%;
4
4
  display: flex;
5
5
  flex-direction: column;
6
- background-color: var(--bs-body-bg);
7
- color: var(--bs-body-color);
6
+ background-color: var(--vz-bg-color);
7
+ color: var(--vz-color-neutral-04);
8
8
  }
9
9
 
10
10
  .image-viewer-header {
11
11
  padding: 12px 16px;
12
- border-bottom: 1px solid var(--bs-border-color);
13
- background-color: var(--bs-tertiary-bg);
12
+ border-bottom: 1px solid var(--vz-color-neutral-03);
13
+ background-color: var(--vz-color-neutral-02);
14
14
  }
15
15
 
16
16
  .image-viewer-content {
@@ -35,7 +35,7 @@
35
35
  align-items: center;
36
36
  justify-content: center;
37
37
  height: 100%;
38
- color: var(--bs-text-muted);
39
- font-family: var(--bs-font-monospace);
38
+ color: var(--vz-color-neutral-03);
39
+ font-family: var(--vzcode-font-family);
40
40
  font-size: 14px;
41
41
  }
@@ -7,7 +7,7 @@ import {
7
7
  import { PlaySVG } from '../Icons';
8
8
  import { SplitEditorSVG } from '../Icons/SplitEditorSVG';
9
9
  import { VZCodeContext } from '../VZCodeContext';
10
- import { OverlayTrigger, Tooltip } from '../bootstrap';
10
+ import { OverlayTrigger, Tooltip } from '../ui';
11
11
 
12
12
  import './style.scss';
13
13
 
@@ -88,7 +88,7 @@ export const RunCodeWidget = ({
88
88
  >
89
89
  <i
90
90
  onClick={handleSplitEditor}
91
- className="icon-button icon-button-dark"
91
+ className="vz-icon-button"
92
92
  >
93
93
  <SplitEditorSVG />
94
94
  </i>
@@ -105,7 +105,7 @@ export const RunCodeWidget = ({
105
105
  }
106
106
  >
107
107
  <i
108
- className={`icon-button icon-button-dark ${isRunning ? 'rotate-icon' : ''}`}
108
+ className={`vz-icon-button ${isRunning ? 'rotate-icon' : ''}`}
109
109
  onClick={handleClick}
110
110
  >
111
111
  <PlaySVG />
@@ -2,7 +2,7 @@
2
2
  position: absolute;
3
3
  right: 16px;
4
4
  top: 9px;
5
- color: var(--vh-color-neutral-04);
5
+ color: var(--vz-color-neutral-04);
6
6
  .rotate-icon {
7
7
  animation: spin 1s linear;
8
8
  }
@@ -11,7 +11,7 @@
11
11
  position: absolute;
12
12
  right: 51px;
13
13
  top: 9px;
14
- color: var(--vh-color-neutral-04);
14
+ color: var(--vz-color-neutral-04);
15
15
  }
16
16
 
17
17
  @keyframes spin {
@@ -55,7 +55,7 @@ export const Tab = ({
55
55
 
56
56
  return (
57
57
  <div
58
- className={`tab user-select-none ${
58
+ className={`tab ${
59
59
  isActive ? 'active' : ''
60
60
  } ${isTransient ? 'transient' : ''}`}
61
61
  onClick={handleClick}
@@ -63,7 +63,7 @@ export const Tab = ({
63
63
  >
64
64
  {tabName}
65
65
  <i
66
- className="icon-button icon-button-dark"
66
+ className="vz-icon-button"
67
67
  onClick={handleCloseClick}
68
68
  >
69
69
  <CloseSVG />
@@ -5,6 +5,7 @@
5
5
  overflow-x: auto;
6
6
 
7
7
  .tab {
8
+ user-select: none;
8
9
  // background: #47546b;
9
10
  color: #fff;
10
11
  font-family: var(--vzcode-font-family);
@@ -29,7 +30,7 @@
29
30
 
30
31
  // on hover
31
32
  &:hover {
32
- // background-color: var(--vh-color-hover-dark);
33
+ // background-color: var(--vz-color-hover-dark);
33
34
  background-color: rgba(255, 255, 255, 0.075);
34
35
  }
35
36
  }
@@ -42,10 +43,10 @@
42
43
  font-style: italic;
43
44
  }
44
45
 
45
- .icon-button {
46
- color: var(--vh-color-neutral-03);
46
+ .vz-icon-button {
47
+ color: var(--vz-color-neutral-03);
47
48
  }
48
- .icon-button:hover {
49
- color: var(--vh-color-action-03);
49
+ .vz-icon-button:hover {
50
+ color: var(--vz-color-action-03);
50
51
  }
51
52
  }
@@ -1,5 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
- import { Button, Modal, Form } from './bootstrap';
2
+ import { Button, Modal, Form } from './ui';
3
3
  import { VZCodeContext } from './VZCodeContext';
4
4
 
5
5
  export const VZKeyboardShortcutsDoc = ({
@@ -20,9 +20,9 @@ export const VZKeyboardShortcutsDoc = ({
20
20
  <Modal.Header closeButton>
21
21
  <Modal.Title>Keyboard Shortcuts</Modal.Title>
22
22
  </Modal.Header>
23
- <Modal.Body className="pt-1">
24
- <Form.Group className="mb-3">
25
- <Form.Text className="text-muted">
23
+ <Modal.Body>
24
+ <Form.Group>
25
+ <Form.Text>
26
26
  Keyboard shortcuts and interactive widgets for
27
27
  quick actions
28
28
  </Form.Text>
@@ -5,7 +5,7 @@ import {
5
5
  useRef,
6
6
  useState,
7
7
  } from 'react';
8
- import { Button, Modal, Form } from './bootstrap';
8
+ import { Button, Modal, Form } from './ui';
9
9
  import { ThemeLabel, themes } from './themes';
10
10
  import { VZCodeContext } from './VZCodeContext';
11
11
 
@@ -77,6 +77,7 @@ export const VZSettings = ({
77
77
  setTheme,
78
78
  username,
79
79
  setUsername,
80
+ sidebarRef,
80
81
  } = useContext(VZCodeContext);
81
82
 
82
83
  // State variables for managing font and font size
@@ -143,19 +144,23 @@ export const VZSettings = ({
143
144
 
144
145
  // Update font family in the document's style
145
146
  useEffect(() => {
146
- document.body.style.setProperty(
147
- '--vzcode-font-family',
148
- selectedFont,
149
- );
150
- }, [selectedFont]);
147
+ sidebarRef.current
148
+ ?.closest<HTMLElement>('.app')
149
+ ?.style.setProperty(
150
+ '--vzcode-font-family',
151
+ selectedFont,
152
+ );
153
+ }, [selectedFont, sidebarRef]);
151
154
 
152
155
  // Update font size in the document's style
153
156
  useEffect(() => {
154
- document.body.style.setProperty(
155
- '--vzcode-font-size',
156
- selectedFontSize,
157
- );
158
- }, [selectedFontSize]);
157
+ sidebarRef.current
158
+ ?.closest<HTMLElement>('.app')
159
+ ?.style.setProperty(
160
+ '--vzcode-font-size',
161
+ selectedFontSize,
162
+ );
163
+ }, [selectedFontSize, sidebarRef]);
159
164
 
160
165
  const usernameRef = useRef<HTMLInputElement>(null);
161
166
 
@@ -195,7 +200,7 @@ export const VZSettings = ({
195
200
  </Modal.Header>
196
201
  <Modal.Body>
197
202
  {enableUsernameField ? (
198
- <Form.Group className="mb-3" controlId="formFork">
203
+ <Form.Group controlId="vz-settings-username">
199
204
  <Form.Label>Username</Form.Label>
200
205
  <Form.Control
201
206
  type="text"
@@ -204,17 +209,18 @@ export const VZSettings = ({
204
209
  placeholder="Enter username"
205
210
  value={username}
206
211
  />
207
- <Form.Text className="text-muted">
212
+ <Form.Text>
208
213
  Enter a username to be displayed on your
209
214
  cursor
210
215
  </Form.Text>
211
216
  </Form.Group>
212
217
  ) : null}
213
218
 
214
- <Form.Group className="mb-3" controlId="formFork">
219
+ <Form.Group controlId="vz-settings-theme">
215
220
  <Form.Label>Theme</Form.Label>
216
221
  <select
217
- className="form-select"
222
+ id="vz-settings-theme"
223
+ className="vz-ui-select"
218
224
  value={theme}
219
225
  onChange={(e) =>
220
226
  setTheme(e.target.value as ThemeLabel)
@@ -228,10 +234,11 @@ export const VZSettings = ({
228
234
  </select>
229
235
  </Form.Group>
230
236
 
231
- <Form.Group className="mb-3" controlId="formFork">
237
+ <Form.Group controlId="vz-settings-font">
232
238
  <Form.Label>Font</Form.Label>
233
239
  <select
234
- className="form-select"
240
+ id="vz-settings-font"
241
+ className="vz-ui-select"
235
242
  onChange={(e) =>
236
243
  setSelectedFont(e.target.value)
237
244
  }
@@ -245,10 +252,11 @@ export const VZSettings = ({
245
252
  </select>
246
253
  </Form.Group>
247
254
 
248
- <Form.Group className="mb-3" controlId="formFork">
255
+ <Form.Group controlId="vz-settings-size">
249
256
  <Form.Label>Font Size</Form.Label>
250
257
  <select
251
- className="form-select"
258
+ id="vz-settings-size"
259
+ className="vz-ui-select"
252
260
  onChange={(e) =>
253
261
  setSelectedFontSize(e.target.value)
254
262
  }
@@ -5,7 +5,7 @@ import {
5
5
  useEffect,
6
6
  useContext,
7
7
  } from 'react';
8
- import { Modal, Form, Button } from '../bootstrap';
8
+ import { Modal, Form, Button } from '../ui';
9
9
  import { VZCodeContext } from '../VZCodeContext';
10
10
 
11
11
  export const CreateDirModal = ({
@@ -83,7 +83,7 @@ export const CreateDirModal = ({
83
83
  <Modal.Title>Create Directory</Modal.Title>
84
84
  </Modal.Header>
85
85
  <Modal.Body>
86
- <Form.Group className="mb-3" controlId="fileName">
86
+ <Form.Group controlId="fileName">
87
87
  <Form.Label>Directory Name</Form.Label>
88
88
  <Form.Control
89
89
  type="text"
@@ -92,7 +92,7 @@ export const CreateDirModal = ({
92
92
  ref={inputRef}
93
93
  spellCheck="false"
94
94
  />
95
- <Form.Text className="text-muted">
95
+ <Form.Text>
96
96
  Enter the name for your file
97
97
  </Form.Text>
98
98
  </Form.Group>
@@ -5,7 +5,7 @@ import {
5
5
  useEffect,
6
6
  useContext,
7
7
  } from 'react';
8
- import { Modal, Form, Button } from '../bootstrap';
8
+ import { Modal, Form, Button } from '../ui';
9
9
  import { VZCodeContext } from '../VZCodeContext';
10
10
 
11
11
  export const CreateFileModal = ({
@@ -83,7 +83,7 @@ export const CreateFileModal = ({
83
83
  <Modal.Title>Create File</Modal.Title>
84
84
  </Modal.Header>
85
85
  <Modal.Body>
86
- <Form.Group className="mb-3" controlId="fileName">
86
+ <Form.Group controlId="fileName">
87
87
  <Form.Label>File Name</Form.Label>
88
88
  <Form.Control
89
89
  type="text"
@@ -92,7 +92,7 @@ export const CreateFileModal = ({
92
92
  ref={inputRef}
93
93
  spellCheck="false"
94
94
  />
95
- <Form.Text className="text-muted">
95
+ <Form.Text>
96
96
  Enter the name for your file
97
97
  </Form.Text>
98
98
  </Form.Group>
@@ -1,8 +1,8 @@
1
- import { Button, Modal } from '../bootstrap';
1
+ import { Button, Modal } from '../ui';
2
2
  import { useCallback, useEffect } from 'react';
3
3
 
4
4
  // Confirmation modal for deleting a file or directory.
5
- // Inspired by https://react-bootstrap.netlify.app/docs/components/modal/#live-demo
5
+ // Built on VZCode's native dialog-based modal primitives.
6
6
 
7
7
  export const DeleteConfirmationModal = ({
8
8
  show,