@vivix-labs/media-tools 1.0.0-beta.3 → 1.0.0-beta.9

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.
package/dist/client.css CHANGED
@@ -1,4 +1,81 @@
1
+ /* packages/ui-system/dist/script-cover.css */
2
+ @font-face {
3
+ font-family: "Vivix Inria Serif";
4
+ src: url("./assets/inria-serif-latin-700-italic-UNRIXGAH.woff2") format("woff2");
5
+ font-style: italic;
6
+ font-weight: 700;
7
+ font-display: swap;
8
+ }
9
+ @font-face {
10
+ font-family: "Vivix Inria Serif";
11
+ src: url("./assets/inria-serif-latin-400-italic-ZCFRMMVP.woff2") format("woff2");
12
+ font-style: italic;
13
+ font-weight: 400;
14
+ font-display: swap;
15
+ }
16
+ .vx-script-cover {
17
+ display: block;
18
+ position: relative;
19
+ width: 100%;
20
+ aspect-ratio: 16 / 9;
21
+ container-type: inline-size;
22
+ background: #eff3f1;
23
+ border-radius: 8px;
24
+ overflow: hidden;
25
+ text-align: left;
26
+ pointer-events: none;
27
+ }
28
+ .vx-script-cover > .vx-script-sheet {
29
+ display: block;
30
+ position: absolute;
31
+ left: 8.37%;
32
+ right: 8.2%;
33
+ top: 10.5%;
34
+ bottom: -55%;
35
+ padding: 4.55cqw 4.7cqw;
36
+ box-sizing: border-box;
37
+ border-radius: 2.28cqw 2.28cqw 0 0;
38
+ background: white;
39
+ color: rgb(0 0 0 / 50%);
40
+ white-space: normal;
41
+ overflow: hidden;
42
+ font:
43
+ italic 400 4.44cqw/1.5 "Vivix Inria Serif",
44
+ Georgia,
45
+ serif;
46
+ overflow-wrap: anywhere;
47
+ }
48
+ .vx-script-sheet > strong {
49
+ display: block;
50
+ margin-bottom: 1.9cqw;
51
+ font:
52
+ italic 700 5.91cqw/1.5 "Vivix Inria Serif",
53
+ Georgia,
54
+ serif;
55
+ }
56
+ .vx-script-cover::after {
57
+ content: "";
58
+ position: absolute;
59
+ inset: 68.5% 0 0;
60
+ background: linear-gradient(transparent, #eff3f1);
61
+ }
62
+ :is(.vx-media, .vx-tile-preview, .sd-list-cover, .ad-list-cover, .ad-asset-cover) > .vx-script-cover {
63
+ border-radius: inherit;
64
+ }
65
+ .vx-media > .vx-script-cover {
66
+ position: absolute;
67
+ inset: 0;
68
+ height: 100%;
69
+ }
70
+
1
71
  /* packages/ui-system/dist/tokens.css */
72
+ :root,
73
+ [data-vx-theme] {
74
+ --vx-warm-neutral-06: #ddd8d3;
75
+ --vx-dark-neutral-06: #51483f;
76
+ --vx-warm-neutral-07: #ada5a0;
77
+ --vx-dark-neutral-07: #9d8f82;
78
+ }
2
79
  [data-vx-theme] {
3
80
  --vx-font-inter:
4
81
  "Vivix Studio Inter",
@@ -54,6 +131,7 @@
54
131
  --vx-tabs-secondary-height: 44px;
55
132
  --vx-segment-medium-height: 32px;
56
133
  --vx-segment-large-height: 36px;
134
+ --vx-cover-background: var(--vx-black-black);
57
135
  --vx-media-selection-color: var(--vx-green-dark);
58
136
  --vx-tag-height: 16px;
59
137
  --vx-dialog-small-width: 480px;
@@ -72,8 +150,6 @@
72
150
  --vx-warm-neutral-03: #f1eeea;
73
151
  --vx-warm-neutral-04: #ede8e0;
74
152
  --vx-warm-neutral-05: #e9e6e0;
75
- --vx-warm-neutral-06: #ddd8d3;
76
- --vx-warm-neutral-07: #ada5a0;
77
153
  --vx-warm-neutral-08: #938c88;
78
154
  --vx-warm-neutral-09: #736e67;
79
155
  --vx-black-black: #000000;
@@ -91,8 +167,6 @@
91
167
  --vx-dark-neutral-03: #282420;
92
168
  --vx-dark-neutral-04: #322d28;
93
169
  --vx-dark-neutral-05: #3c352f;
94
- --vx-dark-neutral-06: #51483f;
95
- --vx-dark-neutral-07: #9d8f82;
96
170
  --vx-dark-neutral-08: #b6aaa0;
97
171
  --vx-dark-neutral-09: #f0e9e3;
98
172
  --vx-white-white: #ffffff;
@@ -162,6 +236,7 @@
162
236
  --vx-button-48-line-height: 21px;
163
237
  --vx-typography-inter-14-medium: normal 500 14px/18px var(--vx-font-inter);
164
238
  --vx-typography-inter-14-medium-tracking: 0px;
239
+ --vx-typography-inter-10-regular: normal 400 10px/13px var(--vx-font-inter);
165
240
  --vx-typography-inter-10-semi-bold: normal 600 10px/13px var(--vx-font-inter);
166
241
  --vx-typography-inter-12-regular: normal 400 12px/16px var(--vx-font-inter);
167
242
  --vx-typography-inter-12-semi-bold: normal 600 12px/16px var(--vx-font-inter);
@@ -174,7 +249,7 @@
174
249
  --vx-typography-inter-16-medium: normal 500 16px/21px var(--vx-font-inter);
175
250
  --vx-typography-inter-16-medium-tracking: 0px;
176
251
  --vx-typography-inter-18-regular: normal 400 18px/23px var(--vx-font-inter);
177
- --vx-typography-inter-18-bold: normal 700 18px/23px var(--vx-font-inter);
252
+ --vx-typography-inter-18-bold: normal 600 18px/23px var(--vx-font-inter);
178
253
  --vx-typography-inter-18-semi-bold: normal 600 18px/23px var(--vx-font-inter);
179
254
  --vx-typography-inter-18-medium: normal 500 18px/23px var(--vx-font-inter);
180
255
  --vx-typography-inter-18-medium-tracking: 0px;
@@ -301,7 +376,8 @@
301
376
  --vx-button-font-size: var(--vx-button-40-font-size);
302
377
  --vx-button-line-height: var(--vx-button-40-line-height);
303
378
  }
304
- .vx-button[data-size="44"] {
379
+ .vx-button[data-size="44"],
380
+ .vx-dialog > footer .vx-button[data-shape=text] {
305
381
  --vx-button-height: var(--vx-button-44-height);
306
382
  --vx-button-icon-size: var(--vx-button-44-icon-size);
307
383
  --vx-button-radius: var(--vx-button-44-radius);
@@ -321,6 +397,33 @@
321
397
  }
322
398
  }
323
399
 
400
+ /* packages/ui-system/dist/scrollbars.css */
401
+ :root:has([data-vx-theme]) {
402
+ --vx-scrollbar-root-thumb: var(--vx-warm-neutral-06);
403
+ scrollbar-gutter: stable;
404
+ }
405
+ :root:has(#app > [data-vx-theme=dark]) {
406
+ --vx-scrollbar-root-thumb: var(--vx-dark-neutral-06);
407
+ }
408
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar {
409
+ width: 4px;
410
+ height: 4px;
411
+ background: transparent;
412
+ }
413
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar-thumb {
414
+ background: var(--vx-border-primary, var(--vx-scrollbar-root-thumb));
415
+ border-radius: 999px;
416
+ }
417
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar-corner {
418
+ background: transparent;
419
+ }
420
+ @supports not selector(::-webkit-scrollbar) {
421
+ :where(:root:has([data-vx-theme]), [data-vx-theme], [data-vx-theme] *) {
422
+ scrollbar-width: thin;
423
+ scrollbar-color: var(--vx-border-primary, var(--vx-scrollbar-root-thumb)) transparent;
424
+ }
425
+ }
426
+
324
427
  /* packages/ui-system/dist/button.css */
325
428
  @scope ([data-vx-theme]) {
326
429
  .vx-button {
@@ -359,6 +462,10 @@
359
462
  overflow: hidden;
360
463
  text-overflow: ellipsis;
361
464
  }
465
+ .vx-button-content:has(> .vx-icon:is([data-icon=trim], [data-icon=crop])) {
466
+ --vx-button-icon-size: var(--vx-space-16);
467
+ gap: var(--vx-space-4);
468
+ }
362
469
  .vx-button-trailing {
363
470
  margin-left: calc(var(--vx-button-trailing-gap) - var(--vx-button-gap));
364
471
  }
@@ -375,6 +482,11 @@
375
482
  .vx-button[data-appearance=tonal] {
376
483
  --vx-button-background: var(--vx-surface-input);
377
484
  }
485
+ .vx-button[data-appearance=link] {
486
+ --vx-button-background: transparent;
487
+ --vx-button-foreground: var(--vx-state-success);
488
+ font-weight: 600;
489
+ }
378
490
  .vx-button[data-appearance=on-content] {
379
491
  --vx-button-background: var(--vx-overlay-tag);
380
492
  --vx-button-foreground: var(--vx-text-on-content-primary);
@@ -433,6 +545,19 @@
433
545
  .vx-button:active:not(:disabled) {
434
546
  filter: brightness(0.96);
435
547
  }
548
+ .vx-button-badge {
549
+ display: inline-grid;
550
+ place-items: center;
551
+ flex: none;
552
+ min-width: 16px;
553
+ height: 16px;
554
+ padding-inline: 3px;
555
+ box-sizing: border-box;
556
+ border-radius: var(--vx-radius-full);
557
+ background: var(--vx-green-dark);
558
+ color: var(--vx-text-on-content-primary);
559
+ font: var(--vx-typography-inter-10-semi-bold);
560
+ }
436
561
  .vx-button:disabled {
437
562
  cursor: not-allowed;
438
563
  }
@@ -601,6 +726,15 @@
601
726
  background: var(--vx-checkbox-active);
602
727
  border-color: var(--vx-checkbox-active);
603
728
  }
729
+ .vx-checkbox[data-appearance=outline] .vx-checkbox-mark {
730
+ --vx-checkbox-active: transparent;
731
+ --vx-checkbox-ink: var(--vx-text-primary);
732
+ background: transparent;
733
+ border-color: var(--vx-text-primary);
734
+ }
735
+ .vx-checkbox[data-appearance=outline] input:checked + .vx-checkbox-mark {
736
+ border-color: var(--vx-text-primary);
737
+ }
604
738
  .vx-checkbox-mark > .vx-icon {
605
739
  --vx-icon-size: var(--vx-icon-slot-small);
606
740
  }
@@ -643,9 +777,10 @@
643
777
  .vx-search-input[data-size=large]:has(.vx-search-clear) {
644
778
  padding-inline-end: var(--vx-space-8);
645
779
  }
646
- .vx-search-input:has(input:focus-visible) {
647
- outline: var(--vx-focus-ring-width) solid var(--vx-state-assistance);
648
- outline-offset: var(--vx-space-2);
780
+ @media (forced-colors: active) {
781
+ .vx-search-input:has(input:focus-visible) {
782
+ outline: var(--vx-focus-ring-width) solid Highlight;
783
+ }
649
784
  }
650
785
  .vx-search-input:has(input:disabled) {
651
786
  opacity: 0.5;
@@ -761,10 +896,32 @@
761
896
  padding: 0 var(--vx-space-10);
762
897
  background: var(--vx-surface-input);
763
898
  font: var(--vx-typography-inter-14-regular);
899
+ justify-content: space-between;
900
+ }
901
+ .vx-dropdown[data-text-size="12"] .vx-dropdown-trigger {
902
+ font: var(--vx-typography-inter-12-regular);
764
903
  }
765
904
  .vx-dropdown[data-appearance=field] .vx-dropdown-trigger:is(:hover:not(:disabled), :focus-visible, [aria-expanded=true]) {
766
905
  background: var(--vx-surface-selected);
767
906
  }
907
+ .vx-dropdown[data-appearance=heading] .vx-dropdown-trigger {
908
+ gap: var(--vx-space-4);
909
+ padding-inline: 0;
910
+ font: var(--vx-typography-inter-16-semi-bold);
911
+ }
912
+ .vx-dropdown[data-appearance=heading][data-width=hug] [role=listbox] {
913
+ position: fixed;
914
+ inset: auto;
915
+ margin: 0;
916
+ }
917
+ .vx-dropdown[data-appearance=heading] .vx-dropdown-trigger:is(:hover, :focus-visible, [aria-expanded=true]),
918
+ .vx-dropdown[data-appearance=heading][data-width=hug] [role=option]:is([aria-selected=true], [data-active=true], :hover) {
919
+ background: transparent;
920
+ }
921
+ .vx-dropdown[data-appearance=heading]:has(.vx-dropdown-trigger:focus-visible) [role=option][data-active=true] {
922
+ outline: var(--vx-focus-ring-width) solid var(--vx-state-assistance);
923
+ outline-offset: calc(-1 * var(--vx-focus-ring-width));
924
+ }
768
925
  .vx-dropdown-value {
769
926
  display: inline-flex;
770
927
  align-items: center;
@@ -782,7 +939,7 @@
782
939
  inset-inline: 0;
783
940
  margin: var(--vx-space-4) 0 0;
784
941
  max-height: min(15rem, 50vh);
785
- overflow: auto;
942
+ overflow: hidden auto;
786
943
  padding: var(--vx-space-4);
787
944
  border: var(--vx-border-width) solid var(--vx-border-secondary);
788
945
  border-radius: var(--vx-radius-xl);
@@ -838,17 +995,20 @@
838
995
  flex: none;
839
996
  padding: var(--vx-space-16) 0 var(--vx-space-12);
840
997
  border: 0;
841
- border-bottom: var(--vx-space-2) solid transparent;
842
998
  background: transparent;
843
- color: var(--vx-text-secondary-readable);
999
+ color: var(--vx-text-secondary);
844
1000
  font: var(--vx-typography-inter-16-semi-bold);
845
1001
  cursor: pointer;
846
1002
  white-space: nowrap;
847
1003
  }
848
1004
  .vx-tabs [role=tab][aria-selected=true] {
849
- border-color: var(--vx-state-success);
1005
+ padding-block-start: 18px;
1006
+ border-bottom: 2px solid var(--vx-state-success);
850
1007
  color: var(--vx-state-success);
851
1008
  }
1009
+ .vx-tabs [role=tab]:not([aria-selected=true], :disabled):hover {
1010
+ color: var(--vx-text-primary);
1011
+ }
852
1012
  .vx-tabs [role=tab]:disabled {
853
1013
  opacity: 0.5;
854
1014
  cursor: not-allowed;
@@ -960,9 +1120,151 @@
960
1120
  font: var(--vx-typography-inter-12-medium);
961
1121
  padding: 3px;
962
1122
  }
1123
+ @scope ([data-vx-theme]) {
1124
+ .vx-checkbox[data-appearance=outline] input:focus-visible + .vx-checkbox-mark {
1125
+ outline-color: var(--vx-state-assistance);
1126
+ }
1127
+ }
1128
+ @scope ([data-vx-theme]) {
1129
+ .vx-asset-library-toolbar {
1130
+ display: flex;
1131
+ align-items: center;
1132
+ gap: var(--vx-space-8);
1133
+ min-height: var(--vx-tabs-primary-height);
1134
+ padding-inline: var(--vx-space-16) var(--vx-space-12);
1135
+ border-bottom: var(--vx-divider-width) solid var(--vx-border-secondary);
1136
+ box-sizing: border-box;
1137
+ }
1138
+ .vx-asset-library-toolbar > :first-child {
1139
+ flex: 1;
1140
+ min-width: 0;
1141
+ }
1142
+ .vx-asset-library-controls {
1143
+ display: flex;
1144
+ flex: none;
1145
+ align-items: center;
1146
+ gap: var(--vx-space-8);
1147
+ max-width: 100%;
1148
+ }
1149
+ @media (max-width: 1100px) {
1150
+ .vx-asset-library-toolbar,
1151
+ .vx-asset-library-controls {
1152
+ flex-wrap: wrap;
1153
+ }
1154
+ .vx-asset-library-toolbar {
1155
+ padding-block: var(--vx-space-8);
1156
+ }
1157
+ }
1158
+ @media (max-width: 760px) {
1159
+ .vx-asset-library-toolbar {
1160
+ padding-block: 0 var(--vx-space-8);
1161
+ }
1162
+ .vx-asset-library-toolbar > :first-child,
1163
+ .vx-asset-library-controls {
1164
+ flex-basis: 100%;
1165
+ }
1166
+ .vx-asset-library-controls {
1167
+ gap: 6px;
1168
+ }
1169
+ }
1170
+ .vx-asset-selection {
1171
+ display: flex;
1172
+ flex: 0 1 auto;
1173
+ max-width: 100%;
1174
+ align-items: center;
1175
+ flex-wrap: wrap;
1176
+ gap: var(--vx-space-8);
1177
+ }
1178
+ .vx-asset-selection > [role=status] {
1179
+ padding-inline: var(--vx-space-16);
1180
+ white-space: nowrap;
1181
+ color: var(--vx-text-primary);
1182
+ font: var(--vx-typography-inter-14-regular);
1183
+ }
1184
+ .vx-asset-selection > i {
1185
+ display: grid;
1186
+ place-items: center;
1187
+ width: 8px;
1188
+ height: 8px;
1189
+ }
1190
+ .vx-asset-selection > i::after {
1191
+ content: "";
1192
+ height: 8px;
1193
+ width: 1px;
1194
+ background: var(--vx-border-secondary);
1195
+ }
1196
+ .vx-asset-selection .vx-button-content {
1197
+ gap: 6px;
1198
+ }
1199
+ .vx-asset-selection .vx-icon {
1200
+ --vx-icon-size: 16px;
1201
+ }
1202
+ }
963
1203
 
964
1204
  /* packages/ui-system/dist/field.css */
965
1205
  @scope ([data-vx-theme]) {
1206
+ .vx-slider[data-appearance=neutral] {
1207
+ position: relative;
1208
+ }
1209
+ .vx-slider[data-appearance=neutral] > input {
1210
+ appearance: none;
1211
+ width: 100%;
1212
+ height: 16px;
1213
+ margin: 0;
1214
+ padding: 0;
1215
+ border-radius: var(--vx-radius-full);
1216
+ background:
1217
+ linear-gradient(
1218
+ to right,
1219
+ var(--vx-text-secondary) 0 var(--vx-slider-fill),
1220
+ var(--vx-surface-input) var(--vx-slider-fill) 100%);
1221
+ }
1222
+ .vx-slider[data-appearance=neutral] > input::-webkit-slider-thumb {
1223
+ appearance: none;
1224
+ width: 14px;
1225
+ height: 14px;
1226
+ background: var(--vx-background-dialog);
1227
+ border: 1px solid var(--vx-border-primary);
1228
+ border-radius: 50%;
1229
+ }
1230
+ .vx-slider[data-appearance=neutral] > input::-moz-range-thumb {
1231
+ width: 14px;
1232
+ height: 14px;
1233
+ background: var(--vx-background-dialog);
1234
+ border: 1px solid var(--vx-border-primary);
1235
+ border-radius: 50%;
1236
+ }
1237
+ .vx-slider-markers {
1238
+ position: absolute;
1239
+ left: 8px;
1240
+ right: 8px;
1241
+ bottom: 7px;
1242
+ height: 2px;
1243
+ pointer-events: none;
1244
+ }
1245
+ .vx-slider-markers > span {
1246
+ position: absolute;
1247
+ width: 2px;
1248
+ height: 2px;
1249
+ border-radius: 50%;
1250
+ background: var(--vx-text-secondary-readable);
1251
+ }
1252
+ :is(input, textarea, [contenteditable]:not([contenteditable=false]), [role=textbox]) {
1253
+ scrollbar-width: none;
1254
+ &::-webkit-scrollbar {
1255
+ display: none;
1256
+ }
1257
+ }
1258
+ :is(input:not([type]), input[type=text], input[type=search], input[type=email], input[type=url], input[type=tel], input[type=password], input[type=number], textarea) {
1259
+ border: 0;
1260
+ }
1261
+ :is(input:not([type]), input[type=text], input[type=email], input[type=url], input[type=tel], input[type=password], input[type=number], textarea):focus-visible {
1262
+ outline: none;
1263
+ background-color: var(--vx-surface-selected);
1264
+ @media (forced-colors: active) {
1265
+ outline: var(--vx-focus-ring-width) solid Highlight;
1266
+ }
1267
+ }
966
1268
  .vx-field,
967
1269
  .vx-slider {
968
1270
  display: grid;
@@ -975,7 +1277,7 @@
975
1277
  width: 100%;
976
1278
  min-height: var(--vx-input-medium-height);
977
1279
  padding: var(--vx-space-4) var(--vx-space-8);
978
- border: var(--vx-border-width) solid var(--vx-control-border);
1280
+ border: 0;
979
1281
  border-radius: var(--vx-radius-md);
980
1282
  background: var(--vx-surface-input);
981
1283
  color: inherit;
@@ -984,6 +1286,9 @@
984
1286
  .vx-field[data-size=large] > input {
985
1287
  min-height: var(--vx-input-large-height);
986
1288
  }
1289
+ .vx-field[data-appearance=filled] > input {
1290
+ font: var(--vx-typography-inter-12-regular);
1291
+ }
987
1292
  .vx-date-picker {
988
1293
  display: inline-flex;
989
1294
  align-items: flex-start;
@@ -1001,7 +1306,8 @@
1001
1306
  box-sizing: border-box;
1002
1307
  width: min(320px, calc(100vw - 16px));
1003
1308
  max-height: calc(100dvh - 16px);
1004
- overflow: auto;
1309
+ scrollbar-gutter: stable;
1310
+ overflow: scroll auto;
1005
1311
  inset: auto;
1006
1312
  position-area: bottom span-right;
1007
1313
  position-try-fallbacks:
@@ -1069,7 +1375,6 @@
1069
1375
  cursor: not-allowed;
1070
1376
  opacity: 0.5;
1071
1377
  }
1072
- .vx-field > input:focus-visible,
1073
1378
  .vx-slider > input:focus-visible {
1074
1379
  outline: var(--vx-focus-ring-width) solid var(--vx-state-assistance);
1075
1380
  outline-offset: var(--vx-space-2);
@@ -1086,6 +1391,11 @@
1086
1391
  margin: 0;
1087
1392
  }
1088
1393
  }
1394
+ @scope ([data-vx-theme]) {
1395
+ .vx-slider[data-appearance=neutral] .vx-slider-heading {
1396
+ font: var(--vx-typography-inter-12-regular);
1397
+ }
1398
+ }
1089
1399
 
1090
1400
  /* packages/ui-system/dist/inline-text.css */
1091
1401
  @scope ([data-vx-theme]) {
@@ -1117,6 +1427,26 @@
1117
1427
 
1118
1428
  /* packages/ui-system/dist/media.css */
1119
1429
  @scope ([data-vx-theme]) {
1430
+ .vx-frame-filmstrip {
1431
+ position: absolute;
1432
+ inset: 0;
1433
+ display: flex;
1434
+ overflow: hidden;
1435
+ opacity: 0.6;
1436
+ }
1437
+ .vx-frame-filmstrip > img {
1438
+ min-width: 0;
1439
+ width: 0;
1440
+ flex: 1;
1441
+ object-fit: cover;
1442
+ }
1443
+ .vx-playback-controls[data-appearance=surface] {
1444
+ background: var(--vx-background-page);
1445
+ color: var(--vx-text-secondary-readable);
1446
+ }
1447
+ .vx-playback-controls[data-appearance=surface] > .vx-button {
1448
+ --vx-button-foreground: var(--vx-text-secondary-readable);
1449
+ }
1120
1450
  .vx-tag {
1121
1451
  display: inline-flex;
1122
1452
  align-items: center;
@@ -1129,7 +1459,7 @@
1129
1459
  white-space: nowrap;
1130
1460
  }
1131
1461
  .vx-tag[data-variant=selected] {
1132
- background: var(--vx-state-success);
1462
+ background: var(--vx-media-selection-color);
1133
1463
  }
1134
1464
  .vx-tag[data-variant=subtle] {
1135
1465
  background: var(--vx-surface-message);
@@ -1140,6 +1470,7 @@
1140
1470
  color: var(--vx-text-primary);
1141
1471
  }
1142
1472
  .vx-media {
1473
+ isolation: isolate;
1143
1474
  position: relative;
1144
1475
  display: grid;
1145
1476
  place-items: center;
@@ -1150,14 +1481,10 @@
1150
1481
  padding: 0;
1151
1482
  border: 0;
1152
1483
  border-radius: var(--vx-radius-lg);
1153
- background: #000;
1484
+ background: var(--vx-cover-background);
1154
1485
  color: var(--vx-text-on-content-primary);
1155
1486
  font: inherit;
1156
1487
  }
1157
- .vx-media:is([data-empty=surface], [data-empty=audio]) {
1158
- background: var(--vx-surface-input);
1159
- color: var(--vx-text-primary);
1160
- }
1161
1488
  button.vx-media {
1162
1489
  cursor: pointer;
1163
1490
  }
@@ -1180,19 +1507,20 @@
1180
1507
  pointer-events: none;
1181
1508
  }
1182
1509
  .vx-media-empty-label {
1183
- color: var(--vx-text-secondary-readable);
1510
+ color: var(--vx-text-on-content-secondary);
1184
1511
  font: var(--vx-typography-inter-12-regular);
1185
1512
  padding: var(--vx-space-8);
1186
1513
  }
1187
1514
  .vx-media[data-state=selected][data-selection=outline]::after {
1188
1515
  position: absolute;
1516
+ z-index: 2;
1189
1517
  inset: 0;
1190
- border: 3px solid var(--vx-state-success);
1518
+ border: 3px solid var(--vx-media-selection-color);
1191
1519
  border-radius: inherit;
1192
1520
  content: "";
1193
1521
  pointer-events: none;
1194
1522
  }
1195
- .vx-media > :is(.vx-media-label, .vx-media-duration, .vx-media-selected, .vx-media-marker) {
1523
+ :is(.vx-media, .vx-media-badge-host) > :is(.vx-media-label, .vx-media-duration, .vx-media-selected, .vx-media-marker) {
1196
1524
  position: absolute;
1197
1525
  z-index: 1;
1198
1526
  }
@@ -1203,7 +1531,8 @@
1203
1531
  inset: auto var(--vx-space-8) var(--vx-space-8) auto;
1204
1532
  }
1205
1533
  .vx-media-selected {
1206
- inset: var(--vx-space-8) auto auto var(--vx-space-8);
1534
+ display: flex;
1535
+ inset: 5px auto auto 5px;
1207
1536
  }
1208
1537
  .vx-media-marker {
1209
1538
  inset: var(--vx-space-8) var(--vx-space-8) auto auto;
@@ -1307,6 +1636,9 @@
1307
1636
  height: var(--vx-playback-button-size);
1308
1637
  color: inherit;
1309
1638
  }
1639
+ .vx-playback-controls > .vx-button[data-shape=icon]:hover:not(:disabled) {
1640
+ --vx-button-background: var(--vx-white-white-1a);
1641
+ }
1310
1642
  .vx-playback-controls > input {
1311
1643
  appearance: none;
1312
1644
  flex: 1;
@@ -1365,9 +1697,22 @@
1365
1697
  position: relative;
1366
1698
  min-width: 0;
1367
1699
  overflow: hidden;
1368
- background: #000;
1700
+ background: var(--vx-cover-background);
1369
1701
  border-radius: var(--vx-radius-xl);
1370
1702
  }
1703
+ .vx-video-player[data-fit=content]:not(:fullscreen) {
1704
+ width: min(100cqw, calc(100cqh * var(--vx-video-ratio)));
1705
+ }
1706
+ .vx-video-player[data-fit=content] .vx-video-stage {
1707
+ aspect-ratio: var(--vx-video-ratio);
1708
+ }
1709
+ .vx-video-player[data-fit=content]:fullscreen .vx-video-stage {
1710
+ aspect-ratio: auto;
1711
+ height: 100%;
1712
+ }
1713
+ .vx-video-player[data-fit=content]:fullscreen {
1714
+ display: block;
1715
+ }
1371
1716
  .vx-video-player[data-placement=below] > .vx-playback-controls {
1372
1717
  border-radius: 0;
1373
1718
  }
@@ -1383,6 +1728,14 @@
1383
1728
  .vx-video-player:fullscreen .vx-video-stage {
1384
1729
  max-height: 100dvh;
1385
1730
  }
1731
+ .vx-dialog.vx-video-dialog {
1732
+ width: min(960px, calc(100vw - 32px));
1733
+ margin: var(--vx-space-16) auto;
1734
+ }
1735
+ .vx-video-dialog .vx-video-stage {
1736
+ width: 100%;
1737
+ max-height: min(480px, calc(100dvh - 192px));
1738
+ }
1386
1739
  .vx-video-cover {
1387
1740
  position: absolute;
1388
1741
  inset: auto 0 0;
@@ -1393,7 +1746,11 @@
1393
1746
  padding: var(--vx-space-20);
1394
1747
  color: var(--vx-text-on-content-primary);
1395
1748
  }
1749
+ .vx-video-cover {
1750
+ isolation: isolate;
1751
+ }
1396
1752
  .vx-video-cover::before {
1753
+ z-index: -1;
1397
1754
  position: absolute;
1398
1755
  inset: 0;
1399
1756
  background:
@@ -1404,6 +1761,9 @@
1404
1761
  content: "";
1405
1762
  pointer-events: none;
1406
1763
  }
1764
+ .vx-video-cover[data-plain]::before {
1765
+ content: none;
1766
+ }
1407
1767
  .vx-video-info {
1408
1768
  position: relative;
1409
1769
  flex: 1;
@@ -1534,42 +1894,295 @@
1534
1894
  }
1535
1895
  }
1536
1896
  @scope ([data-vx-theme]) {
1537
- .vx-media:is([data-empty=image], [data-empty=video], [data-empty=audio], [data-empty=script]) {
1897
+ .vx-media:is([data-empty=surface], [data-empty=image], [data-empty=video], [data-empty=audio], [data-empty=script]) {
1538
1898
  background: var(--vx-surface-input);
1539
1899
  color: var(--vx-text-placeholder);
1540
1900
  }
1541
1901
  }
1542
-
1543
- /* packages/ui-system/dist/overlays.css */
1544
1902
  @scope ([data-vx-theme]) {
1545
- .vx-action-menu {
1546
- display: inline-block;
1903
+ .vx-cover-preview[data-cover-state=empty] {
1904
+ background: var(--vx-surface-input);
1905
+ }
1906
+ .vx-cover-preview[data-cover-state=empty] > .vx-icon {
1907
+ color: var(--vx-text-placeholder);
1908
+ }
1909
+ .vx-cover-preview[data-cover-state=loading] {
1547
1910
  position: relative;
1548
- max-width: 100%;
1911
+ overflow: hidden;
1912
+ background: var(--vx-surface-input);
1549
1913
  }
1550
- .vx-action-menu-items {
1914
+ .vx-cover-preview[data-cover-state=loading] > :is(img, video) {
1915
+ opacity: 0;
1916
+ }
1917
+ .vx-cover-preview[data-cover-state=loading]::after {
1918
+ content: "";
1551
1919
  position: absolute;
1552
- z-index: 2;
1553
- inset-inline-start: 0;
1554
- top: calc(100% + var(--vx-space-4));
1555
- box-sizing: border-box;
1556
- width: min(224px, calc(100vw - 16px));
1557
- max-height: min(480px, 50vh);
1558
- overflow: auto;
1559
- padding: var(--vx-space-4);
1560
- border: var(--vx-border-width) solid var(--vx-border-secondary);
1561
- border-radius: var(--vx-radius-xl);
1562
- background: var(--vx-background-dialog);
1563
- box-shadow: var(--vx-shadow-menu);
1920
+ inset: 0;
1921
+ pointer-events: none;
1922
+ background:
1923
+ linear-gradient(
1924
+ 105deg,
1925
+ transparent 20%,
1926
+ light-dark(var(--vx-white-white), color-mix(in srgb, var(--vx-white-white) 14%, transparent)) 50%,
1927
+ transparent 80%);
1928
+ animation: vx-cover-sweep 1.35s ease-in-out infinite;
1929
+ }
1930
+ @media (prefers-reduced-motion: reduce) {
1931
+ .vx-cover-preview[data-cover-state=loading]::after {
1932
+ animation: none;
1933
+ content: none;
1934
+ }
1564
1935
  }
1565
- .vx-action-menu-items > button {
1566
- display: flex;
1567
- align-items: center;
1568
- gap: var(--vx-space-8);
1569
- width: 100%;
1570
- min-height: 36px;
1571
- padding: var(--vx-space-4) var(--vx-space-8);
1572
- border: 0;
1936
+ }
1937
+ @keyframes vx-cover-sweep {
1938
+ from {
1939
+ transform: translateX(-100%);
1940
+ }
1941
+ to {
1942
+ transform: translateX(100%);
1943
+ }
1944
+ }
1945
+ @scope ([data-vx-theme]) {
1946
+ .vx-frame-filmstrip {
1947
+ border-radius: inherit;
1948
+ }
1949
+ .vx-frame-range[data-variant=trim] {
1950
+ background: var(--vx-surface-input);
1951
+ }
1952
+ .vx-frame-range[data-variant=trim] .vx-frame-selection {
1953
+ border-width: 1px;
1954
+ background: color-mix(in srgb, var(--vx-state-success) 20%, transparent);
1955
+ }
1956
+ .vx-frame-range[data-variant=trim] .vx-frame-handle {
1957
+ width: 24px;
1958
+ display: grid;
1959
+ place-items: center;
1960
+ background: transparent;
1961
+ }
1962
+ .vx-frame-range[data-variant=trim] .vx-frame-handle::after {
1963
+ width: 3px;
1964
+ height: 12px;
1965
+ margin: 0;
1966
+ border: 1px solid var(--vx-state-success);
1967
+ background: var(--vx-background-dialog);
1968
+ border-radius: 2px;
1969
+ }
1970
+ }
1971
+ @scope ([data-vx-theme]) {
1972
+ .vx-dialog.vx-video-dialog-fit {
1973
+ width: fit-content;
1974
+ max-width: calc(100vw - 32px);
1975
+ }
1976
+ .vx-video-dialog-fit .vx-video-player[data-fit=content] {
1977
+ width: min(926px, calc(100vw - 66px), calc(min(480px, 100dvh - 192px) * var(--vx-video-ratio)));
1978
+ min-width: min(200px, calc(100vw - 66px));
1979
+ }
1980
+ }
1981
+ @scope ([data-vx-theme]) {
1982
+ .vx-playback-controls[data-size=small][data-appearance=surface] {
1983
+ --vx-playback-button-size: 16px;
1984
+ --vx-playback-thumb-size: 8px;
1985
+ height: 28px;
1986
+ min-height: 28px;
1987
+ padding: var(--vx-space-2) 0;
1988
+ gap: var(--vx-space-4);
1989
+ background: transparent;
1990
+ color: var(--vx-text-secondary-readable);
1991
+ flex-wrap: nowrap;
1992
+ }
1993
+ .vx-playback-controls[data-size=small][data-appearance=surface] > .vx-button {
1994
+ --vx-button-foreground: var(--vx-text-secondary-readable);
1995
+ flex: none;
1996
+ width: 24px;
1997
+ min-width: 24px;
1998
+ height: 24px;
1999
+ min-height: 24px;
2000
+ padding: 0;
2001
+ }
2002
+ .vx-playback-controls[data-size=small][data-appearance=surface] > span {
2003
+ font: var(--vx-typography-inter-10-regular);
2004
+ font-variant-numeric: tabular-nums;
2005
+ }
2006
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-webkit-slider-runnable-track {
2007
+ height: 6px;
2008
+ background:
2009
+ linear-gradient(
2010
+ to right,
2011
+ var(--vx-text-secondary-readable) var(--vx-playback-progress),
2012
+ var(--vx-overlay-tag) var(--vx-playback-progress));
2013
+ }
2014
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-webkit-slider-thumb {
2015
+ margin-top: -1px;
2016
+ border-color: var(--vx-border-secondary);
2017
+ background: var(--vx-white-white);
2018
+ box-shadow: 0 1px 2px var(--vx-black-black-2a);
2019
+ }
2020
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-moz-range-track,
2021
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-moz-range-progress {
2022
+ height: 6px;
2023
+ }
2024
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-moz-range-progress {
2025
+ background: var(--vx-text-secondary-readable);
2026
+ }
2027
+ .vx-playback-controls[data-size=small][data-appearance=surface] > input::-moz-range-thumb {
2028
+ border-color: var(--vx-border-secondary);
2029
+ background: var(--vx-white-white);
2030
+ box-shadow: 0 1px 2px var(--vx-black-black-2a);
2031
+ }
2032
+ .vx-video-player[data-controls-size=small] {
2033
+ background: transparent;
2034
+ }
2035
+ .vx-video-player[data-controls-size=small] .vx-video-stage {
2036
+ background: var(--vx-black-black);
2037
+ border-radius: var(--vx-radius-xl);
2038
+ }
2039
+ .vx-video-player[data-controls-size=small] .vx-video-cover {
2040
+ min-height: 0;
2041
+ gap: var(--vx-space-8);
2042
+ padding: var(--vx-space-8);
2043
+ }
2044
+ .vx-video-player[data-controls-size=small] .vx-video-title strong {
2045
+ font: var(--vx-typography-inter-12-regular);
2046
+ }
2047
+ }
2048
+
2049
+ /* packages/ui-system/dist/asset-grid.css */
2050
+ .vx-asset-grid.vx-asset-grid {
2051
+ display: grid;
2052
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, max(240px, 25%)), 1fr));
2053
+ gap: 0;
2054
+ align-content: start;
2055
+ padding: 0;
2056
+ }
2057
+ .vx-asset-grid > .vx-asset-tile {
2058
+ position: relative;
2059
+ display: flex;
2060
+ flex-direction: column;
2061
+ align-items: stretch;
2062
+ gap: var(--vx-space-12);
2063
+ box-sizing: border-box;
2064
+ min-width: 0;
2065
+ padding: var(--vx-space-12) var(--vx-space-16);
2066
+ border: 0;
2067
+ border-radius: 0;
2068
+ background: transparent;
2069
+ }
2070
+ .vx-asset-tile .vx-tile-preview {
2071
+ display: grid;
2072
+ place-items: center;
2073
+ width: 100%;
2074
+ aspect-ratio: 16 / 9;
2075
+ padding: 0;
2076
+ border: 0;
2077
+ border-radius: var(--vx-radius-xl);
2078
+ background: var(--vx-cover-background);
2079
+ color: var(--vx-text-on-content-secondary);
2080
+ overflow: hidden;
2081
+ }
2082
+ button.vx-tile-preview {
2083
+ cursor: pointer;
2084
+ }
2085
+ .vx-tile-preview > .sd-asset-preview {
2086
+ width: 100%;
2087
+ }
2088
+ .vx-asset-tile > .vx-checkbox {
2089
+ position: absolute;
2090
+ z-index: 1;
2091
+ inset: 20px auto auto 24px;
2092
+ }
2093
+ .vx-asset-tile .vx-tile-caption {
2094
+ display: grid;
2095
+ grid-template-columns: minmax(0, 1fr) auto;
2096
+ align-items: start;
2097
+ column-gap: var(--vx-space-8);
2098
+ padding-inline: var(--vx-space-8);
2099
+ }
2100
+ .vx-tile-caption .vx-tile-title {
2101
+ display: block;
2102
+ justify-self: start;
2103
+ min-width: 0;
2104
+ max-width: 100%;
2105
+ height: 26px;
2106
+ margin: 0;
2107
+ border: 0;
2108
+ padding: 4px 0;
2109
+ overflow: hidden;
2110
+ text-overflow: ellipsis;
2111
+ white-space: nowrap;
2112
+ text-align: start;
2113
+ background: transparent;
2114
+ color: var(--vx-text-primary);
2115
+ font: var(--vx-typography-inter-14-semi-bold);
2116
+ }
2117
+ button.vx-tile-title {
2118
+ cursor: pointer;
2119
+ }
2120
+ .vx-tile-caption > .vx-action-menu {
2121
+ grid-column: 2;
2122
+ grid-row: 1;
2123
+ }
2124
+ .vx-tile-caption > .vx-action-menu > .vx-button {
2125
+ width: 24px;
2126
+ height: 24px;
2127
+ padding: 0;
2128
+ }
2129
+ .vx-tile-caption .vx-tile-facts {
2130
+ grid-column: 1 / -1;
2131
+ min-width: 0;
2132
+ min-height: 16px;
2133
+ overflow: hidden;
2134
+ white-space: nowrap;
2135
+ text-overflow: ellipsis;
2136
+ color: var(--vx-text-secondary);
2137
+ font: var(--vx-typography-inter-12-regular);
2138
+ }
2139
+ .vx-tile-facts > span + span::before {
2140
+ content: "";
2141
+ display: inline-block;
2142
+ height: 8px;
2143
+ margin-inline: 6px;
2144
+ border-inline-start: 1px solid var(--vx-border-secondary);
2145
+ }
2146
+ .vx-asset-grid .vx-asset-tile :is(.studio-cover, .vx-media, .sd-video-thumbnail, .ad-asset-cover) {
2147
+ border-radius: var(--vx-radius-xl);
2148
+ }
2149
+ .vx-asset-grid .studio-cover {
2150
+ overflow: hidden;
2151
+ }
2152
+ .vx-asset-grid .studio-cover[data-kind=video]:has(.studio-cover-video) > .vx-media {
2153
+ background-color: transparent;
2154
+ }
2155
+
2156
+ /* packages/ui-system/dist/overlays.css */
2157
+ @scope ([data-vx-theme]) {
2158
+ .vx-action-menu {
2159
+ display: inline-block;
2160
+ position: relative;
2161
+ max-width: 100%;
2162
+ }
2163
+ .vx-action-menu-items {
2164
+ position: absolute;
2165
+ z-index: 2;
2166
+ inset-inline-start: 0;
2167
+ top: calc(100% + var(--vx-space-4));
2168
+ box-sizing: border-box;
2169
+ width: min(224px, calc(100vw - 16px));
2170
+ max-height: min(480px, 50vh);
2171
+ overflow: hidden auto;
2172
+ padding: var(--vx-space-4);
2173
+ border: var(--vx-border-width) solid var(--vx-border-secondary);
2174
+ border-radius: var(--vx-radius-xl);
2175
+ background: var(--vx-background-dialog);
2176
+ box-shadow: var(--vx-shadow-menu);
2177
+ }
2178
+ .vx-action-menu-items > button {
2179
+ display: flex;
2180
+ align-items: center;
2181
+ gap: var(--vx-space-8);
2182
+ width: 100%;
2183
+ min-height: 36px;
2184
+ padding: var(--vx-space-4) var(--vx-space-8);
2185
+ border: 0;
1573
2186
  border-radius: var(--vx-radius-md);
1574
2187
  background: transparent;
1575
2188
  color: inherit;
@@ -1580,7 +2193,32 @@
1580
2193
  .vx-action-menu-items > button[data-size=large] {
1581
2194
  min-height: 48px;
1582
2195
  }
1583
- .vx-action-menu-items > button > span:not(.vx-icon) {
2196
+ .vx-action-menu-items > button[data-tone=danger]:not(:disabled) {
2197
+ color: var(--vx-state-danger);
2198
+ }
2199
+ .vx-action-menu-items[data-with-previews] {
2200
+ width: min(360px, calc(100vw - var(--vx-space-16)));
2201
+ }
2202
+ .vx-menu-preview {
2203
+ flex: none;
2204
+ display: grid;
2205
+ width: 80px;
2206
+ aspect-ratio: 16 / 9;
2207
+ border-radius: var(--vx-radius-sm);
2208
+ overflow: hidden;
2209
+ background: var(--vx-cover-background);
2210
+ }
2211
+ .vx-menu-preview > .vx-cover-preview {
2212
+ display: grid;
2213
+ place-items: center;
2214
+ grid-template: minmax(0, 1fr) / minmax(0, 1fr);
2215
+ }
2216
+ .vx-menu-preview :is(img, video) {
2217
+ width: 100%;
2218
+ height: 100%;
2219
+ object-fit: contain;
2220
+ }
2221
+ .vx-action-menu-items > button > .vx-menu-label {
1584
2222
  flex: 1;
1585
2223
  overflow-wrap: anywhere;
1586
2224
  }
@@ -1588,7 +2226,7 @@
1588
2226
  color: var(--vx-text-placeholder);
1589
2227
  cursor: not-allowed;
1590
2228
  }
1591
- .vx-action-menu-items > button:is(:hover, :focus-visible, [aria-checked=true]):not(:disabled) {
2229
+ .vx-action-menu-items > button:is(:hover, :focus-visible, [aria-checked=true], [aria-expanded=true]):not(:disabled) {
1592
2230
  background: var(--vx-surface-hover);
1593
2231
  }
1594
2232
  .vx-action-menu-items > button:focus-visible {
@@ -1597,37 +2235,118 @@
1597
2235
  }
1598
2236
  .vx-filter-menu {
1599
2237
  box-sizing: border-box;
1600
- width: min(280px, calc(100vw - 16px));
1601
- max-height: min(480px, calc(100dvh - 16px));
1602
- overflow: auto;
2238
+ width: min(224px, calc(100vw - 16px));
2239
+ max-height: min(460px, calc(100dvh - 16px));
2240
+ overflow: hidden;
1603
2241
  inset: auto;
1604
- position-area: bottom span-right;
2242
+ position-area: bottom center;
1605
2243
  position-try-fallbacks:
1606
- flip-inline,
1607
- flip-block,
1608
- flip-block flip-inline;
1609
- margin: var(--vx-space-4) 0;
1610
- padding: var(--vx-space-8);
1611
- border: var(--vx-border-width) solid var(--vx-border-secondary);
1612
- border-radius: var(--vx-radius-xl);
2244
+ bottom span-left,
2245
+ bottom span-right,
2246
+ top center,
2247
+ top span-left,
2248
+ top span-right;
2249
+ margin: 6px 0;
2250
+ padding: var(--vx-space-4);
2251
+ border: var(--vx-divider-width) solid var(--vx-border-secondary);
2252
+ border-radius: 12px;
1613
2253
  background: var(--vx-background-dialog);
1614
2254
  color: var(--vx-text-primary);
1615
- box-shadow: var(--vx-shadow-menu);
2255
+ box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
1616
2256
  }
1617
- .vx-filter-menu summary {
1618
- padding: var(--vx-space-8);
1619
- cursor: pointer;
2257
+ .vx-filter-menu:popover-open {
2258
+ display: flex;
2259
+ flex-direction: column;
2260
+ gap: 2px;
2261
+ }
2262
+ .vx-filter-scroll {
2263
+ position: relative;
2264
+ min-height: 0;
2265
+ display: flex;
2266
+ flex-direction: column;
2267
+ }
2268
+ .vx-filter-scroll[data-more-below]::after {
2269
+ content: "";
2270
+ position: absolute;
2271
+ inset: auto 0 0;
2272
+ height: min(60px, 35%);
2273
+ background:
2274
+ linear-gradient(
2275
+ to bottom,
2276
+ transparent,
2277
+ var(--vx-background-dialog));
2278
+ pointer-events: none;
1620
2279
  }
1621
- .vx-filter-menu summary .vx-tag {
1622
- margin-inline-start: var(--vx-space-8);
2280
+ .vx-filter-menu .vx-filter-groups {
2281
+ min-height: 0;
2282
+ overflow-y: auto;
2283
+ overscroll-behavior: contain;
2284
+ scrollbar-width: none;
1623
2285
  }
1624
- .vx-filter-options {
2286
+ .vx-filter-menu .vx-filter-options {
1625
2287
  display: grid;
1626
- gap: var(--vx-space-4);
1627
- padding: 0 var(--vx-space-8) var(--vx-space-8);
2288
+ padding: 0;
2289
+ gap: 2px;
2290
+ margin-block-start: 2px;
2291
+ }
2292
+ .vx-filter-menu details + details::before {
2293
+ content: "";
2294
+ display: block;
2295
+ height: var(--vx-divider-width);
2296
+ margin: 2px 12px;
2297
+ background: var(--vx-border-secondary);
2298
+ }
2299
+ .vx-filter-menu details + details {
2300
+ border: 0;
2301
+ }
2302
+ .vx-filter-menu summary,
2303
+ .vx-filter-options .vx-checkbox {
2304
+ box-sizing: border-box;
2305
+ display: flex;
2306
+ align-items: center;
2307
+ justify-content: space-between;
2308
+ min-height: 36px;
2309
+ padding: 0 12px;
2310
+ cursor: pointer;
2311
+ }
2312
+ .vx-filter-menu summary {
2313
+ font: var(--vx-typography-inter-14-semi-bold);
2314
+ list-style: none;
2315
+ }
2316
+ .vx-filter-menu summary::-webkit-details-marker {
2317
+ display: none;
2318
+ }
2319
+ .vx-filter-menu details[open] > summary .vx-icon {
2320
+ rotate: 180deg;
2321
+ }
2322
+ .vx-filter-options .vx-checkbox {
2323
+ width: 100%;
2324
+ flex-direction: row-reverse;
2325
+ font: var(--vx-typography-inter-14-regular);
2326
+ }
2327
+ .vx-filter-options .vx-checkbox:hover,
2328
+ .vx-filter-menu summary:hover {
2329
+ border-radius: 8px;
2330
+ background: var(--vx-surface-hover);
1628
2331
  }
1629
- .vx-filter-menu > .vx-button {
1630
- margin-top: var(--vx-space-8);
2332
+ .vx-filter-menu .vx-checkbox-input:not(:checked) + .vx-checkbox-mark {
2333
+ border-color: var(--vx-border-primary);
2334
+ }
2335
+ .vx-filter-menu .vx-checkbox-mark .vx-icon {
2336
+ --vx-icon-size: 12px;
2337
+ }
2338
+ .vx-filter-menu footer {
2339
+ box-sizing: border-box;
2340
+ display: flex;
2341
+ align-items: center;
2342
+ flex: none;
2343
+ height: 44px;
2344
+ padding-inline: var(--vx-space-8);
2345
+ border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
2346
+ }
2347
+ .vx-filter-menu footer > .vx-button {
2348
+ width: 100%;
2349
+ flex: none;
1631
2350
  }
1632
2351
  .vx-annotation-tools {
1633
2352
  display: inline-flex;
@@ -1700,32 +2419,33 @@
1700
2419
  margin: 0;
1701
2420
  font: var(--vx-typography-inter-16-semi-bold);
1702
2421
  }
1703
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) {
2422
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) {
1704
2423
  --vx-dialog-section-gap: var(--vx-space-24);
1705
2424
  --vx-dialog-footer-inset: var(--vx-space-24);
1706
2425
  width: min(var(--vx-dialog-small-width), calc(100vw - var(--vx-space-32)));
1707
2426
  padding: var(--vx-dialog-padding);
1708
2427
  border: var(--vx-border-width) solid var(--vx-surface-input);
1709
2428
  border-radius: var(--vx-dialog-radius);
1710
- overflow: auto;
2429
+ scrollbar-gutter: stable;
2430
+ overflow: scroll auto;
1711
2431
  }
1712
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header {
2432
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) > header {
1713
2433
  padding: 0;
1714
2434
  margin: 0 var(--vx-space-32) var(--vx-dialog-section-gap) 0;
1715
2435
  }
1716
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header h2 {
2436
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) > header h2 {
1717
2437
  font: var(--vx-typography-inter-18-semi-bold);
1718
2438
  }
1719
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header > .vx-button {
2439
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) > header > .vx-button {
1720
2440
  position: absolute;
1721
2441
  top: 15px;
1722
2442
  right: 15px;
1723
2443
  }
1724
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > .vx-dialog-body {
2444
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) > .vx-dialog-body {
1725
2445
  min-width: 0;
1726
2446
  padding: 0;
1727
2447
  }
1728
- .vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > footer {
2448
+ .vx-dialog:is([data-variant=create-project], [data-variant=story-edit], [data-variant=edit-dashboard]) > footer {
1729
2449
  margin-top: var(--vx-dialog-section-gap);
1730
2450
  padding: var(--vx-dialog-footer-inset) 0 0;
1731
2451
  border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
@@ -1800,6 +2520,12 @@
1800
2520
  font-weight: 400;
1801
2521
  font-display: swap;
1802
2522
  }
2523
+ @font-face {
2524
+ font-family: "Vivix Studio Inter";
2525
+ src: url("./assets/inter-latin-900-normal-FKACR3DR.woff2") format("woff2");
2526
+ font-weight: 900;
2527
+ font-display: swap;
2528
+ }
1803
2529
  @font-face {
1804
2530
  font-family: "Vivix Studio Inter";
1805
2531
  src: url("./assets/inter-latin-500-normal-W62DVTXI.woff2") format("woff2");
@@ -1819,6 +2545,9 @@
1819
2545
  font-display: swap;
1820
2546
  }
1821
2547
  @scope ([data-vx-theme]) {
2548
+ :where(h1, h2, h3, h4, h5, h6, b, strong, th) {
2549
+ font-weight: 600;
2550
+ }
1822
2551
  .vx-icon {
1823
2552
  display: inline-block;
1824
2553
  flex: none;
@@ -1837,6 +2566,15 @@
1837
2566
  background: currentColor;
1838
2567
  mask: var(--vx-icon-mask) center / contain no-repeat;
1839
2568
  }
2569
+ .vx-icon[data-icon=copy] {
2570
+ --vx-icon-mask: url("./assets/copy-document-EF4PHM7F.svg");
2571
+ }
2572
+ .vx-icon[data-icon=upload] {
2573
+ --vx-icon-mask: url("./assets/upload-U5RZT5QI.svg");
2574
+ }
2575
+ .vx-icon[data-icon=refresh] {
2576
+ --vx-icon-mask: url("./assets/refresh-WQ3CTB57.svg");
2577
+ }
1840
2578
  .vx-icon[data-icon=add] {
1841
2579
  --vx-icon-mask: url("./assets/add-JY533O73.svg");
1842
2580
  }
@@ -1890,9 +2628,18 @@
1890
2628
  --vx-icon-height: 86.46%;
1891
2629
  --vx-icon-mask: url("./assets/magic-OMME7FOV.svg");
1892
2630
  }
2631
+ .vx-icon[data-icon=select-items] {
2632
+ --vx-icon-mask: url("./assets/select-items-GJZIVO37.svg");
2633
+ }
2634
+ .vx-icon[data-icon=filter] {
2635
+ --vx-icon-mask: url("./assets/filter-JSDZZVGN.svg");
2636
+ }
1893
2637
  .vx-icon[data-icon=select] {
1894
2638
  --vx-icon-mask: url("./assets/select-VU7WR7B4.svg");
1895
2639
  }
2640
+ .vx-icon[data-icon=filter] {
2641
+ --vx-icon-mask: url("./assets/filter-JSDZZVGN.svg");
2642
+ }
1896
2643
  .vx-icon[data-icon=area] {
1897
2644
  --vx-icon-mask: url("./assets/area-P2WOMBT5.svg");
1898
2645
  }
@@ -1951,6 +2698,21 @@
1951
2698
  .vx-icon[data-icon=export] {
1952
2699
  --vx-icon-mask: url("./assets/export-W2OBXZDQ.svg");
1953
2700
  }
2701
+ .vx-icon[data-icon=favorite] {
2702
+ --vx-icon-mask: url("./assets/favorite-6GMNHJCN.svg");
2703
+ }
2704
+ .vx-icon[data-icon=download] {
2705
+ --vx-icon-mask: url("./assets/download-VTKCEAZG.svg");
2706
+ }
2707
+ .vx-icon[data-icon=delete] {
2708
+ --vx-icon-mask: url("./assets/delete-4Y3OUMEL.svg");
2709
+ }
2710
+ .vx-icon[data-icon=trim] {
2711
+ --vx-icon-mask: url("./assets/trim-LQMHHN2M.svg");
2712
+ }
2713
+ .vx-icon[data-icon=crop] {
2714
+ --vx-icon-mask: url("./assets/crop-5JXWHIPN.svg");
2715
+ }
1954
2716
  .vx-icon[data-icon=edit] {
1955
2717
  --vx-icon-mask: url("./assets/edit-JUVJDD5A.svg");
1956
2718
  }
@@ -2007,16 +2769,18 @@
2007
2769
  }
2008
2770
  .mt-editor .vx-dialog > header {
2009
2771
  height: auto;
2772
+ min-height: 0;
2010
2773
  border: 0;
2011
2774
  padding: 24px 24px 0;
2012
2775
  margin-bottom: 24px;
2013
2776
  }
2014
2777
  .mt-editor .vx-dialog > header h2 {
2015
- font: 600 22px / 1.2 var(--vx-font-inter);
2778
+ font: var(--vx-typography-inter-18-semi-bold);
2016
2779
  }
2017
2780
  .mt-editor .vx-dialog > header > button {
2018
- align-self: start;
2019
- margin: -8px -8px 0 0;
2781
+ position: absolute;
2782
+ inset: 15px 15px auto auto;
2783
+ margin: 0;
2020
2784
  }
2021
2785
  .mt-editor .vx-dialog-body {
2022
2786
  padding: 0 24px;
@@ -2034,13 +2798,21 @@
2034
2798
  }
2035
2799
  .mt-editor .vx-dialog-body {
2036
2800
  min-height: 0;
2037
- overflow: auto;
2801
+ overflow-x: hidden;
2802
+ overflow-y: auto;
2038
2803
  }
2039
2804
  .mt-editor-content {
2040
2805
  display: flex;
2041
2806
  flex-direction: column;
2042
2807
  gap: var(--vx-space-16);
2043
2808
  }
2809
+ .mt-editor-content .vx-playback-controls > span {
2810
+ display: none;
2811
+ }
2812
+ .mt-editor-content .vx-frame-selection .vx-tag {
2813
+ font: var(--vx-typography-inter-12-medium);
2814
+ font-variant-numeric: tabular-nums;
2815
+ }
2044
2816
  .mt-editor-content > * {
2045
2817
  flex-shrink: 0;
2046
2818
  }
@@ -2064,7 +2836,7 @@
2064
2836
  gap: 8px;
2065
2837
  }
2066
2838
  .mt-editor .mt-editor-hint {
2067
- line-height: 1.5;
2839
+ font: var(--vx-typography-inter-14-regular);
2068
2840
  display: flex;
2069
2841
  justify-content: space-between;
2070
2842
  gap: 8px;
@@ -2115,9 +2887,9 @@
2115
2887
  background:
2116
2888
  linear-gradient(
2117
2889
  to right,
2118
- var(--vx-white-white-6a) 0 var(--vx-range-start),
2890
+ var(--vx-black-black-4a) 0 var(--vx-range-start),
2119
2891
  transparent var(--vx-range-start) var(--vx-range-end),
2120
- var(--vx-white-white-6a) var(--vx-range-end) 100%);
2892
+ var(--vx-black-black-4a) var(--vx-range-end) 100%);
2121
2893
  }
2122
2894
  .mt-editor .vx-frame-range[data-variant=trim] {
2123
2895
  border-radius: 8px;
@@ -2150,6 +2922,18 @@
2150
2922
  border-radius: 1.822px;
2151
2923
  background: var(--vx-green-dark);
2152
2924
  }
2925
+ .mt-editor .vx-frame-handle:focus-visible {
2926
+ outline: none;
2927
+ }
2928
+ .mt-editor .vx-frame-handle:focus-visible::after {
2929
+ outline: var(--vx-focus-ring-width) solid var(--vx-state-assistance);
2930
+ outline-offset: 2px;
2931
+ }
2932
+ @media (forced-colors: active) {
2933
+ .mt-editor .vx-frame-handle:focus-visible::after {
2934
+ outline-color: Highlight;
2935
+ }
2936
+ }
2153
2937
  .mt-editor .vx-frame-handle::before {
2154
2938
  content: "";
2155
2939
  position: absolute;
@@ -2233,6 +3017,36 @@
2233
3017
  .mt-editor[data-mode=crop] .mt-picture {
2234
3018
  overflow: visible;
2235
3019
  }
3020
+ .mt-editor[data-mode=crop] .mt-editor-content {
3021
+ container-type: inline-size;
3022
+ }
3023
+ .mt-editor[data-mode=crop] .mt-player:not(:fullscreen) {
3024
+ height: 56.25cqw;
3025
+ }
3026
+ .mt-editor[data-mode=crop] .mt-player > .vx-playback-controls {
3027
+ flex: 0 0 44px;
3028
+ width: 100%;
3029
+ }
3030
+ .mt-editor[data-mode=crop] .vx-segment {
3031
+ background: var(--vx-surface-input);
3032
+ scrollbar-width: none;
3033
+ }
3034
+ .mt-editor[data-mode=crop] .vx-segment > label {
3035
+ flex: 1 0 0;
3036
+ min-width: 0;
3037
+ }
3038
+ .mt-editor[data-mode=crop] .vx-segment-item {
3039
+ min-width: max-content;
3040
+ padding-inline: 6px;
3041
+ }
3042
+ .mt-editor .mt-editor-confirm .vx-button {
3043
+ font: var(--vx-typography-inter-16-medium);
3044
+ }
3045
+ @media (max-width: 560px) {
3046
+ .mt-editor[data-mode=crop] .vx-segment > label {
3047
+ flex: 1 0 auto;
3048
+ }
3049
+ }
2236
3050
  .mt-crop-shade {
2237
3051
  position: absolute;
2238
3052
  inset: 0;
@@ -2302,7 +3116,7 @@
2302
3116
  box-sizing: border-box;
2303
3117
  background: var(--vx-text-on-content-primary);
2304
3118
  border: 0.64px solid var(--vx-text-secondary);
2305
- border-radius: 0;
3119
+ border-radius: 50%;
2306
3120
  }
2307
3121
  .mt-crop-handle[data-corner=nw] {
2308
3122
  left: -14px;
@@ -2342,11 +3156,14 @@
2342
3156
  width: 100%;
2343
3157
  box-sizing: border-box;
2344
3158
  padding: 8px 10px;
2345
- border: 1px solid var(--vx-border-secondary);
3159
+ border: 0;
2346
3160
  border-radius: 6px;
2347
3161
  background: var(--vx-background-dialog);
2348
3162
  color: inherit;
2349
3163
  }
3164
+ .mt-fields select {
3165
+ border: 1px solid var(--vx-border-secondary);
3166
+ }
2350
3167
  .mt-root .mt-subtitle,
2351
3168
  .mt-root .mt-help {
2352
3169
  line-height: 1.5;
@@ -2379,7 +3196,7 @@
2379
3196
  display: grid;
2380
3197
  grid-template-rows: auto auto auto auto;
2381
3198
  column-gap: 16px;
2382
- overflow-x: auto;
3199
+ overflow-x: scroll;
2383
3200
  padding-bottom: 8px;
2384
3201
  }
2385
3202
  .mt-compare-column {
@@ -2405,7 +3222,7 @@
2405
3222
  min-width: 0;
2406
3223
  overflow: hidden;
2407
3224
  border-radius: 12px;
2408
- background: var(--vx-surface-input);
3225
+ background: var(--vx-cover-background);
2409
3226
  }
2410
3227
  .mt-compare-preview :is(.mt-player, .vx-video-player) {
2411
3228
  height: 100%;
@@ -2420,17 +3237,10 @@
2420
3237
  background: transparent;
2421
3238
  }
2422
3239
  .mt-compare-preview .vx-video-cover {
2423
- background: linear-gradient(transparent 45%, #0009);
2424
3240
  align-items: end;
2425
3241
  justify-items: end;
2426
3242
  padding: 20px;
2427
3243
  }
2428
- .mt-compare-preview .vx-video-cover > div {
2429
- display: block;
2430
- inset: auto 64px 20px 20px;
2431
- font-size: 16px;
2432
- line-height: 24px;
2433
- }
2434
3244
  .mt-compare-preview .vx-video-cover > button {
2435
3245
  background: var(--vx-white-white);
2436
3246
  color: var(--vx-black-black);
@@ -2506,6 +3316,9 @@
2506
3316
  flex-wrap: wrap;
2507
3317
  align-items: center;
2508
3318
  }
3319
+ .mt-compare-preview .mt-empty {
3320
+ color: var(--vx-text-on-content-secondary);
3321
+ }
2509
3322
  .mt-empty {
2510
3323
  padding: 30px 16px;
2511
3324
  text-align: center;
@@ -2575,3 +3388,125 @@
2575
3388
  flex: 1 0 auto;
2576
3389
  }
2577
3390
  }
3391
+
3392
+ /* packages/media-tools/src/ui/export-dialog.css */
3393
+ .vx-dialog.mt-export-dialog {
3394
+ box-sizing: border-box;
3395
+ width: min(1080px, calc(100% - 32px));
3396
+ max-width: none;
3397
+ max-height: calc(100dvh - 32px);
3398
+ padding: 24px;
3399
+ border: 1px solid var(--vx-surface-input);
3400
+ border-radius: 16px;
3401
+ box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
3402
+ overflow: auto;
3403
+ }
3404
+ .vx-dialog.mt-export-dialog > header,
3405
+ .vx-dialog.mt-export-dialog > .vx-dialog-body,
3406
+ .vx-dialog.mt-export-dialog > footer {
3407
+ padding: 0;
3408
+ }
3409
+ .vx-dialog.mt-export-dialog > header {
3410
+ min-height: 23px;
3411
+ margin-bottom: 24px;
3412
+ }
3413
+ .vx-dialog.mt-export-dialog > header h2 {
3414
+ font: var(--vx-typography-inter-18-semi-bold);
3415
+ }
3416
+ .vx-dialog.mt-export-dialog > header .vx-button {
3417
+ position: absolute;
3418
+ top: 15px;
3419
+ right: 15px;
3420
+ }
3421
+ .vx-dialog.mt-export-dialog > footer {
3422
+ margin-top: 24px;
3423
+ padding-top: 24px;
3424
+ border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
3425
+ }
3426
+ .vx-dialog.mt-export-dialog > footer .vx-button {
3427
+ height: 44px;
3428
+ padding-inline: 24px;
3429
+ border-radius: 8px;
3430
+ font: var(--vx-typography-inter-16-semi-bold);
3431
+ }
3432
+ .mt-export-layout {
3433
+ display: grid;
3434
+ grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
3435
+ align-items: start;
3436
+ gap: 24px;
3437
+ }
3438
+ .mt-export-options {
3439
+ min-width: 0;
3440
+ display: grid;
3441
+ gap: 16px;
3442
+ font: var(--vx-typography-inter-14-regular);
3443
+ }
3444
+ .mt-export-options .vx-field,
3445
+ .mt-export-options dl > div {
3446
+ display: grid;
3447
+ gap: 4px;
3448
+ color: var(--vx-text-secondary);
3449
+ }
3450
+ .mt-export-options .vx-field {
3451
+ padding-bottom: 16px;
3452
+ border-bottom: var(--vx-divider-width) solid var(--vx-border-secondary);
3453
+ }
3454
+ .mt-export-options .vx-field input,
3455
+ .mt-export-options dd {
3456
+ box-sizing: border-box;
3457
+ width: 100%;
3458
+ padding: 7px 12px;
3459
+ margin: 0;
3460
+ border: 0;
3461
+ border-radius: 6px;
3462
+ background: var(--vx-surface-input);
3463
+ color: var(--vx-text-primary);
3464
+ font: inherit;
3465
+ }
3466
+ .mt-export-options dl {
3467
+ display: grid;
3468
+ grid-template-columns: repeat(2, minmax(0, 1fr));
3469
+ gap: 16px 8px;
3470
+ margin: 0;
3471
+ }
3472
+ .mt-export-options dl > div:first-child,
3473
+ .mt-export-options dl > div:last-child {
3474
+ grid-column: 1/-1;
3475
+ }
3476
+ .mt-export-options dl > div:last-child {
3477
+ border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
3478
+ padding-top: 16px;
3479
+ }
3480
+ .mt-export-status {
3481
+ display: flex;
3482
+ align-items: center;
3483
+ flex-wrap: wrap;
3484
+ gap: 8px;
3485
+ }
3486
+ .mt-export-error {
3487
+ margin: 0;
3488
+ color: var(--vx-state-danger);
3489
+ overflow-wrap: anywhere;
3490
+ }
3491
+ @media (max-width: 760px) {
3492
+ .vx-dialog.mt-export-dialog {
3493
+ padding: 16px;
3494
+ }
3495
+ .mt-export-layout {
3496
+ grid-template-columns: minmax(0, 1fr);
3497
+ gap: 16px;
3498
+ }
3499
+ }
3500
+ .mt-export-preview {
3501
+ min-width: 0;
3502
+ }
3503
+ .mt-export-status {
3504
+ display: flex;
3505
+ flex-wrap: wrap;
3506
+ gap: 8px;
3507
+ align-items: end;
3508
+ margin-top: 12px;
3509
+ }
3510
+ .mt-export-notice {
3511
+ margin: 8px 0 0;
3512
+ }