vzcode 3.1.0 → 3.3.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 (74) hide show
  1. package/README.md +185 -40
  2. package/dist/assets/App-C9mRI7eH.js +387 -0
  3. package/dist/assets/App-CxiKy3Rs.css +1 -0
  4. package/dist/assets/bindings_wasm_bg-IWNG_AjZ.wasm +0 -0
  5. package/dist/assets/buildWorker-N5tFTOqM.js +794 -0
  6. package/dist/assets/index-COLyIkCc.js +43 -0
  7. package/dist/assets/index-CZT-v4sH.css +1 -0
  8. package/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  9. package/dist/assets/worker-BpV7Ustv.js +223 -0
  10. package/dist/assets/worker-CLeezw6h.js +458 -0
  11. package/dist/assets/worker-DaSIYBQX.js +327 -0
  12. package/dist/cli.js +170 -99
  13. package/dist/index.html +3 -2
  14. package/dist/server/accessControl.js +104 -0
  15. package/dist/server/computeInitialDocument.js +4 -1
  16. package/dist/server/createServer.js +356 -104
  17. package/dist/server/index.js +4 -3
  18. package/dist/server/workspaceSecurity.js +115 -0
  19. package/dist/server/workspaceSync.js +141 -0
  20. package/package.json +74 -72
  21. package/src/cli.ts +203 -182
  22. package/src/client/App/index.tsx +2 -0
  23. package/src/client/App/usePending.ts +3 -1
  24. package/src/client/CodeEditor/style.scss +18 -11
  25. package/src/client/RunCodeWidget/index.tsx +1 -0
  26. package/src/client/TabList/Tab.tsx +13 -5
  27. package/src/client/TabList/style.scss +32 -5
  28. package/src/client/VZCodeContext/types.ts +6 -0
  29. package/src/client/VZCodeContext/useVZCodeState.ts +2 -0
  30. package/src/client/VZResizer/styles.scss +1 -1
  31. package/src/client/VZSidebar/AIChatWrapper.tsx +2 -0
  32. package/src/client/VZSidebar/DeleteConfirmationModal.tsx +1 -1
  33. package/src/client/VZSidebar/Item.tsx +8 -4
  34. package/src/client/VZSidebar/VisualEditor/CheckboxWidget.tsx +22 -30
  35. package/src/client/VZSidebar/VisualEditor/ColorWidget.tsx +198 -126
  36. package/src/client/VZSidebar/VisualEditor/DropdownWidget.tsx +25 -67
  37. package/src/client/VZSidebar/VisualEditor/PropertySection.tsx +41 -0
  38. package/src/client/VZSidebar/VisualEditor/SegmentedWidget.tsx +34 -0
  39. package/src/client/VZSidebar/VisualEditor/SliderWidget.tsx +60 -12
  40. package/src/client/VZSidebar/VisualEditor/VisualEditor.tsx +31 -393
  41. package/src/client/VZSidebar/VisualEditor/VisualEditorControls.tsx +478 -0
  42. package/src/client/VZSidebar/VisualEditor/colorUtils.ts +12 -0
  43. package/src/client/VZSidebar/VisualEditor/status.ts +47 -0
  44. package/src/client/VZSidebar/VisualEditor/updateConfig.ts +51 -24
  45. package/src/client/VZSidebar/VisualEditor/utils.ts +1 -1
  46. package/src/client/VZSidebar/index.tsx +55 -23
  47. package/src/client/VZSidebar/styles.scss +426 -6
  48. package/src/client/WorkspaceConflictBanner.tsx +120 -0
  49. package/src/client/index.ts +2 -0
  50. package/src/client/main.jsx +54 -12
  51. package/src/client/ui.scss +156 -4
  52. package/src/client/ui.tsx +1 -1
  53. package/src/llm-streaming-server/README.md +4 -16
  54. package/src/llm-streaming-ui/README.md +41 -2
  55. package/src/llm-streaming-ui/components/ChatInput.tsx +65 -13
  56. package/src/llm-streaming-ui/components/index.tsx +2 -0
  57. package/src/llm-streaming-ui/components/styles.scss +46 -0
  58. package/src/llm-streaming-ui/hooks/useAutoScroll.ts +1 -1
  59. package/src/llm-streaming-ui/index.ts +1 -0
  60. package/src/llm-streaming-ui/props.ts +26 -2
  61. package/src/server/accessControl.ts +151 -0
  62. package/src/server/computeInitialDocument.ts +6 -2
  63. package/src/server/createServer.ts +487 -138
  64. package/src/server/index.ts +4 -5
  65. package/src/server/workspaceSecurity.ts +160 -0
  66. package/src/server/workspaceSync.ts +203 -0
  67. package/src/types.ts +29 -27
  68. package/dist/assets/bindings_wasm_bg-9w8E-TmY.wasm +0 -0
  69. package/dist/assets/buildWorker-BZlya278.js +0 -687
  70. package/dist/assets/index-5qf102c2.css +0 -1
  71. package/dist/assets/index-dSJDl5x9.js +0 -356
  72. package/dist/assets/worker-1oQYaz-F.js +0 -342
  73. package/dist/assets/worker-BfgPD8zR.js +0 -125
  74. package/dist/assets/worker-CoJaqtpi.js +0 -436
