@gallop.software/studio 0.1.39 → 0.1.41
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/{StudioUI-RHBJ6LVY.mjs → StudioUI-ENDN62RA.mjs} +323 -51
- package/dist/StudioUI-ENDN62RA.mjs.map +1 -0
- package/dist/{StudioUI-V4IRLVOZ.js → StudioUI-G37N5ORG.js} +559 -287
- package/dist/StudioUI-G37N5ORG.js.map +1 -0
- package/dist/{chunk-DIJR5Y6S.mjs → chunk-HXE6XCG2.mjs} +5 -5
- package/dist/{chunk-DIJR5Y6S.mjs.map → chunk-HXE6XCG2.mjs.map} +1 -1
- package/dist/{chunk-ZLL7JHVC.js → chunk-UFCWGUAG.js} +5 -5
- package/dist/{chunk-ZLL7JHVC.js.map → chunk-UFCWGUAG.js.map} +1 -1
- package/dist/index.js +15 -15
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/StudioUI-RHBJ6LVY.mjs.map +0 -1
- package/dist/StudioUI-V4IRLVOZ.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUFCWGUAGjs = require('./chunk-UFCWGUAG.js');
|
|
8
8
|
|
|
9
9
|
// src/components/StudioUI.tsx
|
|
10
10
|
var _react = require('react');
|
|
@@ -91,11 +91,11 @@ var styles = {
|
|
|
91
91
|
justify-content: center;
|
|
92
92
|
z-index: 10000;
|
|
93
93
|
animation: ${fadeIn} 0.15s ease-out;
|
|
94
|
-
font-family: ${
|
|
94
|
+
font-family: ${_chunkUFCWGUAGjs.fontStack};
|
|
95
95
|
`,
|
|
96
96
|
modal: _react3.css`
|
|
97
|
-
${
|
|
98
|
-
background-color: ${
|
|
97
|
+
${_chunkUFCWGUAGjs.baseReset}
|
|
98
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
99
99
|
border-radius: 12px;
|
|
100
100
|
box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
|
|
101
101
|
max-width: 420px;
|
|
@@ -107,9 +107,9 @@ var styles = {
|
|
|
107
107
|
padding: 24px 24px 0;
|
|
108
108
|
`,
|
|
109
109
|
title: _react3.css`
|
|
110
|
-
font-size: ${
|
|
110
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.lg};
|
|
111
111
|
font-weight: 600;
|
|
112
|
-
color: ${
|
|
112
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
113
113
|
margin: 0;
|
|
114
114
|
letter-spacing: -0.02em;
|
|
115
115
|
`,
|
|
@@ -117,8 +117,8 @@ var styles = {
|
|
|
117
117
|
padding: 12px 24px 24px;
|
|
118
118
|
`,
|
|
119
119
|
message: _react3.css`
|
|
120
|
-
font-size: ${
|
|
121
|
-
color: ${
|
|
120
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
121
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
122
122
|
margin: 0;
|
|
123
123
|
line-height: 1.6;
|
|
124
124
|
`,
|
|
@@ -127,12 +127,12 @@ var styles = {
|
|
|
127
127
|
justify-content: flex-end;
|
|
128
128
|
gap: 12px;
|
|
129
129
|
padding: 16px 24px;
|
|
130
|
-
border-top: 1px solid ${
|
|
131
|
-
background-color: ${
|
|
130
|
+
border-top: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
131
|
+
background-color: ${_chunkUFCWGUAGjs.colors.background};
|
|
132
132
|
`,
|
|
133
133
|
btn: _react3.css`
|
|
134
134
|
padding: 10px 18px;
|
|
135
|
-
font-size: ${
|
|
135
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
136
136
|
font-weight: 500;
|
|
137
137
|
border-radius: 6px;
|
|
138
138
|
cursor: pointer;
|
|
@@ -140,33 +140,33 @@ var styles = {
|
|
|
140
140
|
letter-spacing: -0.01em;
|
|
141
141
|
`,
|
|
142
142
|
btnCancel: _react3.css`
|
|
143
|
-
background-color: ${
|
|
144
|
-
border: 1px solid ${
|
|
145
|
-
color: ${
|
|
143
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
144
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
145
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
146
146
|
|
|
147
147
|
&:hover {
|
|
148
|
-
background-color: ${
|
|
149
|
-
border-color: ${
|
|
148
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
149
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
150
150
|
}
|
|
151
151
|
`,
|
|
152
152
|
btnConfirm: _react3.css`
|
|
153
|
-
background-color: ${
|
|
154
|
-
border: 1px solid ${
|
|
153
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
154
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.primary};
|
|
155
155
|
color: white;
|
|
156
156
|
|
|
157
157
|
&:hover {
|
|
158
|
-
background-color: ${
|
|
159
|
-
border-color: ${
|
|
158
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
159
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
160
160
|
}
|
|
161
161
|
`,
|
|
162
162
|
btnDanger: _react3.css`
|
|
163
|
-
background-color: ${
|
|
164
|
-
border: 1px solid ${
|
|
163
|
+
background-color: ${_chunkUFCWGUAGjs.colors.danger};
|
|
164
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.danger};
|
|
165
165
|
color: white;
|
|
166
166
|
|
|
167
167
|
&:hover {
|
|
168
|
-
background-color: ${
|
|
169
|
-
border-color: ${
|
|
168
|
+
background-color: ${_chunkUFCWGUAGjs.colors.dangerHover};
|
|
169
|
+
border-color: ${_chunkUFCWGUAGjs.colors.dangerHover};
|
|
170
170
|
}
|
|
171
171
|
`
|
|
172
172
|
};
|
|
@@ -214,28 +214,28 @@ var progressStyles = {
|
|
|
214
214
|
progressBar: _react3.css`
|
|
215
215
|
width: 100%;
|
|
216
216
|
height: 8px;
|
|
217
|
-
background-color: ${
|
|
217
|
+
background-color: ${_chunkUFCWGUAGjs.colors.background};
|
|
218
218
|
border-radius: 4px;
|
|
219
219
|
overflow: hidden;
|
|
220
220
|
margin-bottom: 12px;
|
|
221
221
|
`,
|
|
222
222
|
progressFill: _react3.css`
|
|
223
223
|
height: 100%;
|
|
224
|
-
background: linear-gradient(90deg, ${
|
|
224
|
+
background: linear-gradient(90deg, ${_chunkUFCWGUAGjs.colors.primary}, ${_chunkUFCWGUAGjs.colors.primaryHover});
|
|
225
225
|
border-radius: 4px;
|
|
226
226
|
transition: width 0.3s ease;
|
|
227
227
|
`,
|
|
228
228
|
progressText: _react3.css`
|
|
229
|
-
font-size: ${
|
|
230
|
-
color: ${
|
|
229
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
230
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
231
231
|
margin: 0;
|
|
232
232
|
display: flex;
|
|
233
233
|
justify-content: space-between;
|
|
234
234
|
align-items: center;
|
|
235
235
|
`,
|
|
236
236
|
currentFile: _react3.css`
|
|
237
|
-
font-size: ${
|
|
238
|
-
color: ${
|
|
237
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
238
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
239
239
|
margin: 8px 0 0;
|
|
240
240
|
white-space: nowrap;
|
|
241
241
|
overflow: hidden;
|
|
@@ -321,13 +321,15 @@ var spin = _react3.keyframes`
|
|
|
321
321
|
var styles2 = {
|
|
322
322
|
toolbar: _react3.css`
|
|
323
323
|
display: flex;
|
|
324
|
-
flex-wrap:
|
|
324
|
+
flex-wrap: nowrap;
|
|
325
325
|
align-items: center;
|
|
326
326
|
justify-content: space-between;
|
|
327
327
|
gap: 8px;
|
|
328
328
|
padding: 12px 16px;
|
|
329
|
-
background-color: ${
|
|
330
|
-
border-bottom: 1px solid ${
|
|
329
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
330
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
331
|
+
overflow-x: auto;
|
|
332
|
+
min-width: 0;
|
|
331
333
|
|
|
332
334
|
@media (min-width: 768px) {
|
|
333
335
|
padding: 12px 24px;
|
|
@@ -335,13 +337,15 @@ var styles2 = {
|
|
|
335
337
|
`,
|
|
336
338
|
left: _react3.css`
|
|
337
339
|
display: flex;
|
|
338
|
-
flex-wrap:
|
|
340
|
+
flex-wrap: nowrap;
|
|
341
|
+
flex-shrink: 0;
|
|
339
342
|
align-items: center;
|
|
340
343
|
gap: 8px;
|
|
341
344
|
`,
|
|
342
345
|
right: _react3.css`
|
|
343
346
|
display: flex;
|
|
344
|
-
flex-wrap:
|
|
347
|
+
flex-wrap: nowrap;
|
|
348
|
+
flex-shrink: 0;
|
|
345
349
|
align-items: center;
|
|
346
350
|
gap: 8px;
|
|
347
351
|
`,
|
|
@@ -353,18 +357,18 @@ var styles2 = {
|
|
|
353
357
|
height: ${btnHeight};
|
|
354
358
|
padding: 0 14px;
|
|
355
359
|
border-radius: 6px;
|
|
356
|
-
font-size: ${
|
|
360
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
357
361
|
font-weight: 500;
|
|
358
|
-
background: ${
|
|
359
|
-
border: 1px solid ${
|
|
362
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
363
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
360
364
|
cursor: pointer;
|
|
361
365
|
transition: all 0.15s ease;
|
|
362
|
-
color: ${
|
|
366
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
363
367
|
letter-spacing: -0.01em;
|
|
364
368
|
|
|
365
369
|
&:hover:not(:disabled) {
|
|
366
|
-
background-color: ${
|
|
367
|
-
border-color: ${
|
|
370
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
371
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
368
372
|
}
|
|
369
373
|
|
|
370
374
|
&:disabled {
|
|
@@ -376,21 +380,21 @@ var styles2 = {
|
|
|
376
380
|
padding: 0 10px;
|
|
377
381
|
`,
|
|
378
382
|
btnPrimary: _react3.css`
|
|
379
|
-
background: ${
|
|
380
|
-
border-color: ${
|
|
383
|
+
background: ${_chunkUFCWGUAGjs.colors.primary};
|
|
384
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
381
385
|
color: white;
|
|
382
386
|
|
|
383
387
|
&:hover:not(:disabled) {
|
|
384
|
-
background: ${
|
|
385
|
-
border-color: ${
|
|
388
|
+
background: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
389
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
386
390
|
}
|
|
387
391
|
`,
|
|
388
392
|
btnDanger: _react3.css`
|
|
389
|
-
color: ${
|
|
393
|
+
color: ${_chunkUFCWGUAGjs.colors.danger};
|
|
390
394
|
|
|
391
395
|
&:hover:not(:disabled) {
|
|
392
|
-
background-color: ${
|
|
393
|
-
border-color: ${
|
|
396
|
+
background-color: ${_chunkUFCWGUAGjs.colors.dangerLight};
|
|
397
|
+
border-color: ${_chunkUFCWGUAGjs.colors.danger};
|
|
394
398
|
}
|
|
395
399
|
`,
|
|
396
400
|
icon: _react3.css`
|
|
@@ -401,19 +405,19 @@ var styles2 = {
|
|
|
401
405
|
animation: ${spin} 1s linear infinite;
|
|
402
406
|
`,
|
|
403
407
|
selectionCount: _react3.css`
|
|
404
|
-
font-size: ${
|
|
405
|
-
color: ${
|
|
408
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
409
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
406
410
|
display: flex;
|
|
407
411
|
align-items: center;
|
|
408
412
|
gap: 8px;
|
|
409
413
|
margin-right: 8px;
|
|
410
414
|
`,
|
|
411
415
|
clearBtn: _react3.css`
|
|
412
|
-
color: ${
|
|
416
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
413
417
|
background: none;
|
|
414
418
|
border: none;
|
|
415
419
|
cursor: pointer;
|
|
416
|
-
font-size: ${
|
|
420
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
417
421
|
font-weight: 500;
|
|
418
422
|
padding: 0;
|
|
419
423
|
|
|
@@ -424,37 +428,37 @@ var styles2 = {
|
|
|
424
428
|
divider: _react3.css`
|
|
425
429
|
width: 1px;
|
|
426
430
|
height: 24px;
|
|
427
|
-
background: ${
|
|
431
|
+
background: ${_chunkUFCWGUAGjs.colors.border};
|
|
428
432
|
margin: 0 4px;
|
|
429
433
|
`,
|
|
430
434
|
viewToggle: _react3.css`
|
|
431
435
|
display: flex;
|
|
432
436
|
align-items: center;
|
|
433
437
|
height: ${btnHeight};
|
|
434
|
-
background-color: ${
|
|
435
|
-
border: 1px solid ${
|
|
438
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
439
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
436
440
|
border-radius: 6px;
|
|
437
441
|
overflow: hidden;
|
|
438
442
|
`,
|
|
439
443
|
searchInput: _react3.css`
|
|
440
444
|
height: ${btnHeight};
|
|
441
445
|
padding: 0 12px;
|
|
442
|
-
border: 1px solid ${
|
|
446
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
443
447
|
border-radius: 6px;
|
|
444
|
-
font-size: ${
|
|
445
|
-
background: ${
|
|
446
|
-
color: ${
|
|
448
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
449
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
450
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
447
451
|
width: 180px;
|
|
448
452
|
transition: all 0.15s ease;
|
|
449
453
|
|
|
450
454
|
&:focus {
|
|
451
455
|
outline: none;
|
|
452
|
-
border-color: ${
|
|
453
|
-
box-shadow: 0 0 0 2px ${
|
|
456
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
457
|
+
box-shadow: 0 0 0 2px ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
454
458
|
}
|
|
455
459
|
|
|
456
460
|
&::placeholder {
|
|
457
|
-
color: ${
|
|
461
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
458
462
|
}
|
|
459
463
|
`,
|
|
460
464
|
viewBtn: _react3.css`
|
|
@@ -463,20 +467,25 @@ var styles2 = {
|
|
|
463
467
|
background: transparent;
|
|
464
468
|
border: none;
|
|
465
469
|
cursor: pointer;
|
|
466
|
-
color: ${
|
|
470
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
467
471
|
transition: all 0.15s ease;
|
|
468
472
|
display: flex;
|
|
469
473
|
align-items: center;
|
|
470
474
|
justify-content: center;
|
|
471
475
|
|
|
472
476
|
&:hover {
|
|
473
|
-
color: ${
|
|
474
|
-
background-color: ${
|
|
477
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
478
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
475
479
|
}
|
|
476
480
|
`,
|
|
477
481
|
viewBtnActive: _react3.css`
|
|
478
|
-
background-color: ${
|
|
479
|
-
color: ${
|
|
482
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
483
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
484
|
+
|
|
485
|
+
&:hover {
|
|
486
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
487
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
488
|
+
}
|
|
480
489
|
`
|
|
481
490
|
};
|
|
482
491
|
function StudioToolbar() {
|
|
@@ -803,6 +812,9 @@ function StudioToolbar() {
|
|
|
803
812
|
setSearchQuery(e.target.value);
|
|
804
813
|
}, [setSearchQuery]);
|
|
805
814
|
const hasSelection = selectedItems.size > 0;
|
|
815
|
+
const hasImagesSelected = Array.from(selectedItems).some(
|
|
816
|
+
(path) => path === "public/images" || path.startsWith("public/images/")
|
|
817
|
+
);
|
|
806
818
|
if (focusedItem) {
|
|
807
819
|
return null;
|
|
808
820
|
}
|
|
@@ -884,8 +896,8 @@ function StudioToolbar() {
|
|
|
884
896
|
{
|
|
885
897
|
css: styles2.btn,
|
|
886
898
|
onClick: handleProcessImages,
|
|
887
|
-
disabled: processing || isInImagesFolder,
|
|
888
|
-
title: isInImagesFolder ? "Cannot process
|
|
899
|
+
disabled: processing || isInImagesFolder || hasImagesSelected,
|
|
900
|
+
title: isInImagesFolder || hasImagesSelected ? "Cannot process protected images folder" : void 0,
|
|
889
901
|
children: [
|
|
890
902
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ImageStackIcon, {}),
|
|
891
903
|
processing ? "Processing..." : "Process Images"
|
|
@@ -897,7 +909,8 @@ function StudioToolbar() {
|
|
|
897
909
|
{
|
|
898
910
|
css: [styles2.btn, styles2.btnDanger],
|
|
899
911
|
onClick: handleDeleteClick,
|
|
900
|
-
disabled: !hasSelection,
|
|
912
|
+
disabled: !hasSelection || hasImagesSelected,
|
|
913
|
+
title: hasImagesSelected ? "Cannot delete protected images folder items" : void 0,
|
|
901
914
|
children: [
|
|
902
915
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrashIcon, {}),
|
|
903
916
|
"Delete"
|
|
@@ -1005,8 +1018,8 @@ var styles3 = {
|
|
|
1005
1018
|
width: 32px;
|
|
1006
1019
|
height: 32px;
|
|
1007
1020
|
border-radius: 50%;
|
|
1008
|
-
border: 3px solid ${
|
|
1009
|
-
border-top-color: ${
|
|
1021
|
+
border: 3px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1022
|
+
border-top-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1010
1023
|
animation: ${spin2} 0.8s linear infinite;
|
|
1011
1024
|
`,
|
|
1012
1025
|
empty: _react3.css`
|
|
@@ -1015,7 +1028,7 @@ var styles3 = {
|
|
|
1015
1028
|
align-items: center;
|
|
1016
1029
|
justify-content: center;
|
|
1017
1030
|
height: 256px;
|
|
1018
|
-
color: ${
|
|
1031
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1019
1032
|
`,
|
|
1020
1033
|
emptyIcon: _react3.css`
|
|
1021
1034
|
width: 48px;
|
|
@@ -1024,32 +1037,32 @@ var styles3 = {
|
|
|
1024
1037
|
opacity: 0.5;
|
|
1025
1038
|
`,
|
|
1026
1039
|
emptyText: _react3.css`
|
|
1027
|
-
font-size: ${
|
|
1040
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
1028
1041
|
margin: 0 0 4px 0;
|
|
1029
1042
|
|
|
1030
1043
|
&:last-child {
|
|
1031
|
-
color: ${
|
|
1032
|
-
font-size: ${
|
|
1044
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1045
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
1033
1046
|
}
|
|
1034
1047
|
`,
|
|
1035
1048
|
grid: _react3.css`
|
|
1036
1049
|
display: grid;
|
|
1037
|
-
grid-template-columns:
|
|
1050
|
+
grid-template-columns: 1fr;
|
|
1038
1051
|
gap: 12px;
|
|
1039
1052
|
|
|
1040
|
-
@media (min-width:
|
|
1041
|
-
@media (min-width: 768px) { grid-template-columns: repeat(
|
|
1042
|
-
@media (min-width: 1024px) { grid-template-columns: repeat(
|
|
1043
|
-
@media (min-width: 1280px) { grid-template-columns: repeat(
|
|
1053
|
+
@media (min-width: 480px) { grid-template-columns: repeat(2, 1fr); }
|
|
1054
|
+
@media (min-width: 768px) { grid-template-columns: repeat(3, 1fr); }
|
|
1055
|
+
@media (min-width: 1024px) { grid-template-columns: repeat(4, 1fr); }
|
|
1056
|
+
@media (min-width: 1280px) { grid-template-columns: repeat(5, 1fr); }
|
|
1044
1057
|
`,
|
|
1045
1058
|
item: _react3.css`
|
|
1046
1059
|
position: relative;
|
|
1047
1060
|
border-radius: 8px;
|
|
1048
|
-
border: 1px solid ${
|
|
1061
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1049
1062
|
overflow: hidden;
|
|
1050
1063
|
cursor: pointer;
|
|
1051
1064
|
transition: all 0.15s ease;
|
|
1052
|
-
background-color: ${
|
|
1065
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1053
1066
|
user-select: none;
|
|
1054
1067
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
1055
1068
|
|
|
@@ -1059,18 +1072,18 @@ var styles3 = {
|
|
|
1059
1072
|
}
|
|
1060
1073
|
`,
|
|
1061
1074
|
itemSelected: _react3.css`
|
|
1062
|
-
border-color: ${
|
|
1063
|
-
box-shadow: 0 0 0 1px ${
|
|
1075
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1076
|
+
box-shadow: 0 0 0 1px ${_chunkUFCWGUAGjs.colors.primary};
|
|
1064
1077
|
|
|
1065
1078
|
&:hover {
|
|
1066
|
-
border-color: ${
|
|
1079
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1067
1080
|
}
|
|
1068
1081
|
`,
|
|
1069
1082
|
parentItem: _react3.css`
|
|
1070
1083
|
cursor: pointer;
|
|
1071
1084
|
|
|
1072
1085
|
&:hover {
|
|
1073
|
-
border-color: ${
|
|
1086
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1074
1087
|
}
|
|
1075
1088
|
`,
|
|
1076
1089
|
checkboxWrapper: _react3.css`
|
|
@@ -1084,7 +1097,7 @@ var styles3 = {
|
|
|
1084
1097
|
checkbox: _react3.css`
|
|
1085
1098
|
width: 16px;
|
|
1086
1099
|
height: 16px;
|
|
1087
|
-
accent-color: ${
|
|
1100
|
+
accent-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1088
1101
|
cursor: pointer;
|
|
1089
1102
|
`,
|
|
1090
1103
|
cdnBadge: _react3.css`
|
|
@@ -1092,8 +1105,8 @@ var styles3 = {
|
|
|
1092
1105
|
top: 8px;
|
|
1093
1106
|
right: 8px;
|
|
1094
1107
|
z-index: 10;
|
|
1095
|
-
background-color: ${
|
|
1096
|
-
color: ${
|
|
1108
|
+
background-color: ${_chunkUFCWGUAGjs.colors.successLight};
|
|
1109
|
+
color: ${_chunkUFCWGUAGjs.colors.success};
|
|
1097
1110
|
font-size: 11px;
|
|
1098
1111
|
font-weight: 500;
|
|
1099
1112
|
padding: 2px 8px;
|
|
@@ -1105,7 +1118,7 @@ var styles3 = {
|
|
|
1105
1118
|
align-items: center;
|
|
1106
1119
|
justify-content: center;
|
|
1107
1120
|
padding: 16px;
|
|
1108
|
-
background: ${
|
|
1121
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
1109
1122
|
`,
|
|
1110
1123
|
folderIcon: _react3.css`
|
|
1111
1124
|
width: 56px;
|
|
@@ -1115,7 +1128,7 @@ var styles3 = {
|
|
|
1115
1128
|
imagesFolderIcon: _react3.css`
|
|
1116
1129
|
width: 56px;
|
|
1117
1130
|
height: 56px;
|
|
1118
|
-
color: ${
|
|
1131
|
+
color: ${_chunkUFCWGUAGjs.colors.imagesFolder};
|
|
1119
1132
|
`,
|
|
1120
1133
|
imagesFolderWrapper: _react3.css`
|
|
1121
1134
|
position: relative;
|
|
@@ -1126,7 +1139,7 @@ var styles3 = {
|
|
|
1126
1139
|
right: 4px;
|
|
1127
1140
|
width: 16px;
|
|
1128
1141
|
height: 16px;
|
|
1129
|
-
color: ${
|
|
1142
|
+
color: ${_chunkUFCWGUAGjs.colors.imagesFolder};
|
|
1130
1143
|
background: white;
|
|
1131
1144
|
border-radius: 50%;
|
|
1132
1145
|
padding: 2px;
|
|
@@ -1134,12 +1147,12 @@ var styles3 = {
|
|
|
1134
1147
|
parentIcon: _react3.css`
|
|
1135
1148
|
width: 56px;
|
|
1136
1149
|
height: 56px;
|
|
1137
|
-
color: ${
|
|
1150
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1138
1151
|
`,
|
|
1139
1152
|
fileIcon: _react3.css`
|
|
1140
1153
|
width: 40px;
|
|
1141
1154
|
height: 40px;
|
|
1142
|
-
color: ${
|
|
1155
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1143
1156
|
`,
|
|
1144
1157
|
image: _react3.css`
|
|
1145
1158
|
max-width: 100%;
|
|
@@ -1154,8 +1167,8 @@ var styles3 = {
|
|
|
1154
1167
|
justify-content: center;
|
|
1155
1168
|
gap: 8px;
|
|
1156
1169
|
padding: 16px;
|
|
1157
|
-
background: ${
|
|
1158
|
-
border: 2px dashed ${
|
|
1170
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
1171
|
+
border: 2px dashed ${_chunkUFCWGUAGjs.colors.border};
|
|
1159
1172
|
border-radius: 8px;
|
|
1160
1173
|
cursor: pointer;
|
|
1161
1174
|
transition: all 0.15s ease;
|
|
@@ -1163,39 +1176,94 @@ var styles3 = {
|
|
|
1163
1176
|
height: 60%;
|
|
1164
1177
|
|
|
1165
1178
|
&:hover {
|
|
1166
|
-
border-color: ${
|
|
1167
|
-
background: ${
|
|
1179
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1180
|
+
background: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1168
1181
|
}
|
|
1169
1182
|
`,
|
|
1170
1183
|
noThumbnailIcon: _react3.css`
|
|
1171
1184
|
width: 32px;
|
|
1172
1185
|
height: 32px;
|
|
1173
|
-
color: ${
|
|
1186
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1174
1187
|
`,
|
|
1175
1188
|
noThumbnailText: _react3.css`
|
|
1176
|
-
font-size: ${
|
|
1177
|
-
color: ${
|
|
1189
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1190
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1178
1191
|
text-align: center;
|
|
1179
1192
|
`,
|
|
1180
1193
|
label: _react3.css`
|
|
1181
1194
|
padding: 10px 12px;
|
|
1182
|
-
background-color: ${
|
|
1183
|
-
border-top: 1px solid ${
|
|
1195
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1196
|
+
border-top: 1px solid ${_chunkUFCWGUAGjs.colors.borderLight};
|
|
1184
1197
|
`,
|
|
1185
1198
|
labelRow: _react3.css`
|
|
1186
1199
|
display: flex;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
gap: 8px;
|
|
1200
|
+
flex-direction: column;
|
|
1201
|
+
gap: 6px;
|
|
1190
1202
|
`,
|
|
1191
1203
|
labelText: _react3.css`
|
|
1192
1204
|
flex: 1;
|
|
1193
1205
|
min-width: 0;
|
|
1194
1206
|
`,
|
|
1207
|
+
buttonRow: _react3.css`
|
|
1208
|
+
display: flex;
|
|
1209
|
+
gap: 6px;
|
|
1210
|
+
`,
|
|
1211
|
+
copyBtn: _react3.css`
|
|
1212
|
+
position: relative;
|
|
1213
|
+
flex-shrink: 0;
|
|
1214
|
+
height: 28px;
|
|
1215
|
+
width: 28px;
|
|
1216
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1217
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1218
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1219
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1220
|
+
padding: 0;
|
|
1221
|
+
cursor: pointer;
|
|
1222
|
+
border-radius: 4px;
|
|
1223
|
+
transition: all 0.15s ease;
|
|
1224
|
+
display: inline-flex;
|
|
1225
|
+
align-items: center;
|
|
1226
|
+
justify-content: center;
|
|
1227
|
+
|
|
1228
|
+
&:hover {
|
|
1229
|
+
background: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1230
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
1231
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
1232
|
+
}
|
|
1233
|
+
`,
|
|
1234
|
+
copyIcon: _react3.css`
|
|
1235
|
+
width: 14px;
|
|
1236
|
+
height: 14px;
|
|
1237
|
+
`,
|
|
1238
|
+
tooltip: _react3.css`
|
|
1239
|
+
position: absolute;
|
|
1240
|
+
bottom: 100%;
|
|
1241
|
+
left: 50%;
|
|
1242
|
+
transform: translateX(-50%);
|
|
1243
|
+
background: #1a1f36;
|
|
1244
|
+
color: white;
|
|
1245
|
+
padding: 4px 8px;
|
|
1246
|
+
border-radius: 4px;
|
|
1247
|
+
font-size: 12px;
|
|
1248
|
+
white-space: nowrap;
|
|
1249
|
+
margin-bottom: 6px;
|
|
1250
|
+
pointer-events: none;
|
|
1251
|
+
z-index: 100;
|
|
1252
|
+
|
|
1253
|
+
&::after {
|
|
1254
|
+
content: '';
|
|
1255
|
+
position: absolute;
|
|
1256
|
+
top: 100%;
|
|
1257
|
+
left: 50%;
|
|
1258
|
+
transform: translateX(-50%);
|
|
1259
|
+
border: 4px solid transparent;
|
|
1260
|
+
border-top-color: #1a1f36;
|
|
1261
|
+
}
|
|
1262
|
+
`,
|
|
1195
1263
|
name: _react3.css`
|
|
1196
|
-
font-size: ${
|
|
1264
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
1197
1265
|
font-weight: 500;
|
|
1198
|
-
color: ${
|
|
1266
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
1199
1267
|
white-space: nowrap;
|
|
1200
1268
|
overflow: hidden;
|
|
1201
1269
|
text-overflow: ellipsis;
|
|
@@ -1203,18 +1271,18 @@ var styles3 = {
|
|
|
1203
1271
|
letter-spacing: -0.01em;
|
|
1204
1272
|
`,
|
|
1205
1273
|
size: _react3.css`
|
|
1206
|
-
font-size: ${
|
|
1207
|
-
color: ${
|
|
1274
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1275
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1208
1276
|
margin: 2px 0 0 0;
|
|
1209
1277
|
`,
|
|
1210
1278
|
openBtn: _react3.css`
|
|
1211
1279
|
flex-shrink: 0;
|
|
1212
1280
|
height: 28px;
|
|
1213
|
-
font-size: ${
|
|
1281
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1214
1282
|
font-weight: 500;
|
|
1215
|
-
color: ${
|
|
1216
|
-
background: ${
|
|
1217
|
-
border: 1px solid ${
|
|
1283
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1284
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1285
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1218
1286
|
padding: 0 10px;
|
|
1219
1287
|
cursor: pointer;
|
|
1220
1288
|
border-radius: 4px;
|
|
@@ -1223,8 +1291,8 @@ var styles3 = {
|
|
|
1223
1291
|
align-items: center;
|
|
1224
1292
|
|
|
1225
1293
|
&:hover {
|
|
1226
|
-
background-color: ${
|
|
1227
|
-
border-color: ${
|
|
1294
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
1295
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1228
1296
|
}
|
|
1229
1297
|
`,
|
|
1230
1298
|
selectAllRow: _react3.css`
|
|
@@ -1232,27 +1300,27 @@ var styles3 = {
|
|
|
1232
1300
|
align-items: center;
|
|
1233
1301
|
margin-bottom: 16px;
|
|
1234
1302
|
padding: 12px 16px;
|
|
1235
|
-
background: ${
|
|
1303
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1236
1304
|
border-radius: 8px;
|
|
1237
|
-
border: 1px solid ${
|
|
1305
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1238
1306
|
`,
|
|
1239
1307
|
selectAllLabel: _react3.css`
|
|
1240
1308
|
display: flex;
|
|
1241
1309
|
align-items: center;
|
|
1242
1310
|
gap: 10px;
|
|
1243
|
-
font-size: ${
|
|
1311
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
1244
1312
|
font-weight: 500;
|
|
1245
|
-
color: ${
|
|
1313
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1246
1314
|
cursor: pointer;
|
|
1247
1315
|
|
|
1248
1316
|
&:hover {
|
|
1249
|
-
color: ${
|
|
1317
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
1250
1318
|
}
|
|
1251
1319
|
`,
|
|
1252
1320
|
selectAllCheckbox: _react3.css`
|
|
1253
1321
|
width: 16px;
|
|
1254
1322
|
height: 16px;
|
|
1255
|
-
accent-color: ${
|
|
1323
|
+
accent-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1256
1324
|
`
|
|
1257
1325
|
};
|
|
1258
1326
|
function StudioFileGrid() {
|
|
@@ -1387,9 +1455,17 @@ function StudioFileGrid() {
|
|
|
1387
1455
|
] });
|
|
1388
1456
|
}
|
|
1389
1457
|
function GridItem({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
|
|
1458
|
+
const [showCopied, setShowCopied] = _react.useState.call(void 0, false);
|
|
1390
1459
|
const isFolder = item.type === "folder";
|
|
1391
1460
|
const isImage = !isFolder && item.thumbnail !== void 0;
|
|
1392
1461
|
const isImagesFolder = isFolder && (item.name === "images" || item.path.includes("/images/"));
|
|
1462
|
+
const handleCopyPath = (e) => {
|
|
1463
|
+
e.stopPropagation();
|
|
1464
|
+
const pathToCopy = "/" + item.path;
|
|
1465
|
+
navigator.clipboard.writeText(pathToCopy);
|
|
1466
|
+
setShowCopied(true);
|
|
1467
|
+
setTimeout(() => setShowCopied(false), 1500);
|
|
1468
|
+
};
|
|
1393
1469
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1394
1470
|
"div",
|
|
1395
1471
|
{
|
|
@@ -1448,17 +1524,31 @@ function GridItem({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
|
|
|
1448
1524
|
item.totalSize !== void 0 ? formatFileSize(item.totalSize) : ""
|
|
1449
1525
|
] }) : item.size !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { css: styles3.size, children: formatFileSize(item.size) })
|
|
1450
1526
|
] }),
|
|
1451
|
-
/* @__PURE__ */ _jsxruntime.
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1527
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles3.buttonRow, children: [
|
|
1528
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1529
|
+
"button",
|
|
1530
|
+
{
|
|
1531
|
+
css: styles3.copyBtn,
|
|
1532
|
+
onClick: handleCopyPath,
|
|
1533
|
+
title: "Copy file path",
|
|
1534
|
+
children: [
|
|
1535
|
+
showCopied && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles3.tooltip, children: "Copied!" }),
|
|
1536
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles3.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" }) })
|
|
1537
|
+
]
|
|
1538
|
+
}
|
|
1539
|
+
),
|
|
1540
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1541
|
+
"button",
|
|
1542
|
+
{
|
|
1543
|
+
css: styles3.openBtn,
|
|
1544
|
+
onClick: (e) => {
|
|
1545
|
+
e.stopPropagation();
|
|
1546
|
+
onOpen();
|
|
1547
|
+
},
|
|
1548
|
+
children: "Open"
|
|
1549
|
+
}
|
|
1550
|
+
)
|
|
1551
|
+
] })
|
|
1462
1552
|
] }) })
|
|
1463
1553
|
]
|
|
1464
1554
|
}
|
|
@@ -1501,8 +1591,8 @@ var styles4 = {
|
|
|
1501
1591
|
width: 32px;
|
|
1502
1592
|
height: 32px;
|
|
1503
1593
|
border-radius: 50%;
|
|
1504
|
-
border: 3px solid ${
|
|
1505
|
-
border-top-color: ${
|
|
1594
|
+
border: 3px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1595
|
+
border-top-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1506
1596
|
animation: ${spin3} 0.8s linear infinite;
|
|
1507
1597
|
`,
|
|
1508
1598
|
empty: _react3.css`
|
|
@@ -1511,12 +1601,12 @@ var styles4 = {
|
|
|
1511
1601
|
align-items: center;
|
|
1512
1602
|
justify-content: center;
|
|
1513
1603
|
height: 256px;
|
|
1514
|
-
color: ${
|
|
1604
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1515
1605
|
`,
|
|
1516
1606
|
tableWrapper: _react3.css`
|
|
1517
|
-
background: ${
|
|
1607
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1518
1608
|
border-radius: 8px;
|
|
1519
|
-
border: 1px solid ${
|
|
1609
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1520
1610
|
overflow: hidden;
|
|
1521
1611
|
`,
|
|
1522
1612
|
table: _react3.css`
|
|
@@ -1526,13 +1616,13 @@ var styles4 = {
|
|
|
1526
1616
|
th: _react3.css`
|
|
1527
1617
|
text-align: left;
|
|
1528
1618
|
font-size: 11px;
|
|
1529
|
-
color: ${
|
|
1619
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1530
1620
|
text-transform: uppercase;
|
|
1531
1621
|
letter-spacing: 0.05em;
|
|
1532
1622
|
padding: 12px 16px;
|
|
1533
1623
|
font-weight: 600;
|
|
1534
|
-
background: ${
|
|
1535
|
-
border-bottom: 1px solid ${
|
|
1624
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
1625
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1536
1626
|
`,
|
|
1537
1627
|
thCheckbox: _react3.css`
|
|
1538
1628
|
width: 48px;
|
|
@@ -1553,26 +1643,26 @@ var styles4 = {
|
|
|
1553
1643
|
user-select: none;
|
|
1554
1644
|
|
|
1555
1645
|
&:hover {
|
|
1556
|
-
background-color: ${
|
|
1646
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1557
1647
|
}
|
|
1558
1648
|
|
|
1559
1649
|
&:not(:last-child) td {
|
|
1560
|
-
border-bottom: 1px solid ${
|
|
1650
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.borderLight};
|
|
1561
1651
|
}
|
|
1562
1652
|
`,
|
|
1563
1653
|
rowSelected: _react3.css`
|
|
1564
|
-
background-color: ${
|
|
1654
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
1565
1655
|
|
|
1566
1656
|
&:hover {
|
|
1567
|
-
background-color: ${
|
|
1657
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
1568
1658
|
}
|
|
1569
1659
|
`,
|
|
1570
1660
|
parentRow: _react3.css`
|
|
1571
1661
|
cursor: pointer;
|
|
1572
|
-
border-bottom: 1px solid ${
|
|
1662
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1573
1663
|
|
|
1574
1664
|
&:hover {
|
|
1575
|
-
background-color: ${
|
|
1665
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1576
1666
|
}
|
|
1577
1667
|
`,
|
|
1578
1668
|
td: _react3.css`
|
|
@@ -1581,63 +1671,135 @@ var styles4 = {
|
|
|
1581
1671
|
checkboxCell: _react3.css`
|
|
1582
1672
|
padding: 12px 16px;
|
|
1583
1673
|
cursor: pointer;
|
|
1674
|
+
vertical-align: middle;
|
|
1584
1675
|
`,
|
|
1585
1676
|
checkbox: _react3.css`
|
|
1586
1677
|
width: 16px;
|
|
1587
1678
|
height: 16px;
|
|
1588
|
-
accent-color: ${
|
|
1679
|
+
accent-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1680
|
+
cursor: pointer;
|
|
1681
|
+
display: block;
|
|
1682
|
+
`,
|
|
1683
|
+
copyBtn: _react3.css`
|
|
1684
|
+
position: relative;
|
|
1685
|
+
flex-shrink: 0;
|
|
1686
|
+
height: 28px;
|
|
1687
|
+
width: 28px;
|
|
1688
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1689
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1690
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1691
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1692
|
+
padding: 0;
|
|
1589
1693
|
cursor: pointer;
|
|
1694
|
+
border-radius: 4px;
|
|
1695
|
+
transition: all 0.15s ease;
|
|
1696
|
+
display: inline-flex;
|
|
1697
|
+
align-items: center;
|
|
1698
|
+
justify-content: center;
|
|
1699
|
+
|
|
1700
|
+
&:hover {
|
|
1701
|
+
background: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1702
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
1703
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
1704
|
+
}
|
|
1705
|
+
`,
|
|
1706
|
+
copyIcon: _react3.css`
|
|
1707
|
+
width: 14px;
|
|
1708
|
+
height: 14px;
|
|
1709
|
+
`,
|
|
1710
|
+
tooltip: _react3.css`
|
|
1711
|
+
position: absolute;
|
|
1712
|
+
bottom: 100%;
|
|
1713
|
+
left: 50%;
|
|
1714
|
+
transform: translateX(-50%);
|
|
1715
|
+
background: #1a1f36;
|
|
1716
|
+
color: white;
|
|
1717
|
+
padding: 4px 8px;
|
|
1718
|
+
border-radius: 4px;
|
|
1719
|
+
font-size: 12px;
|
|
1720
|
+
white-space: nowrap;
|
|
1721
|
+
margin-bottom: 6px;
|
|
1722
|
+
pointer-events: none;
|
|
1723
|
+
z-index: 100;
|
|
1724
|
+
|
|
1725
|
+
&::after {
|
|
1726
|
+
content: '';
|
|
1727
|
+
position: absolute;
|
|
1728
|
+
top: 100%;
|
|
1729
|
+
left: 50%;
|
|
1730
|
+
transform: translateX(-50%);
|
|
1731
|
+
border: 4px solid transparent;
|
|
1732
|
+
border-top-color: #1a1f36;
|
|
1733
|
+
}
|
|
1590
1734
|
`,
|
|
1591
1735
|
nameCell: _react3.css`
|
|
1592
1736
|
display: flex;
|
|
1593
1737
|
align-items: center;
|
|
1594
1738
|
gap: 12px;
|
|
1595
1739
|
`,
|
|
1740
|
+
thumbnailWrapper: _react3.css`
|
|
1741
|
+
width: 48px;
|
|
1742
|
+
height: 36px;
|
|
1743
|
+
display: flex;
|
|
1744
|
+
align-items: center;
|
|
1745
|
+
justify-content: center;
|
|
1746
|
+
flex-shrink: 0;
|
|
1747
|
+
`,
|
|
1748
|
+
folderIconWrapper: _react3.css`
|
|
1749
|
+
width: 48px;
|
|
1750
|
+
height: 36px;
|
|
1751
|
+
display: flex;
|
|
1752
|
+
align-items: center;
|
|
1753
|
+
justify-content: center;
|
|
1754
|
+
flex-shrink: 0;
|
|
1755
|
+
`,
|
|
1596
1756
|
folderIcon: _react3.css`
|
|
1597
|
-
width:
|
|
1598
|
-
height:
|
|
1757
|
+
width: 24px;
|
|
1758
|
+
height: 24px;
|
|
1599
1759
|
color: #f5a623;
|
|
1600
|
-
flex-shrink: 0;
|
|
1601
1760
|
`,
|
|
1602
1761
|
imagesFolderWrapper: _react3.css`
|
|
1603
|
-
|
|
1762
|
+
width: 48px;
|
|
1763
|
+
height: 36px;
|
|
1604
1764
|
display: flex;
|
|
1605
1765
|
align-items: center;
|
|
1766
|
+
justify-content: center;
|
|
1767
|
+
flex-shrink: 0;
|
|
1768
|
+
position: relative;
|
|
1769
|
+
align-items: center;
|
|
1606
1770
|
`,
|
|
1607
1771
|
imagesFolderIcon: _react3.css`
|
|
1608
|
-
width:
|
|
1609
|
-
height:
|
|
1610
|
-
color: ${
|
|
1611
|
-
flex-shrink: 0;
|
|
1772
|
+
width: 24px;
|
|
1773
|
+
height: 24px;
|
|
1774
|
+
color: ${_chunkUFCWGUAGjs.colors.imagesFolder};
|
|
1612
1775
|
`,
|
|
1613
1776
|
lockIcon: _react3.css`
|
|
1614
1777
|
width: 10px;
|
|
1615
1778
|
height: 10px;
|
|
1616
|
-
color: ${
|
|
1779
|
+
color: ${_chunkUFCWGUAGjs.colors.imagesFolder};
|
|
1617
1780
|
margin-left: -6px;
|
|
1618
1781
|
margin-top: 8px;
|
|
1619
1782
|
`,
|
|
1620
1783
|
parentIcon: _react3.css`
|
|
1621
1784
|
width: 20px;
|
|
1622
1785
|
height: 20px;
|
|
1623
|
-
color: ${
|
|
1786
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1624
1787
|
flex-shrink: 0;
|
|
1625
1788
|
`,
|
|
1626
1789
|
fileIcon: _react3.css`
|
|
1627
1790
|
width: 20px;
|
|
1628
1791
|
height: 20px;
|
|
1629
|
-
color: ${
|
|
1792
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1630
1793
|
flex-shrink: 0;
|
|
1631
1794
|
`,
|
|
1632
1795
|
thumbnail: _react3.css`
|
|
1633
|
-
max-width:
|
|
1634
|
-
max-height:
|
|
1796
|
+
max-width: 100%;
|
|
1797
|
+
max-height: 100%;
|
|
1635
1798
|
width: auto;
|
|
1636
1799
|
height: auto;
|
|
1637
1800
|
object-fit: contain;
|
|
1638
1801
|
border-radius: 4px;
|
|
1639
|
-
|
|
1640
|
-
border: 1px solid ${_chunkZLL7JHVCjs.colors.borderLight};
|
|
1802
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.borderLight};
|
|
1641
1803
|
`,
|
|
1642
1804
|
noThumbnail: _react3.css`
|
|
1643
1805
|
width: 36px;
|
|
@@ -1645,56 +1807,56 @@ var styles4 = {
|
|
|
1645
1807
|
display: flex;
|
|
1646
1808
|
align-items: center;
|
|
1647
1809
|
justify-content: center;
|
|
1648
|
-
background: ${
|
|
1649
|
-
border: 1px dashed ${
|
|
1810
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
1811
|
+
border: 1px dashed ${_chunkUFCWGUAGjs.colors.border};
|
|
1650
1812
|
border-radius: 4px;
|
|
1651
1813
|
flex-shrink: 0;
|
|
1652
1814
|
cursor: pointer;
|
|
1653
1815
|
transition: all 0.15s ease;
|
|
1654
1816
|
|
|
1655
1817
|
&:hover {
|
|
1656
|
-
border-color: ${
|
|
1657
|
-
background: ${
|
|
1818
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1819
|
+
background: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
1658
1820
|
}
|
|
1659
1821
|
`,
|
|
1660
1822
|
noThumbnailIcon: _react3.css`
|
|
1661
1823
|
width: 16px;
|
|
1662
1824
|
height: 16px;
|
|
1663
|
-
color: ${
|
|
1825
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1664
1826
|
`,
|
|
1665
1827
|
name: _react3.css`
|
|
1666
|
-
font-size: ${
|
|
1828
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
1667
1829
|
font-weight: 500;
|
|
1668
|
-
color: ${
|
|
1830
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
1669
1831
|
letter-spacing: -0.01em;
|
|
1670
1832
|
`,
|
|
1671
1833
|
meta: _react3.css`
|
|
1672
|
-
font-size: ${
|
|
1673
|
-
color: ${
|
|
1834
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
1835
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
1674
1836
|
`,
|
|
1675
1837
|
cdnBadge: _react3.css`
|
|
1676
1838
|
display: inline-flex;
|
|
1677
1839
|
align-items: center;
|
|
1678
1840
|
gap: 4px;
|
|
1679
|
-
font-size: ${
|
|
1841
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1680
1842
|
font-weight: 500;
|
|
1681
|
-
color: ${
|
|
1843
|
+
color: ${_chunkUFCWGUAGjs.colors.success};
|
|
1682
1844
|
`,
|
|
1683
1845
|
cdnIcon: _react3.css`
|
|
1684
1846
|
width: 12px;
|
|
1685
1847
|
height: 12px;
|
|
1686
1848
|
`,
|
|
1687
1849
|
cdnEmpty: _react3.css`
|
|
1688
|
-
font-size: ${
|
|
1689
|
-
color: ${
|
|
1850
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
1851
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
1690
1852
|
`,
|
|
1691
1853
|
openBtn: _react3.css`
|
|
1692
1854
|
height: 28px;
|
|
1693
|
-
font-size: ${
|
|
1855
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
1694
1856
|
font-weight: 500;
|
|
1695
|
-
color: ${
|
|
1696
|
-
background: ${
|
|
1697
|
-
border: 1px solid ${
|
|
1857
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1858
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
1859
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1698
1860
|
padding: 0 12px;
|
|
1699
1861
|
cursor: pointer;
|
|
1700
1862
|
border-radius: 4px;
|
|
@@ -1704,8 +1866,8 @@ var styles4 = {
|
|
|
1704
1866
|
margin-left: auto;
|
|
1705
1867
|
|
|
1706
1868
|
&:hover {
|
|
1707
|
-
background-color: ${
|
|
1708
|
-
border-color: ${
|
|
1869
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
1870
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
1709
1871
|
}
|
|
1710
1872
|
`
|
|
1711
1873
|
};
|
|
@@ -1834,9 +1996,17 @@ function StudioFileList() {
|
|
|
1834
1996
|
] }) });
|
|
1835
1997
|
}
|
|
1836
1998
|
function ListRow({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
|
|
1999
|
+
const [showCopied, setShowCopied] = _react.useState.call(void 0, false);
|
|
1837
2000
|
const isFolder = item.type === "folder";
|
|
1838
2001
|
const isImage = !isFolder && item.thumbnail !== void 0;
|
|
1839
2002
|
const isImagesFolder = isFolder && (item.name === "images" || item.path.includes("/images/"));
|
|
2003
|
+
const handleCopyPath = (e) => {
|
|
2004
|
+
e.stopPropagation();
|
|
2005
|
+
const pathToCopy = "/" + item.path;
|
|
2006
|
+
navigator.clipboard.writeText(pathToCopy);
|
|
2007
|
+
setShowCopied(true);
|
|
2008
|
+
setTimeout(() => setShowCopied(false), 1500);
|
|
2009
|
+
};
|
|
1840
2010
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1841
2011
|
"tr",
|
|
1842
2012
|
{
|
|
@@ -1863,7 +2033,7 @@ function ListRow({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
|
|
|
1863
2033
|
isFolder ? isImagesFolder ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles4.imagesFolderWrapper, children: [
|
|
1864
2034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.imagesFolderIcon, fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z" }) }),
|
|
1865
2035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.lockIcon, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fillRule: "evenodd", d: "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z", clipRule: "evenodd" }) })
|
|
1866
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.folderIcon, fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z" }) }) : isImage && item.hasThumbnail ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { css: styles4.thumbnail, src: item.thumbnail, alt: item.name, loading: "lazy" }) : isImage && !item.hasThumbnail ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2036
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles4.folderIconWrapper, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.folderIcon, fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z" }) }) }) : isImage && item.hasThumbnail ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles4.thumbnailWrapper, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { css: styles4.thumbnail, src: item.thumbnail, alt: item.name, loading: "lazy" }) }) : isImage && !item.hasThumbnail ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles4.thumbnailWrapper, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1867
2037
|
"button",
|
|
1868
2038
|
{
|
|
1869
2039
|
css: styles4.noThumbnail,
|
|
@@ -1874,8 +2044,20 @@ function ListRow({ item, isSelected, onClick, onOpen, onGenerateThumbnail }) {
|
|
|
1874
2044
|
title: "Generate thumbnail",
|
|
1875
2045
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.noThumbnailIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) })
|
|
1876
2046
|
}
|
|
1877
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.fileIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }) }),
|
|
2047
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles4.thumbnailWrapper, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.fileIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }) }) }),
|
|
1878
2048
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles4.name, title: item.name, children: truncateMiddle2(item.name) }),
|
|
2049
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2050
|
+
"button",
|
|
2051
|
+
{
|
|
2052
|
+
css: styles4.copyBtn,
|
|
2053
|
+
onClick: handleCopyPath,
|
|
2054
|
+
title: "Copy file path",
|
|
2055
|
+
children: [
|
|
2056
|
+
showCopied && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles4.tooltip, children: "Copied!" }),
|
|
2057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles4.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" }) })
|
|
2058
|
+
]
|
|
2059
|
+
}
|
|
2060
|
+
),
|
|
1879
2061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1880
2062
|
"button",
|
|
1881
2063
|
{
|
|
@@ -1946,8 +2128,8 @@ var styles5 = {
|
|
|
1946
2128
|
display: flex;
|
|
1947
2129
|
flex: 1;
|
|
1948
2130
|
margin: 24px;
|
|
1949
|
-
background: ${
|
|
1950
|
-
border: 1px solid ${
|
|
2131
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2132
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
1951
2133
|
border-radius: 12px;
|
|
1952
2134
|
overflow: hidden;
|
|
1953
2135
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
|
|
@@ -1960,34 +2142,86 @@ var styles5 = {
|
|
|
1960
2142
|
align-items: center;
|
|
1961
2143
|
justify-content: center;
|
|
1962
2144
|
padding: 24px;
|
|
1963
|
-
background: ${
|
|
2145
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
1964
2146
|
overflow: auto;
|
|
1965
2147
|
`,
|
|
1966
|
-
|
|
2148
|
+
headerButtons: _react3.css`
|
|
1967
2149
|
position: absolute;
|
|
1968
2150
|
top: 16px;
|
|
1969
2151
|
right: 16px;
|
|
2152
|
+
display: flex;
|
|
2153
|
+
gap: 8px;
|
|
2154
|
+
z-index: 10;
|
|
2155
|
+
`,
|
|
2156
|
+
copyBtn: _react3.css`
|
|
2157
|
+
position: relative;
|
|
1970
2158
|
padding: 8px;
|
|
1971
|
-
background: ${
|
|
1972
|
-
border: 1px solid ${
|
|
2159
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2160
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2161
|
+
border-radius: 8px;
|
|
2162
|
+
cursor: pointer;
|
|
2163
|
+
transition: all 0.15s ease;
|
|
2164
|
+
display: flex;
|
|
2165
|
+
align-items: center;
|
|
2166
|
+
justify-content: center;
|
|
2167
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
|
|
2168
|
+
|
|
2169
|
+
&:hover {
|
|
2170
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2171
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2172
|
+
}
|
|
2173
|
+
`,
|
|
2174
|
+
copyIcon: _react3.css`
|
|
2175
|
+
width: 20px;
|
|
2176
|
+
height: 20px;
|
|
2177
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2178
|
+
`,
|
|
2179
|
+
tooltip: _react3.css`
|
|
2180
|
+
position: absolute;
|
|
2181
|
+
bottom: 100%;
|
|
2182
|
+
left: 50%;
|
|
2183
|
+
transform: translateX(-50%);
|
|
2184
|
+
background: #1a1f36;
|
|
2185
|
+
color: white;
|
|
2186
|
+
padding: 4px 8px;
|
|
2187
|
+
border-radius: 4px;
|
|
2188
|
+
font-size: 12px;
|
|
2189
|
+
white-space: nowrap;
|
|
2190
|
+
margin-bottom: 6px;
|
|
2191
|
+
pointer-events: none;
|
|
2192
|
+
z-index: 100;
|
|
2193
|
+
|
|
2194
|
+
&::after {
|
|
2195
|
+
content: '';
|
|
2196
|
+
position: absolute;
|
|
2197
|
+
top: 100%;
|
|
2198
|
+
left: 50%;
|
|
2199
|
+
transform: translateX(-50%);
|
|
2200
|
+
border: 4px solid transparent;
|
|
2201
|
+
border-top-color: #1a1f36;
|
|
2202
|
+
}
|
|
2203
|
+
`,
|
|
2204
|
+
mainCloseBtn: _react3.css`
|
|
2205
|
+
padding: 8px;
|
|
2206
|
+
background: ${_chunkUFCWGUAGjs.colors.danger};
|
|
2207
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.danger};
|
|
1973
2208
|
border-radius: 8px;
|
|
1974
2209
|
cursor: pointer;
|
|
1975
2210
|
transition: all 0.15s ease;
|
|
1976
2211
|
display: flex;
|
|
1977
2212
|
align-items: center;
|
|
1978
2213
|
justify-content: center;
|
|
1979
|
-
z-index: 10;
|
|
1980
2214
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
|
|
1981
2215
|
|
|
1982
2216
|
&:hover {
|
|
1983
|
-
background-color: ${
|
|
1984
|
-
border-color: ${
|
|
2217
|
+
background-color: ${_chunkUFCWGUAGjs.colors.dangerHover};
|
|
2218
|
+
border-color: ${_chunkUFCWGUAGjs.colors.dangerHover};
|
|
1985
2219
|
}
|
|
1986
2220
|
`,
|
|
1987
2221
|
mainCloseIcon: _react3.css`
|
|
1988
2222
|
width: 20px;
|
|
1989
2223
|
height: 20px;
|
|
1990
|
-
color:
|
|
2224
|
+
color: white;
|
|
1991
2225
|
`,
|
|
1992
2226
|
mediaWrapper: _react3.css`
|
|
1993
2227
|
max-width: 100%;
|
|
@@ -2015,38 +2249,38 @@ var styles5 = {
|
|
|
2015
2249
|
align-items: center;
|
|
2016
2250
|
justify-content: center;
|
|
2017
2251
|
padding: 48px;
|
|
2018
|
-
background: ${
|
|
2252
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2019
2253
|
border-radius: 12px;
|
|
2020
|
-
border: 1px solid ${
|
|
2254
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2021
2255
|
`,
|
|
2022
2256
|
fileIcon: _react3.css`
|
|
2023
2257
|
width: 80px;
|
|
2024
2258
|
height: 80px;
|
|
2025
|
-
color: ${
|
|
2259
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
2026
2260
|
margin-bottom: 16px;
|
|
2027
2261
|
`,
|
|
2028
2262
|
fileName: _react3.css`
|
|
2029
|
-
font-size: ${
|
|
2263
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.lg};
|
|
2030
2264
|
font-weight: 600;
|
|
2031
|
-
color: ${
|
|
2265
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2032
2266
|
margin: 0;
|
|
2033
2267
|
`,
|
|
2034
2268
|
sidebar: _react3.css`
|
|
2035
2269
|
width: 280px;
|
|
2036
|
-
background: ${
|
|
2037
|
-
border-left: 1px solid ${
|
|
2270
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2271
|
+
border-left: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2038
2272
|
display: flex;
|
|
2039
2273
|
flex-direction: column;
|
|
2040
2274
|
overflow: hidden;
|
|
2041
2275
|
`,
|
|
2042
2276
|
sidebarHeader: _react3.css`
|
|
2043
2277
|
padding: 16px 20px;
|
|
2044
|
-
border-bottom: 1px solid ${
|
|
2278
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2045
2279
|
`,
|
|
2046
2280
|
sidebarTitle: _react3.css`
|
|
2047
|
-
font-size: ${
|
|
2281
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2048
2282
|
font-weight: 600;
|
|
2049
|
-
color: ${
|
|
2283
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2050
2284
|
margin: 0;
|
|
2051
2285
|
`,
|
|
2052
2286
|
sidebarContent: _react3.css`
|
|
@@ -2063,13 +2297,13 @@ var styles5 = {
|
|
|
2063
2297
|
infoRow: _react3.css`
|
|
2064
2298
|
display: flex;
|
|
2065
2299
|
justify-content: space-between;
|
|
2066
|
-
font-size: ${
|
|
2300
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
2067
2301
|
`,
|
|
2068
2302
|
infoLabel: _react3.css`
|
|
2069
|
-
color: ${
|
|
2303
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2070
2304
|
`,
|
|
2071
2305
|
infoValue: _react3.css`
|
|
2072
|
-
color: ${
|
|
2306
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2073
2307
|
font-weight: 500;
|
|
2074
2308
|
text-align: right;
|
|
2075
2309
|
max-width: 160px;
|
|
@@ -2078,7 +2312,7 @@ var styles5 = {
|
|
|
2078
2312
|
white-space: nowrap;
|
|
2079
2313
|
`,
|
|
2080
2314
|
infoValueWrap: _react3.css`
|
|
2081
|
-
color: ${
|
|
2315
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2082
2316
|
font-weight: 500;
|
|
2083
2317
|
text-align: right;
|
|
2084
2318
|
max-width: 160px;
|
|
@@ -2096,27 +2330,27 @@ var styles5 = {
|
|
|
2096
2330
|
gap: 10px;
|
|
2097
2331
|
width: 100%;
|
|
2098
2332
|
padding: 12px 14px;
|
|
2099
|
-
font-size: ${
|
|
2333
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2100
2334
|
font-weight: 500;
|
|
2101
|
-
background: ${
|
|
2102
|
-
border: 1px solid ${
|
|
2335
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2336
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2103
2337
|
border-radius: 6px;
|
|
2104
2338
|
cursor: pointer;
|
|
2105
2339
|
transition: all 0.15s ease;
|
|
2106
|
-
color: ${
|
|
2340
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2107
2341
|
text-align: left;
|
|
2108
2342
|
|
|
2109
2343
|
&:hover {
|
|
2110
|
-
background-color: ${
|
|
2111
|
-
border-color: ${
|
|
2344
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2345
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2112
2346
|
}
|
|
2113
2347
|
`,
|
|
2114
2348
|
actionBtnDanger: _react3.css`
|
|
2115
|
-
color: ${
|
|
2349
|
+
color: ${_chunkUFCWGUAGjs.colors.danger};
|
|
2116
2350
|
|
|
2117
2351
|
&:hover {
|
|
2118
|
-
background-color: ${
|
|
2119
|
-
border-color: ${
|
|
2352
|
+
background-color: ${_chunkUFCWGUAGjs.colors.dangerLight};
|
|
2353
|
+
border-color: ${_chunkUFCWGUAGjs.colors.danger};
|
|
2120
2354
|
}
|
|
2121
2355
|
`,
|
|
2122
2356
|
actionIcon: _react3.css`
|
|
@@ -2129,6 +2363,7 @@ function StudioDetailView() {
|
|
|
2129
2363
|
const { focusedItem, setFocusedItem, triggerRefresh, clearSelection } = useStudio();
|
|
2130
2364
|
const [showDeleteConfirm, setShowDeleteConfirm] = _react.useState.call(void 0, false);
|
|
2131
2365
|
const [alertMessage, setAlertMessage] = _react.useState.call(void 0, null);
|
|
2366
|
+
const [showCopied, setShowCopied] = _react.useState.call(void 0, false);
|
|
2132
2367
|
if (!focusedItem) return null;
|
|
2133
2368
|
const isImage = isImageFile(focusedItem.name);
|
|
2134
2369
|
const isVideo = isVideoFile(focusedItem.name);
|
|
@@ -2136,6 +2371,12 @@ function StudioDetailView() {
|
|
|
2136
2371
|
const handleClose = () => {
|
|
2137
2372
|
setFocusedItem(null);
|
|
2138
2373
|
};
|
|
2374
|
+
const handleCopyPath = () => {
|
|
2375
|
+
const pathToCopy = "/" + focusedItem.path;
|
|
2376
|
+
navigator.clipboard.writeText(pathToCopy);
|
|
2377
|
+
setShowCopied(true);
|
|
2378
|
+
setTimeout(() => setShowCopied(false), 1500);
|
|
2379
|
+
};
|
|
2139
2380
|
const handleRename = () => {
|
|
2140
2381
|
const newName = prompt("Enter new name:", focusedItem.name);
|
|
2141
2382
|
if (newName && newName !== focusedItem.name) {
|
|
@@ -2209,7 +2450,13 @@ function StudioDetailView() {
|
|
|
2209
2450
|
),
|
|
2210
2451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles5.overlay, onClick: handleClose, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles5.container, onClick: (e) => e.stopPropagation(), children: [
|
|
2211
2452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles5.main, children: [
|
|
2212
|
-
/* @__PURE__ */ _jsxruntime.
|
|
2453
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles5.headerButtons, children: [
|
|
2454
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { css: styles5.copyBtn, onClick: handleCopyPath, title: "Copy file path", children: [
|
|
2455
|
+
showCopied && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles5.tooltip, children: "Copied!" }),
|
|
2456
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles5.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" }) })
|
|
2457
|
+
] }),
|
|
2458
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { css: styles5.mainCloseBtn, onClick: handleClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles5.mainCloseIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
2459
|
+
] }),
|
|
2213
2460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { css: styles5.mediaWrapper, children: renderMedia() })
|
|
2214
2461
|
] }),
|
|
2215
2462
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles5.sidebar, children: [
|
|
@@ -2279,8 +2526,8 @@ var styles6 = {
|
|
|
2279
2526
|
btn: _react3.css`
|
|
2280
2527
|
height: ${btnHeight2};
|
|
2281
2528
|
padding: 0 12px;
|
|
2282
|
-
background: ${
|
|
2283
|
-
border: 1px solid ${
|
|
2529
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2530
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2284
2531
|
border-radius: 6px;
|
|
2285
2532
|
cursor: pointer;
|
|
2286
2533
|
transition: all 0.15s ease;
|
|
@@ -2289,14 +2536,14 @@ var styles6 = {
|
|
|
2289
2536
|
justify-content: center;
|
|
2290
2537
|
|
|
2291
2538
|
&:hover {
|
|
2292
|
-
background-color: ${
|
|
2293
|
-
border-color: ${
|
|
2539
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2540
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2294
2541
|
}
|
|
2295
2542
|
`,
|
|
2296
2543
|
icon: _react3.css`
|
|
2297
2544
|
width: 16px;
|
|
2298
2545
|
height: 16px;
|
|
2299
|
-
color: ${
|
|
2546
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2300
2547
|
`,
|
|
2301
2548
|
overlay: _react3.css`
|
|
2302
2549
|
position: fixed;
|
|
@@ -2312,9 +2559,9 @@ var styles6 = {
|
|
|
2312
2559
|
backdrop-filter: blur(4px);
|
|
2313
2560
|
`,
|
|
2314
2561
|
panel: _react3.css`
|
|
2315
|
-
${
|
|
2562
|
+
${_chunkUFCWGUAGjs.baseReset}
|
|
2316
2563
|
position: relative;
|
|
2317
|
-
background-color: ${
|
|
2564
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2318
2565
|
border-radius: 12px;
|
|
2319
2566
|
box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
|
|
2320
2567
|
width: 100%;
|
|
@@ -2328,16 +2575,16 @@ var styles6 = {
|
|
|
2328
2575
|
margin-bottom: 24px;
|
|
2329
2576
|
`,
|
|
2330
2577
|
title: _react3.css`
|
|
2331
|
-
font-size: ${
|
|
2578
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xl};
|
|
2332
2579
|
font-weight: 600;
|
|
2333
|
-
color: ${
|
|
2580
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2334
2581
|
margin: 0;
|
|
2335
2582
|
letter-spacing: -0.02em;
|
|
2336
2583
|
`,
|
|
2337
2584
|
closeBtn: _react3.css`
|
|
2338
2585
|
padding: 6px;
|
|
2339
|
-
background: ${
|
|
2340
|
-
border: 1px solid ${
|
|
2586
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2587
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2341
2588
|
border-radius: 6px;
|
|
2342
2589
|
cursor: pointer;
|
|
2343
2590
|
transition: all 0.15s ease;
|
|
@@ -2346,8 +2593,8 @@ var styles6 = {
|
|
|
2346
2593
|
justify-content: center;
|
|
2347
2594
|
|
|
2348
2595
|
&:hover {
|
|
2349
|
-
background-color: ${
|
|
2350
|
-
border-color: ${
|
|
2596
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2597
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2351
2598
|
}
|
|
2352
2599
|
`,
|
|
2353
2600
|
sections: _react3.css`
|
|
@@ -2356,36 +2603,38 @@ var styles6 = {
|
|
|
2356
2603
|
gap: 24px;
|
|
2357
2604
|
`,
|
|
2358
2605
|
sectionTitle: _react3.css`
|
|
2359
|
-
font-size: ${
|
|
2606
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2360
2607
|
font-weight: 600;
|
|
2361
|
-
color: ${
|
|
2608
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2362
2609
|
margin: 0 0 12px 0;
|
|
2363
2610
|
`,
|
|
2364
2611
|
description: _react3.css`
|
|
2365
|
-
font-size: ${
|
|
2366
|
-
color: ${
|
|
2612
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.sm};
|
|
2613
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2367
2614
|
margin: 0 0 12px 0;
|
|
2368
2615
|
`,
|
|
2369
2616
|
codeWrapper: _react3.css`
|
|
2370
2617
|
position: relative;
|
|
2371
2618
|
`,
|
|
2372
2619
|
code: _react3.css`
|
|
2373
|
-
background-color: ${
|
|
2620
|
+
background-color: ${_chunkUFCWGUAGjs.colors.background};
|
|
2374
2621
|
border-radius: 8px;
|
|
2375
2622
|
padding: 12px;
|
|
2376
2623
|
padding-right: 40px;
|
|
2377
2624
|
font-family: 'SF Mono', Monaco, Consolas, monospace;
|
|
2378
|
-
font-size: ${
|
|
2379
|
-
color: ${
|
|
2380
|
-
border: 1px solid ${
|
|
2625
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
2626
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2627
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2628
|
+
overflow-x: auto;
|
|
2629
|
+
white-space: nowrap;
|
|
2381
2630
|
`,
|
|
2382
2631
|
copyBtn: _react3.css`
|
|
2383
2632
|
position: absolute;
|
|
2384
2633
|
top: 8px;
|
|
2385
2634
|
right: 8px;
|
|
2386
2635
|
padding: 4px;
|
|
2387
|
-
background: ${
|
|
2388
|
-
border: 1px solid ${
|
|
2636
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2637
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2389
2638
|
border-radius: 4px;
|
|
2390
2639
|
cursor: pointer;
|
|
2391
2640
|
transition: all 0.15s ease;
|
|
@@ -2394,14 +2643,39 @@ var styles6 = {
|
|
|
2394
2643
|
justify-content: center;
|
|
2395
2644
|
|
|
2396
2645
|
&:hover {
|
|
2397
|
-
background-color: ${
|
|
2398
|
-
border-color: ${
|
|
2646
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2647
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2648
|
+
}
|
|
2649
|
+
`,
|
|
2650
|
+
tooltip: _react3.css`
|
|
2651
|
+
position: absolute;
|
|
2652
|
+
bottom: 100%;
|
|
2653
|
+
left: 50%;
|
|
2654
|
+
transform: translateX(-50%);
|
|
2655
|
+
background: #1a1f36;
|
|
2656
|
+
color: white;
|
|
2657
|
+
padding: 4px 8px;
|
|
2658
|
+
border-radius: 4px;
|
|
2659
|
+
font-size: 12px;
|
|
2660
|
+
white-space: nowrap;
|
|
2661
|
+
margin-bottom: 6px;
|
|
2662
|
+
pointer-events: none;
|
|
2663
|
+
z-index: 100;
|
|
2664
|
+
|
|
2665
|
+
&::after {
|
|
2666
|
+
content: '';
|
|
2667
|
+
position: absolute;
|
|
2668
|
+
top: 100%;
|
|
2669
|
+
left: 50%;
|
|
2670
|
+
transform: translateX(-50%);
|
|
2671
|
+
border: 4px solid transparent;
|
|
2672
|
+
border-top-color: #1a1f36;
|
|
2399
2673
|
}
|
|
2400
2674
|
`,
|
|
2401
2675
|
copyIcon: _react3.css`
|
|
2402
2676
|
width: 14px;
|
|
2403
2677
|
height: 14px;
|
|
2404
|
-
color: ${
|
|
2678
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2405
2679
|
`,
|
|
2406
2680
|
codeLine: _react3.css`
|
|
2407
2681
|
margin: 0 0 4px 0;
|
|
@@ -2413,21 +2687,21 @@ var styles6 = {
|
|
|
2413
2687
|
input: _react3.css`
|
|
2414
2688
|
width: 100%;
|
|
2415
2689
|
padding: 10px 14px;
|
|
2416
|
-
border: 1px solid ${
|
|
2690
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2417
2691
|
border-radius: 6px;
|
|
2418
|
-
font-size: ${
|
|
2419
|
-
color: ${
|
|
2420
|
-
background: ${
|
|
2692
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2693
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2694
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2421
2695
|
transition: all 0.15s ease;
|
|
2422
2696
|
|
|
2423
2697
|
&:focus {
|
|
2424
2698
|
outline: none;
|
|
2425
|
-
border-color: ${
|
|
2426
|
-
box-shadow: 0 0 0 3px ${
|
|
2699
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
2700
|
+
box-shadow: 0 0 0 3px ${_chunkUFCWGUAGjs.colors.primaryLight};
|
|
2427
2701
|
}
|
|
2428
2702
|
|
|
2429
2703
|
&::placeholder {
|
|
2430
|
-
color: ${
|
|
2704
|
+
color: ${_chunkUFCWGUAGjs.colors.textMuted};
|
|
2431
2705
|
}
|
|
2432
2706
|
`,
|
|
2433
2707
|
grid: _react3.css`
|
|
@@ -2436,50 +2710,50 @@ var styles6 = {
|
|
|
2436
2710
|
gap: 12px;
|
|
2437
2711
|
`,
|
|
2438
2712
|
label: _react3.css`
|
|
2439
|
-
font-size: ${
|
|
2713
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.xs};
|
|
2440
2714
|
font-weight: 500;
|
|
2441
|
-
color: ${
|
|
2715
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2442
2716
|
display: block;
|
|
2443
2717
|
margin-bottom: 6px;
|
|
2444
2718
|
`,
|
|
2445
2719
|
footer: _react3.css`
|
|
2446
2720
|
margin-top: 24px;
|
|
2447
2721
|
padding-top: 20px;
|
|
2448
|
-
border-top: 1px solid ${
|
|
2722
|
+
border-top: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2449
2723
|
display: flex;
|
|
2450
2724
|
justify-content: flex-end;
|
|
2451
2725
|
gap: 12px;
|
|
2452
2726
|
`,
|
|
2453
2727
|
cancelBtn: _react3.css`
|
|
2454
2728
|
padding: 10px 18px;
|
|
2455
|
-
font-size: ${
|
|
2729
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2456
2730
|
font-weight: 500;
|
|
2457
|
-
color: ${
|
|
2458
|
-
background: ${
|
|
2459
|
-
border: 1px solid ${
|
|
2731
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2732
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2733
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2460
2734
|
border-radius: 6px;
|
|
2461
2735
|
cursor: pointer;
|
|
2462
2736
|
transition: all 0.15s ease;
|
|
2463
2737
|
|
|
2464
2738
|
&:hover {
|
|
2465
|
-
background-color: ${
|
|
2466
|
-
border-color: ${
|
|
2739
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2740
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2467
2741
|
}
|
|
2468
2742
|
`,
|
|
2469
2743
|
saveBtn: _react3.css`
|
|
2470
2744
|
padding: 10px 18px;
|
|
2471
|
-
font-size: ${
|
|
2745
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.base};
|
|
2472
2746
|
font-weight: 500;
|
|
2473
2747
|
color: white;
|
|
2474
|
-
background-color: ${
|
|
2475
|
-
border: 1px solid ${
|
|
2748
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
2749
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.primary};
|
|
2476
2750
|
border-radius: 6px;
|
|
2477
2751
|
cursor: pointer;
|
|
2478
2752
|
transition: all 0.15s ease;
|
|
2479
2753
|
|
|
2480
2754
|
&:hover {
|
|
2481
|
-
background-color: ${
|
|
2482
|
-
border-color: ${
|
|
2755
|
+
background-color: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
2756
|
+
border-color: ${_chunkUFCWGUAGjs.colors.primaryHover};
|
|
2483
2757
|
}
|
|
2484
2758
|
`
|
|
2485
2759
|
};
|
|
@@ -2528,7 +2802,10 @@ function SettingsPanel({ onClose }) {
|
|
|
2528
2802
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { css: styles6.sectionTitle, children: "Cloudflare R2" }),
|
|
2529
2803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { css: styles6.description, children: "Configure in .env.local file:" }),
|
|
2530
2804
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles6.codeWrapper, children: [
|
|
2531
|
-
/* @__PURE__ */ _jsxruntime.
|
|
2805
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { css: styles6.copyBtn, onClick: handleCopy, title: "Copy to clipboard", children: [
|
|
2806
|
+
copied && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { css: styles6.tooltip, children: "Copied!" }),
|
|
2807
|
+
copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles6.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles6.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" }) })
|
|
2808
|
+
] }),
|
|
2532
2809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles6.code, children: [
|
|
2533
2810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { css: styles6.codeLine, children: "CLOUDFLARE_R2_ACCOUNT_ID=abc123def456ghi789" }),
|
|
2534
2811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { css: styles6.codeLine, children: "CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id_here" }),
|
|
@@ -2538,11 +2815,6 @@ function SettingsPanel({ onClose }) {
|
|
|
2538
2815
|
] })
|
|
2539
2816
|
] })
|
|
2540
2817
|
] }),
|
|
2541
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { children: [
|
|
2542
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { css: styles6.sectionTitle, children: "Custom CDN URL" }),
|
|
2543
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { css: styles6.description, children: "Override the default R2 URL with a custom domain:" }),
|
|
2544
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { css: styles6.input, type: "text", placeholder: "https://cdn.yourdomain.com" })
|
|
2545
|
-
] }),
|
|
2546
2818
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { children: [
|
|
2547
2819
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { css: styles6.sectionTitle, children: "Thumbnail Sizes" }),
|
|
2548
2820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { css: styles6.grid, children: [
|
|
@@ -2573,24 +2845,24 @@ function SettingsPanel({ onClose }) {
|
|
|
2573
2845
|
var btnHeight3 = "36px";
|
|
2574
2846
|
var styles7 = {
|
|
2575
2847
|
container: _react3.css`
|
|
2576
|
-
${
|
|
2848
|
+
${_chunkUFCWGUAGjs.baseReset}
|
|
2577
2849
|
display: flex;
|
|
2578
2850
|
flex-direction: column;
|
|
2579
2851
|
height: 100%;
|
|
2580
|
-
background: ${
|
|
2852
|
+
background: ${_chunkUFCWGUAGjs.colors.background};
|
|
2581
2853
|
`,
|
|
2582
2854
|
header: _react3.css`
|
|
2583
2855
|
display: flex;
|
|
2584
2856
|
align-items: center;
|
|
2585
2857
|
justify-content: space-between;
|
|
2586
2858
|
padding: 12px 24px;
|
|
2587
|
-
background: ${
|
|
2588
|
-
border-bottom: 1px solid ${
|
|
2859
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2860
|
+
border-bottom: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2589
2861
|
`,
|
|
2590
2862
|
title: _react3.css`
|
|
2591
|
-
font-size: ${
|
|
2863
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.lg};
|
|
2592
2864
|
font-weight: 600;
|
|
2593
|
-
color: ${
|
|
2865
|
+
color: ${_chunkUFCWGUAGjs.colors.text};
|
|
2594
2866
|
margin: 0;
|
|
2595
2867
|
letter-spacing: -0.02em;
|
|
2596
2868
|
`,
|
|
@@ -2602,8 +2874,8 @@ var styles7 = {
|
|
|
2602
2874
|
headerBtn: _react3.css`
|
|
2603
2875
|
height: ${btnHeight3};
|
|
2604
2876
|
padding: 0 12px;
|
|
2605
|
-
background: ${
|
|
2606
|
-
border: 1px solid ${
|
|
2877
|
+
background: ${_chunkUFCWGUAGjs.colors.surface};
|
|
2878
|
+
border: 1px solid ${_chunkUFCWGUAGjs.colors.border};
|
|
2607
2879
|
border-radius: 6px;
|
|
2608
2880
|
cursor: pointer;
|
|
2609
2881
|
transition: all 0.15s ease;
|
|
@@ -2612,14 +2884,14 @@ var styles7 = {
|
|
|
2612
2884
|
justify-content: center;
|
|
2613
2885
|
|
|
2614
2886
|
&:hover {
|
|
2615
|
-
background-color: ${
|
|
2616
|
-
border-color: ${
|
|
2887
|
+
background-color: ${_chunkUFCWGUAGjs.colors.surfaceHover};
|
|
2888
|
+
border-color: ${_chunkUFCWGUAGjs.colors.borderHover};
|
|
2617
2889
|
}
|
|
2618
2890
|
`,
|
|
2619
2891
|
headerIcon: _react3.css`
|
|
2620
2892
|
width: 16px;
|
|
2621
2893
|
height: 16px;
|
|
2622
|
-
color: ${
|
|
2894
|
+
color: ${_chunkUFCWGUAGjs.colors.textSecondary};
|
|
2623
2895
|
`,
|
|
2624
2896
|
content: _react3.css`
|
|
2625
2897
|
flex: 1;
|
|
@@ -2639,7 +2911,7 @@ var styles7 = {
|
|
|
2639
2911
|
right: 0;
|
|
2640
2912
|
bottom: 0;
|
|
2641
2913
|
background: rgba(99, 91, 255, 0.1);
|
|
2642
|
-
border: 3px dashed ${
|
|
2914
|
+
border: 3px dashed ${_chunkUFCWGUAGjs.colors.primary};
|
|
2643
2915
|
border-radius: 8px;
|
|
2644
2916
|
display: flex;
|
|
2645
2917
|
align-items: center;
|
|
@@ -2652,8 +2924,8 @@ var styles7 = {
|
|
|
2652
2924
|
flex-direction: column;
|
|
2653
2925
|
align-items: center;
|
|
2654
2926
|
gap: 12px;
|
|
2655
|
-
color: ${
|
|
2656
|
-
font-size: ${
|
|
2927
|
+
color: ${_chunkUFCWGUAGjs.colors.primary};
|
|
2928
|
+
font-size: ${_chunkUFCWGUAGjs.fontSize.lg};
|
|
2657
2929
|
font-weight: 600;
|
|
2658
2930
|
`,
|
|
2659
2931
|
dropIcon: _react3.css`
|
|
@@ -2864,4 +3136,4 @@ var StudioUI_default = StudioUI;
|
|
|
2864
3136
|
|
|
2865
3137
|
|
|
2866
3138
|
exports.StudioUI = StudioUI; exports.default = StudioUI_default;
|
|
2867
|
-
//# sourceMappingURL=StudioUI-
|
|
3139
|
+
//# sourceMappingURL=StudioUI-G37N5ORG.js.map
|