@floegence/floe-webapp-core 0.36.52 → 0.36.53

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.
@@ -225,6 +225,92 @@
225
225
  z-index: 10;
226
226
  }
227
227
 
228
+ .workbench-placement-preview {
229
+ position: absolute;
230
+ left: 0;
231
+ top: 0;
232
+ box-sizing: border-box;
233
+ pointer-events: none;
234
+ z-index: 18;
235
+ border: 1.5px solid color-mix(in srgb, var(--primary, #3b82f6) 78%, transparent);
236
+ border-radius: 10px;
237
+ background: color-mix(in srgb, var(--primary, #3b82f6) 9%, transparent);
238
+ box-shadow:
239
+ 0 18px 44px -22px color-mix(in srgb, var(--primary, #3b82f6) 42%, transparent),
240
+ 0 0 0 1px color-mix(in srgb, white 36%, transparent) inset;
241
+ will-change: transform, width, height;
242
+ }
243
+
244
+ .workbench-placement-preview.is-sticky-note {
245
+ border-color: color-mix(in srgb, #d6a734 76%, transparent);
246
+ background: color-mix(in srgb, #f5d972 16%, transparent);
247
+ }
248
+
249
+ .workbench-placement-preview.is-text {
250
+ border-color: color-mix(in srgb, var(--wb-text, #111827) 72%, transparent);
251
+ background: color-mix(in srgb, var(--wb-text, #111827) 7%, transparent);
252
+ }
253
+
254
+ .workbench-placement-preview.is-background-region {
255
+ border-style: dashed;
256
+ border-color: color-mix(in srgb, #27a7b7 82%, transparent);
257
+ background: color-mix(in srgb, #27a7b7 10%, transparent);
258
+ }
259
+
260
+ .workbench-placement-preview__crosshair {
261
+ position: absolute;
262
+ left: 50%;
263
+ top: 50%;
264
+ width: 22px;
265
+ height: 22px;
266
+ transform: translate(-50%, -50%);
267
+ border-radius: 999px;
268
+ border: 1px solid color-mix(in srgb, currentColor 52%, transparent);
269
+ color: color-mix(in srgb, var(--primary, #3b82f6) 82%, var(--wb-text, #111827));
270
+ opacity: 0.78;
271
+ }
272
+
273
+ .workbench-placement-preview__crosshair::before,
274
+ .workbench-placement-preview__crosshair::after {
275
+ content: '';
276
+ position: absolute;
277
+ left: 50%;
278
+ top: 50%;
279
+ background: currentColor;
280
+ opacity: 0.74;
281
+ transform: translate(-50%, -50%);
282
+ }
283
+
284
+ .workbench-placement-preview__crosshair::before {
285
+ width: 1px;
286
+ height: 30px;
287
+ }
288
+
289
+ .workbench-placement-preview__crosshair::after {
290
+ width: 30px;
291
+ height: 1px;
292
+ }
293
+
294
+ .workbench-placement-preview__label {
295
+ position: absolute;
296
+ left: 10px;
297
+ top: 8px;
298
+ max-width: calc(100% - 20px);
299
+ overflow: hidden;
300
+ text-overflow: ellipsis;
301
+ white-space: nowrap;
302
+ border-radius: 7px;
303
+ padding: 4px 7px;
304
+ background: color-mix(in srgb, var(--card, #fff) 86%, transparent);
305
+ border: 1px solid color-mix(in srgb, var(--border, #d4d4d8) 70%, transparent);
306
+ color: color-mix(in srgb, var(--wb-text, #111827) 88%, var(--primary, #3b82f6));
307
+ font-size: 11px;
308
+ font-weight: 650;
309
+ line-height: 1;
310
+ letter-spacing: 0;
311
+ box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--foreground, #000) 32%, transparent);
312
+ }
313
+
228
314
  .workbench-canvas__projected-layer.is-work-layer-locked
229
315
  .workbench-canvas__projected-work-layer
230
316
  > .workbench-widget,
@@ -354,8 +440,11 @@
354
440
  }
355
441
 
356
442
  .workbench-background-region.is-material-dotted {
357
- background-image:
358
- radial-gradient(circle, var(--workbench-region-ink) 1.45px, transparent 1.65px);
443
+ background-image: radial-gradient(
444
+ circle,
445
+ var(--workbench-region-ink) 1.45px,
446
+ transparent 1.65px
447
+ );
359
448
  background-position: 0 0;
360
449
  background-size: 11px 11px;
361
450
  }
@@ -364,16 +453,17 @@
364
453
  background-image:
365
454
  linear-gradient(var(--workbench-region-ink) 1px, transparent 1px),
366
455
  linear-gradient(90deg, var(--workbench-region-ink) 1px, transparent 1px);
367
- background-size: 28px 28px, 28px 28px;
456
+ background-size:
457
+ 28px 28px,
458
+ 28px 28px;
368
459
  }
369
460
 
370
461
  .workbench-background-region.is-material-hatched {
371
- background-image:
372
- repeating-linear-gradient(
373
- 135deg,
374
- var(--workbench-region-ink) 0 1.2px,
375
- transparent 1.2px 9px
376
- );
462
+ background-image: repeating-linear-gradient(
463
+ 135deg,
464
+ var(--workbench-region-ink) 0 1.2px,
465
+ transparent 1.2px 9px
466
+ );
377
467
  }
378
468
 
379
469
  .workbench-background-region.is-material-glass {
@@ -727,17 +817,33 @@
727
817
 
728
818
  .workbench-region-material.is-dotted .workbench-region-material__sample {
729
819
  background:
730
- radial-gradient(circle, color-mix(in srgb, var(--workbench-region-ink) 72%, transparent) 1px, transparent 1.12px),
820
+ radial-gradient(
821
+ circle,
822
+ color-mix(in srgb, var(--workbench-region-ink) 72%, transparent) 1px,
823
+ transparent 1.12px
824
+ ),
731
825
  var(--workbench-region-fill);
732
- background-size: 5px 5px, auto;
826
+ background-size:
827
+ 5px 5px,
828
+ auto;
733
829
  }
734
830
 
735
831
  .workbench-region-material.is-grid .workbench-region-material__sample {
736
832
  background:
737
- linear-gradient(color-mix(in srgb, var(--workbench-region-ink) 64%, transparent) 1px, transparent 1px),
738
- linear-gradient(90deg, color-mix(in srgb, var(--workbench-region-ink) 64%, transparent) 1px, transparent 1px),
833
+ linear-gradient(
834
+ color-mix(in srgb, var(--workbench-region-ink) 64%, transparent) 1px,
835
+ transparent 1px
836
+ ),
837
+ linear-gradient(
838
+ 90deg,
839
+ color-mix(in srgb, var(--workbench-region-ink) 64%, transparent) 1px,
840
+ transparent 1px
841
+ ),
739
842
  var(--workbench-region-fill);
740
- background-size: 6px 6px, 6px 6px, auto;
843
+ background-size:
844
+ 6px 6px,
845
+ 6px 6px,
846
+ auto;
741
847
  }
742
848
 
743
849
  .workbench-region-material.is-hatched .workbench-region-material__sample {
@@ -766,8 +872,18 @@
766
872
  border: none;
767
873
  border-radius: 6px 0 0 0;
768
874
  background:
769
- linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--foreground, #111) 42%, transparent) 46% 54%, transparent 55%),
770
- linear-gradient(135deg, transparent 64%, color-mix(in srgb, var(--foreground, #111) 30%, transparent) 65% 73%, transparent 74%);
875
+ linear-gradient(
876
+ 135deg,
877
+ transparent 45%,
878
+ color-mix(in srgb, var(--foreground, #111) 42%, transparent) 46% 54%,
879
+ transparent 55%
880
+ ),
881
+ linear-gradient(
882
+ 135deg,
883
+ transparent 64%,
884
+ color-mix(in srgb, var(--foreground, #111) 30%, transparent) 65% 73%,
885
+ transparent 74%
886
+ );
771
887
  cursor: nwse-resize;
772
888
  transform: scale(var(--workbench-layer-control-inverse-scale, 1));
773
889
  transform-origin: bottom right;
@@ -805,9 +921,8 @@
805
921
  .workbench-region-visibility-outline.is-selected-region {
806
922
  z-index: 2;
807
923
  border-color: color-mix(in srgb, var(--workbench-region-ink) 52%, transparent);
808
- box-shadow:
809
- 0 0 0 calc(1px * var(--workbench-region-outline-scale, 1))
810
- color-mix(in srgb, var(--background, #fff) 64%, transparent);
924
+ box-shadow: 0 0 0 calc(1px * var(--workbench-region-outline-scale, 1))
925
+ color-mix(in srgb, var(--background, #fff) 64%, transparent);
811
926
  }
812
927
 
813
928
  .workbench-layer-control__selection {
@@ -953,7 +1068,11 @@
953
1068
  --workbench-sticky-accent: #d8b25a;
954
1069
  --workbench-sticky-surface: #fff2bd;
955
1070
  --workbench-sticky-surface-strong: #ffe9a6;
956
- --workbench-sticky-border: color-mix(in srgb, var(--workbench-sticky-accent) 32%, var(--border, #e5e5e5));
1071
+ --workbench-sticky-border: color-mix(
1072
+ in srgb,
1073
+ var(--workbench-sticky-accent) 32%,
1074
+ var(--border, #e5e5e5)
1075
+ );
957
1076
  --workbench-sticky-ink: #302616;
958
1077
  --workbench-sticky-ribbon: #c89734;
959
1078
  display: flex;
@@ -1006,7 +1125,11 @@
1006
1125
  .workbench-sticky.is-graphite {
1007
1126
  --workbench-sticky-accent: oklch(0.5 0.03 250);
1008
1127
  --workbench-sticky-surface: color-mix(in srgb, #2b3038 92%, var(--workbench-sticky-accent) 8%);
1009
- --workbench-sticky-surface-strong: color-mix(in srgb, #343a44 88%, var(--workbench-sticky-accent) 12%);
1128
+ --workbench-sticky-surface-strong: color-mix(
1129
+ in srgb,
1130
+ #343a44 88%,
1131
+ var(--workbench-sticky-accent) 12%
1132
+ );
1010
1133
  --workbench-sticky-border: color-mix(in srgb, white 16%, var(--workbench-sticky-accent) 84%);
1011
1134
  --workbench-sticky-ink: #f4f4f5;
1012
1135
  --workbench-sticky-ribbon: color-mix(in srgb, #111827 72%, white 28%);
@@ -1058,7 +1181,11 @@
1058
1181
  linear-gradient(
1059
1182
  135deg,
1060
1183
  var(--workbench-sticky-surface-strong),
1061
- color-mix(in srgb, var(--workbench-sticky-surface-strong) 82%, var(--workbench-sticky-accent) 18%)
1184
+ color-mix(
1185
+ in srgb,
1186
+ var(--workbench-sticky-surface-strong) 82%,
1187
+ var(--workbench-sticky-accent) 18%
1188
+ )
1062
1189
  );
1063
1190
  box-shadow:
1064
1191
  0 20px 34px color-mix(in srgb, var(--foreground, #000) 10%, transparent),
@@ -1170,7 +1297,8 @@
1170
1297
  align-items: center;
1171
1298
  gap: 4px;
1172
1299
  padding: 4px;
1173
- border: 1px solid color-mix(in srgb, var(--workbench-sticky-accent) 18%, var(--workbench-sticky-border));
1300
+ border: 1px solid
1301
+ color-mix(in srgb, var(--workbench-sticky-accent) 18%, var(--workbench-sticky-border));
1174
1302
  border-radius: 999px;
1175
1303
  background: color-mix(in srgb, var(--background, #fff) 80%, transparent);
1176
1304
  backdrop-filter: blur(12px);
@@ -1199,7 +1327,11 @@
1199
1327
  }
1200
1328
 
1201
1329
  .workbench-sticky__tool.is-danger:hover {
1202
- border-color: color-mix(in srgb, var(--destructive, #ef4444) 28%, var(--workbench-sticky-border));
1330
+ border-color: color-mix(
1331
+ in srgb,
1332
+ var(--destructive, #ef4444) 28%,
1333
+ var(--workbench-sticky-border)
1334
+ );
1203
1335
  background: color-mix(in srgb, var(--destructive, #ef4444) 10%, var(--background, #fff));
1204
1336
  }
1205
1337
 
@@ -1260,8 +1392,18 @@
1260
1392
  height: 10px;
1261
1393
  border-radius: 3px 0 4px 0;
1262
1394
  background:
1263
- linear-gradient(135deg, transparent 54%, color-mix(in srgb, var(--workbench-sticky-ink) 38%, transparent) 55% 62%, transparent 63%),
1264
- linear-gradient(135deg, transparent 72%, color-mix(in srgb, var(--workbench-sticky-ink) 26%, transparent) 73% 80%, transparent 81%);
1395
+ linear-gradient(
1396
+ 135deg,
1397
+ transparent 54%,
1398
+ color-mix(in srgb, var(--workbench-sticky-ink) 38%, transparent) 55% 62%,
1399
+ transparent 63%
1400
+ ),
1401
+ linear-gradient(
1402
+ 135deg,
1403
+ transparent 72%,
1404
+ color-mix(in srgb, var(--workbench-sticky-ink) 26%, transparent) 73% 80%,
1405
+ transparent 81%
1406
+ );
1265
1407
  pointer-events: none;
1266
1408
  }
1267
1409
 
@@ -1352,12 +1494,11 @@
1352
1494
  z-index: 30;
1353
1495
  pointer-events: none;
1354
1496
  opacity: 0;
1355
- background:
1356
- linear-gradient(
1357
- 180deg,
1358
- color-mix(in srgb, var(--background, #fff) 82%, transparent),
1359
- color-mix(in srgb, var(--background, #fff) 74%, transparent)
1360
- );
1497
+ background: linear-gradient(
1498
+ 180deg,
1499
+ color-mix(in srgb, var(--background, #fff) 82%, transparent),
1500
+ color-mix(in srgb, var(--background, #fff) 74%, transparent)
1501
+ );
1361
1502
  transition: opacity 160ms ease;
1362
1503
  }
1363
1504
 
@@ -1610,9 +1751,7 @@
1610
1751
  display: inline-flex;
1611
1752
  align-items: stretch;
1612
1753
  gap: 0;
1613
- height: calc(
1614
- 100% + var(--wb-window-control-bleed) + var(--wb-window-control-bleed)
1615
- );
1754
+ height: calc(100% + var(--wb-window-control-bleed) + var(--wb-window-control-bleed));
1616
1755
  margin-block: var(--wb-window-control-bleed-negative);
1617
1756
  margin-left: auto;
1618
1757
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.36.52",
3
+ "version": "0.36.53",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",