@@ -354,8 +354,11 @@ export const VZSidebar = ({
354
354
  </Tooltip>
355
355
  }
356
356
  >
357
- <i
357
+ <button
358
+ type="button"
358
359
  id="ai-chat-icon"
360
+ aria-label="AI chat"
361
+ aria-pressed={isAIChatOpen}
359
362
  className="vz-icon-button"
360
363
  onClick={() =>
361
364
  handleAIChatButtonClick({
@@ -370,7 +373,7 @@ export const VZSidebar = ({
370
373
  }
371
374
  >
372
375
  <SparklesSVG />
373
- </i>
376
+ </button>
374
377
  </OverlayTrigger>
375
378
  )}
376
379
 
@@ -382,8 +385,15 @@ export const VZSidebar = ({
382
385
  </Tooltip>
383
386
  }
384
387
  >
385
- <i
388
+ <button
389
+ type="button"
386
390
  id="files-icon"
391
+ aria-label="Files"
392
+ aria-pressed={
393
+ !isAIChatOpen &&
394
+ !isSearchOpen &&
395
+ !isVisualEditorOpen
396
+ }
387
397
  className="vz-icon-button"
388
398
  onClick={() => {
389
399
  setIsSearchOpen(false);
@@ -393,7 +403,7 @@ export const VZSidebar = ({
393
403
  }}
394
404
  >
395
405
  <FolderSVG />
396
- </i>
406
+ </button>
397
407
  </OverlayTrigger>
398
408
 
399
409
  <OverlayTrigger
@@ -404,8 +414,11 @@ export const VZSidebar = ({
404
414
  </Tooltip>
405
415
  }
406
416
  >
407
- <i
417
+ <button
418
+ type="button"
408
419
  id="search-icon"
420
+ aria-label="Search"
421
+ aria-pressed={isSearchOpen}
409
422
  className="vz-icon-button"
410
423
  onClick={() => {
411
424
  setIsSearchOpen(true);
@@ -415,7 +428,7 @@ export const VZSidebar = ({
415
428
  }}
416
429
  >
417
430
  <SearchSVG />
418
- </i>
431
+ </button>
419
432
  </OverlayTrigger>
420
433
 
421
434
  <OverlayTrigger
@@ -426,8 +439,11 @@ export const VZSidebar = ({
426
439
  </Tooltip>
427
440
  }
428
441
  >
429
- <i
442
+ <button
443
+ type="button"
430
444
  id="visual-editor-icon"
445
+ aria-label="Visual editor"
446
+ aria-pressed={isVisualEditorOpen}
431
447
  className="vz-icon-button"
432
448
  onClick={() => {
433
449
  setIsVisualEditorOpen(true);
@@ -437,7 +453,7 @@ export const VZSidebar = ({
437
453
  }}
438
454
  >
439
455
  <AdjustmentSVG />
440
- </i>
456
+ </button>
441
457
  </OverlayTrigger>
442
458
 
443
459
  <OverlayTrigger
@@ -448,13 +464,15 @@ export const VZSidebar = ({
448
464
  </Tooltip>
449
465
  }
450
466
  >
451
- <i
467
+ <button
468
+ type="button"
452
469
  id="shortcut-icon"
470
+ aria-label="Keyboard shortcuts"
453
471
  className="vz-icon-button"
454
472
  onClick={handleQuestionMarkClick}
455
473
  >
456
474
  <QuestionMarkSVG />
457
- </i>
475
+ </button>
458
476
  </OverlayTrigger>
459
477
 
460
478
  <OverlayTrigger
@@ -467,12 +485,16 @@ export const VZSidebar = ({
467
485
  >
468
486
  <a
469
487
  href="https://github.com/vizhub-core/vzcode/issues/new"
488
+ aria-label="Report a bug"
470
489
  target="_blank"
471
490
  rel="noopener noreferrer"
472
491
  >
473
- <i id="bug-icon" className="vz-icon-button">
492
+ <span
493
+ id="bug-icon"
494
+ className="vz-icon-button"
495
+ >
474
496
  <BugSVG />
475
- </i>
497
+ </span>
476
498
  </a>
477
499
  </OverlayTrigger>
478
500
 
@@ -484,13 +506,15 @@ export const VZSidebar = ({
484
506
  </Tooltip>
485
507
  }
486
508
  >
487
- <i
509
+ <button
510
+ type="button"
488
511
  id="settings-icon"
512
+ aria-label="Editor settings"
489
513
  className="vz-icon-button"
490
514
  onClick={handleSettingsClick}
491
515
  >
492
516
  <GearSVG />
493
- </i>
517
+ </button>
494
518
  </OverlayTrigger>
495
519
 
496
520
  <OverlayTrigger
@@ -501,13 +525,15 @@ export const VZSidebar = ({
501
525
  </Tooltip>
502
526
  }
503
527
  >
504
- <i
528
+ <button
529
+ type="button"
505
530
  id="new-file-icon"
531
+ aria-label="Create file"
506
532
  className="vz-icon-button"
507
533
  onClick={handleOpenCreateFileModal}
508
534
  >
509
535
  <NewSVG />
510
- </i>
536
+ </button>
511
537
  </OverlayTrigger>
512
538
 
513
539
  {/*Directory Rename*/}
@@ -519,13 +545,15 @@ export const VZSidebar = ({
519
545
  </Tooltip>
520
546
  }
521
547
  >
522
- <i
548
+ <button
549
+ type="button"
523
550
  id="new-directory-icon"
551
+ aria-label="Create directory"
524
552
  className="vz-icon-button"
525
553
  onClick={handleOpenCreateDirModal}
526
554
  >
527
555
  <FileSVG />
528
- </i>
556
+ </button>
529
557
  </OverlayTrigger>
530
558
 
531
559
  {/*Toggle Follow*/}
@@ -539,8 +567,11 @@ export const VZSidebar = ({
539
567
  </Tooltip>
540
568
  }
541
569
  >
542
- <i
570
+ <button
571
+ type="button"
543
572
  id="auto-focus-icon"
573
+ aria-label="Follow collaborator cursor"
574
+ aria-pressed={enableAutoFollow}
544
575
  className={`vz-icon-button${
545
576
  enableAutoFollow
546
577
  ? ' vz-color-success-01'
@@ -548,9 +579,8 @@ export const VZSidebar = ({
548
579
  }`}
549
580
  onClick={toggleAutoFollow}
550
581
  >
551
- <i></i>
552
582
  <PinSVG />
553
- </i>
583
+ </button>
554
584
  </OverlayTrigger>
555
585
  {/* Start Voice Chat */}
556
586
  {enableLiveKit && (
@@ -562,15 +592,17 @@ export const VZSidebar = ({
562
592
  </Tooltip>
563
593
  }
564
594
  >
565
- <i
595
+ <button
596
+ type="button"
566
597
  id="mic-icon"
598
+ aria-label="Voice chat"
567
599
  className="vz-icon-button"
568
600
  onClick={() => {
569
601
  setVoiceChatModalOpen(true);
570
602
  }}
571
603
  >
572
604
  <MicSVG />
573
- </i>
605
+ </button>
574
606
  </OverlayTrigger>
575
607
  )}
576
608
  </div>
@@ -183,12 +183,12 @@
183
183
  .file-or-directory:hover,
184
184
  .settings:hover {
185
185
  // background-color: #47546b;
186
- background-color: rgba(255, 255, 255, 0.075);
186
+ background-color: var(--vz-color-hover-dark);
187
187
  }
188
188
 
189
189
  .active-file,
190
190
  .active-file:hover {
191
- background-color: #264399;
191
+ background-color: rgba(3, 102, 214, 0.36);
192
192
  }
193
193
 
194
194
  .name {
@@ -361,7 +361,7 @@
361
361
 
362
362
  &:focus-visible {
363
363
  outline: 2px solid
364
- var(--vz-color-action-01, #3866e9);
364
+ var(--vz-color-action-01, #0366d6);
365
365
  outline-offset: 2px;
366
366
  }
367
367
 
@@ -376,9 +376,9 @@
376
376
  color: var(--vz-color-neutral-04, #bdc7dc);
377
377
 
378
378
  &:hover {
379
- background: rgba(235, 28, 105, 0.12);
380
- border-color: var(--vz-color-warning-01, #eb1c69);
381
- color: var(--vz-color-warning-02, #ffeff2);
379
+ background: rgba(240, 53, 61, 0.13);
380
+ border-color: var(--vz-color-danger-03, #f0353d);
381
+ color: #ffd7da;
382
382
  }
383
383
  }
384
384
  }
@@ -1212,4 +1212,424 @@
1212
1212
  font-weight: 400;
1213
1213
  }
1214
1214
  }
1215
+
1216
+ // Shared Visual Properties panel. All widgets inherit a single, theme-aware
1217
+ // layout rather than drawing separate cards with hard-coded neon accents.
1218
+ .visual-editor {
1219
+ padding: 0;
1220
+ gap: 0;
1221
+ min-width: 0;
1222
+ font-family: var(--vzcode-font-family);
1223
+ color: var(--vz-color-neutral-04);
1224
+ }
1225
+
1226
+ .visual-properties-header {
1227
+ padding: 16px 16px 12px;
1228
+ border-bottom: 1px solid var(--vz-color-neutral-02);
1229
+ }
1230
+
1231
+ .visual-properties-title {
1232
+ font-size: 14px;
1233
+ font-weight: 650;
1234
+ line-height: 1.4;
1235
+ letter-spacing: -0.01em;
1236
+ }
1237
+
1238
+ .visual-properties-hint {
1239
+ margin: 4px 0 0;
1240
+ font-size: 11px;
1241
+ line-height: 1.45;
1242
+ opacity: 0.7;
1243
+ }
1244
+
1245
+ .visual-properties-section {
1246
+ min-width: 0;
1247
+ border-bottom: 1px solid var(--vz-color-neutral-02);
1248
+ }
1249
+
1250
+ .visual-properties-section-toggle {
1251
+ display: flex;
1252
+ width: 100%;
1253
+ align-items: center;
1254
+ justify-content: space-between;
1255
+ padding: 13px 16px;
1256
+ border: 0;
1257
+ background: transparent;
1258
+ color: inherit;
1259
+ font: 600 12px var(--vzcode-font-family);
1260
+ letter-spacing: 0.015em;
1261
+ cursor: pointer;
1262
+ text-align: left;
1263
+
1264
+ &:hover {
1265
+ background: var(--vz-color-neutral-02);
1266
+ }
1267
+ &:focus-visible {
1268
+ outline: 2px solid currentColor;
1269
+ outline-offset: -2px;
1270
+ }
1271
+ }
1272
+
1273
+ .visual-properties-chevron {
1274
+ display: inline-block;
1275
+ opacity: 0.65;
1276
+ transition: transform 160ms ease;
1277
+
1278
+ &.collapsed {
1279
+ transform: rotate(-90deg);
1280
+ }
1281
+ }
1282
+
1283
+ .visual-properties-section-body {
1284
+ display: flex;
1285
+ flex-direction: column;
1286
+ gap: 14px;
1287
+ padding: 2px 16px 18px;
1288
+ min-width: 0;
1289
+ }
1290
+
1291
+ .visual-editor {
1292
+ .visual-editor-slider,
1293
+ .visual-editor-checkbox,
1294
+ .visual-editor-dropdown,
1295
+ .visual-editor-text-input,
1296
+ .visual-editor-color {
1297
+ background: transparent;
1298
+ border: 0;
1299
+ border-radius: 0;
1300
+ box-shadow: none;
1301
+ padding: 0;
1302
+ gap: 7px;
1303
+ transition: none;
1304
+
1305
+ &:hover {
1306
+ background: transparent;
1307
+ border-color: transparent;
1308
+ }
1309
+ }
1310
+
1311
+ .slider-header,
1312
+ .checkbox-header,
1313
+ .dropdown-header,
1314
+ .text-input-header,
1315
+ .color-header {
1316
+ margin: 0;
1317
+ }
1318
+
1319
+ .slider-label,
1320
+ .checkbox-label,
1321
+ .dropdown-label,
1322
+ .text-input-label,
1323
+ .color-label {
1324
+ font: 500 12px var(--vzcode-font-family);
1325
+ color: var(--vz-color-neutral-04);
1326
+ }
1327
+
1328
+ .slider-value,
1329
+ .checkbox-value,
1330
+ .color-value {
1331
+ background: var(--vz-color-neutral-02);
1332
+ color: var(--vz-color-neutral-04);
1333
+ font: 500 12px var(--vzcode-font-family);
1334
+ border-radius: 5px;
1335
+ }
1336
+
1337
+ .slider-track-fill {
1338
+ background: var(--vz-color-neutral-04);
1339
+ opacity: 0.55;
1340
+ }
1341
+ .slider-input {
1342
+ &::-webkit-slider-thumb {
1343
+ background: var(--vz-color-neutral-04);
1344
+ border-color: var(--vz-color-neutral-01);
1345
+ box-shadow: 0 0 0 1px var(--vz-color-neutral-03);
1346
+ }
1347
+ &::-moz-range-thumb {
1348
+ background: var(--vz-color-neutral-04);
1349
+ border-color: var(--vz-color-neutral-01);
1350
+ box-shadow: 0 0 0 1px var(--vz-color-neutral-03);
1351
+ }
1352
+ &:focus-visible {
1353
+ outline: 2px solid currentColor;
1354
+ outline-offset: 3px;
1355
+ }
1356
+ }
1357
+ .dropdown-button:focus-visible,
1358
+ .text-input-field:focus-visible {
1359
+ border-color: var(--vz-color-neutral-04);
1360
+ box-shadow: 0 0 0 2px var(--vz-color-neutral-03);
1361
+ }
1362
+ .dropdown-option.selected {
1363
+ background: var(--vz-color-neutral-04);
1364
+ color: var(--vz-color-neutral-01);
1365
+ }
1366
+ .checkbox-indicator.checked {
1367
+ background: var(--vz-color-neutral-04);
1368
+ box-shadow: none;
1369
+ }
1370
+ .checkbox-input:checked + .checkbox-visual {
1371
+ border-color: var(--vz-color-neutral-04);
1372
+ background: var(--vz-color-neutral-02);
1373
+ }
1374
+ }
1375
+
1376
+ // Compact, accessible color picker with optional advanced HCL controls.
1377
+ .visual-editor .visual-editor-color {
1378
+ position: relative;
1379
+ }
1380
+ .color-picker-trigger {
1381
+ display: inline-flex;
1382
+ align-items: center;
1383
+ gap: 8px;
1384
+ max-width: 100%;
1385
+ padding: 3px 7px 3px 3px;
1386
+ border: 1px solid var(--vz-color-neutral-03);
1387
+ border-radius: 6px;
1388
+ background: var(--vz-color-neutral-02);
1389
+ color: var(--vz-color-neutral-04);
1390
+ font: 500 11px var(--vzcode-font-family);
1391
+ cursor: pointer;
1392
+ &:focus-visible {
1393
+ outline: 2px solid currentColor;
1394
+ outline-offset: 2px;
1395
+ }
1396
+ }
1397
+ .color-picker-swatch {
1398
+ width: 26px;
1399
+ height: 26px;
1400
+ flex: none;
1401
+ border-radius: 4px;
1402
+ border: 1px solid var(--vz-color-neutral-03);
1403
+ }
1404
+ .color-picker-hex {
1405
+ font-family: ui-monospace, SFMono-Regular, monospace;
1406
+ }
1407
+ .color-picker-popover {
1408
+ display: flex;
1409
+ flex-direction: column;
1410
+ gap: 12px;
1411
+ margin-top: 4px;
1412
+ padding: 12px;
1413
+ border: 1px solid var(--vz-color-neutral-03);
1414
+ border-radius: 9px;
1415
+ background: var(--vz-color-neutral-01);
1416
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
1417
+ min-width: 0;
1418
+ }
1419
+ .color-picker-field {
1420
+ display: flex;
1421
+ flex-direction: column;
1422
+ gap: 5px;
1423
+ font-size: 11px;
1424
+ }
1425
+ .color-picker-native {
1426
+ width: 100%;
1427
+ height: 42px;
1428
+ padding: 2px;
1429
+ cursor: pointer;
1430
+ border: 1px solid var(--vz-color-neutral-03);
1431
+ border-radius: 6px;
1432
+ background: transparent;
1433
+ }
1434
+ .color-picker-hex-input {
1435
+ width: 100%;
1436
+ min-width: 0;
1437
+ box-sizing: border-box;
1438
+ padding: 8px;
1439
+ border-radius: 6px;
1440
+ border: 1px solid var(--vz-color-neutral-03);
1441
+ background: var(--vz-color-neutral-02);
1442
+ color: var(--vz-color-neutral-04);
1443
+ font:
1444
+ 12px ui-monospace,
1445
+ SFMono-Regular,
1446
+ monospace;
1447
+ &:focus-visible {
1448
+ outline: 2px solid currentColor;
1449
+ outline-offset: 1px;
1450
+ }
1451
+ }
1452
+ .color-picker-preset-label {
1453
+ font-size: 11px;
1454
+ font-weight: 600;
1455
+ }
1456
+ .color-picker-presets {
1457
+ display: grid;
1458
+ grid-template-columns: repeat(8, minmax(0, 1fr));
1459
+ gap: 5px;
1460
+ }
1461
+ .color-picker-preset {
1462
+ aspect-ratio: 1;
1463
+ min-width: 0;
1464
+ padding: 0;
1465
+ border: 1px solid var(--vz-color-neutral-03);
1466
+ border-radius: 5px;
1467
+ cursor: pointer;
1468
+ &:hover,
1469
+ &:focus-visible {
1470
+ outline: 2px solid var(--vz-color-neutral-04);
1471
+ outline-offset: 1px;
1472
+ }
1473
+ &[aria-pressed='true'] {
1474
+ outline: 2px solid var(--vz-color-neutral-04);
1475
+ outline-offset: 2px;
1476
+ }
1477
+ }
1478
+ .color-picker-advanced-toggle {
1479
+ align-self: flex-start;
1480
+ padding: 0;
1481
+ border: 0;
1482
+ background: none;
1483
+ color: var(--vz-color-neutral-04);
1484
+ text-align: left;
1485
+ font: 500 11px var(--vzcode-font-family);
1486
+ cursor: pointer;
1487
+ &:focus-visible {
1488
+ outline: 2px solid currentColor;
1489
+ outline-offset: 2px;
1490
+ }
1491
+ }
1492
+
1493
+ .visual-editor .slider-header {
1494
+ gap: 8px;
1495
+ }
1496
+ .visual-editor .slider-number-input {
1497
+ width: 70px;
1498
+ min-width: 0;
1499
+ padding: 5px 6px;
1500
+ box-sizing: border-box;
1501
+ text-align: right;
1502
+ font: 500 12px var(--vzcode-font-family);
1503
+ color: var(--vz-color-neutral-04);
1504
+ background: var(--vz-color-neutral-02);
1505
+ border: 1px solid var(--vz-color-neutral-03);
1506
+ border-radius: 5px;
1507
+ &:focus-visible {
1508
+ outline: 2px solid currentColor;
1509
+ outline-offset: 1px;
1510
+ }
1511
+ }
1512
+ .visual-editor .visual-editor-checkbox {
1513
+ display: flex;
1514
+ flex-direction: row;
1515
+ align-items: center;
1516
+ justify-content: space-between;
1517
+ min-height: 28px;
1518
+ }
1519
+ .visual-editor .checkbox-container {
1520
+ width: 42px;
1521
+ height: 22px;
1522
+ flex: none;
1523
+ }
1524
+ .visual-editor .checkbox-input {
1525
+ height: 22px;
1526
+ }
1527
+ .visual-editor .visual-properties-select {
1528
+ width: 100%;
1529
+ min-width: 0;
1530
+ box-sizing: border-box;
1531
+ padding: 9px 10px;
1532
+ color: var(--vz-color-neutral-04);
1533
+ background: var(--vz-color-neutral-02);
1534
+ border: 1px solid var(--vz-color-neutral-03);
1535
+ border-radius: 6px;
1536
+ font: 500 12px var(--vzcode-font-family);
1537
+ &:focus-visible {
1538
+ outline: 2px solid currentColor;
1539
+ outline-offset: 2px;
1540
+ }
1541
+ }
1542
+ .visual-editor-segmented {
1543
+ display: flex;
1544
+ flex-direction: column;
1545
+ gap: 8px;
1546
+ min-width: 0;
1547
+ }
1548
+ .segmented-label {
1549
+ font: 500 12px var(--vzcode-font-family);
1550
+ }
1551
+ .segmented-options {
1552
+ display: flex;
1553
+ min-width: 0;
1554
+ padding: 3px;
1555
+ gap: 2px;
1556
+ border: 1px solid var(--vz-color-neutral-03);
1557
+ border-radius: 7px;
1558
+ background: var(--vz-color-neutral-02);
1559
+ }
1560
+ .segmented-option {
1561
+ flex: 1;
1562
+ min-width: 0;
1563
+ padding: 7px 5px;
1564
+ border: 0;
1565
+ border-radius: 5px;
1566
+ font: 500 11px var(--vzcode-font-family);
1567
+ color: var(--vz-color-neutral-04);
1568
+ background: transparent;
1569
+ cursor: pointer;
1570
+ white-space: nowrap;
1571
+ overflow: hidden;
1572
+ text-overflow: ellipsis;
1573
+ &[aria-pressed='true'] {
1574
+ background: var(--vz-color-neutral-01);
1575
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
1576
+ font-weight: 650;
1577
+ }
1578
+ &:focus-visible {
1579
+ outline: 2px solid currentColor;
1580
+ outline-offset: -2px;
1581
+ }
1582
+ }
1583
+
1584
+ .visual-properties-section-body[hidden] {
1585
+ display: none;
1586
+ }
1587
+ .visual-properties-field {
1588
+ display: flex;
1589
+ flex-direction: column;
1590
+ gap: 5px;
1591
+ min-width: 0;
1592
+ }
1593
+ .visual-properties-field-footer {
1594
+ display: flex;
1595
+ align-items: flex-start;
1596
+ justify-content: space-between;
1597
+ gap: 8px;
1598
+ min-width: 0;
1599
+ }
1600
+ .visual-properties-description {
1601
+ flex: 1;
1602
+ color: var(--vz-color-neutral-04);
1603
+ opacity: 0.7;
1604
+ font: 400 11px/1.45 var(--vzcode-font-family);
1605
+ }
1606
+ .visual-properties-reset {
1607
+ flex: none;
1608
+ border: none;
1609
+ padding: 0;
1610
+ background: transparent;
1611
+ font: 500 11px var(--vzcode-font-family);
1612
+ color: var(--vz-color-neutral-04);
1613
+ text-decoration: underline;
1614
+ text-underline-offset: 2px;
1615
+ cursor: pointer;
1616
+ &:disabled {
1617
+ opacity: 0.35;
1618
+ cursor: default;
1619
+ text-decoration: none;
1620
+ }
1621
+ &:focus-visible {
1622
+ outline: 2px solid currentColor;
1623
+ outline-offset: 3px;
1624
+ }
1625
+ }
1626
+ .slider-number-wrapper {
1627
+ display: flex;
1628
+ gap: 4px;
1629
+ align-items: center;
1630
+ }
1631
+ .slider-number-unit {
1632
+ font-size: 11px;
1633
+ opacity: 0.7;
1634
+ }
1215
1635
  }