@photoroom/ui 0.1.226 → 0.1.227

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.226",
3
+ "version": "0.1.227",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [
package/theme.css CHANGED
@@ -11,6 +11,13 @@
11
11
 
12
12
  @import "./colors.css";
13
13
 
14
+ /*
15
+ * Custom variants (replaces tailwind.config.js darkMode and src/plugins/variants.js)
16
+ */
17
+ @custom-variant dark (&:where(.theme-dark, .theme-dark *));
18
+ @custom-variant tall (@media (min-height: 780px));
19
+ @custom-variant mobile (@media (max-width: 600px));
20
+
14
21
  @theme inline {
15
22
  /* Base */
16
23
  --color-black: var(--color-black);
@@ -350,141 +357,67 @@
350
357
  }
351
358
 
352
359
  /*
353
- * Keyframes (replaces tailwind.config.js theme.extend.keyframes)
360
+ * Content-to-edge spacing tokens (used only by the @utility blocks below)
361
+ * https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?node-id=11366-12472
354
362
  */
355
- @keyframes bone-pulse {
356
- 0% {
357
- background-color: var(--color-neutral-alpha-100);
358
- }
359
- 50% {
360
- background-color: var(--color-neutral-alpha-300);
361
- }
362
- 100% {
363
- background-color: var(--color-neutral-alpha-100);
364
- }
365
- }
366
- @keyframes tooltip-slide-down {
367
- from {
368
- opacity: 0;
369
- transform: translateY(-10px);
370
- }
371
- to {
372
- opacity: 1;
373
- transform: translateY(0);
374
- }
375
- }
376
- @keyframes tooltip-slide-up {
377
- from {
378
- opacity: 0;
379
- transform: translateY(10px);
380
- }
381
- to {
382
- opacity: 1;
383
- transform: translateY(0);
384
- }
385
- }
386
- @keyframes tooltip-slide-left {
387
- from {
388
- opacity: 0;
389
- transform: translateX(10px);
390
- }
391
- to {
392
- opacity: 1;
393
- transform: translateX(0);
394
- }
395
- }
396
- @keyframes tooltip-slide-right {
397
- from {
398
- opacity: 0;
399
- transform: translateX(-10px);
400
- }
401
- to {
402
- opacity: 1;
403
- transform: translateX(0);
404
- }
405
- }
406
- @keyframes button-loading-indeterminate-wiggle {
407
- 0% {
408
- transform: translate(-200%, -50%);
409
- }
410
- 50% {
411
- transform: translate(200%, -50%);
412
- }
413
- 100% {
414
- transform: translate(-200%, -50%);
415
- }
416
- }
417
- @keyframes dialog-overlay-enter {
418
- from {
419
- opacity: 0;
420
- }
421
- to {
422
- opacity: 1;
423
- }
424
- }
425
- @keyframes dialog-overlay-leave {
426
- from {
427
- opacity: 1;
428
- }
429
- to {
430
- opacity: 0;
431
- }
432
- }
433
- @keyframes dialog-enter {
434
- from {
435
- transform: scale(0.95);
436
- }
437
- to {
438
- transform: scale(1);
439
- }
440
- }
441
- @keyframes dialog-leave {
442
- from {
443
- transform: scale(1);
444
- }
445
- to {
446
- transform: scale(0.95);
447
- }
448
- }
449
- @keyframes spotlight-fade-subdued {
450
- 0% {
451
- background-color: var(--color-background-spotlight);
452
- }
453
- 100% {
454
- background-color: var(--color-background-subdued);
455
- }
456
- }
457
- @keyframes spotlight-fade-white {
458
- 0% {
459
- background-color: var(--color-background-spotlight);
460
- }
461
- 100% {
462
- background-color: var(--color-background-white);
463
- }
464
- }
465
- @keyframes radix-accordion-slide-down {
466
- from {
467
- height: 0;
468
- }
469
- to {
470
- height: var(--radix-accordion-content-height);
471
- }
472
- }
473
- @keyframes radix-accordion-slide-up {
474
- from {
475
- height: var(--radix-accordion-content-height);
476
- }
477
- to {
478
- height: 0;
479
- }
480
- }
363
+ @theme {
364
+ --content-edge-150: 4px;
365
+ --content-edge-200: 5px;
366
+ --content-edge-250: 6px;
367
+ --content-edge-300: 7px;
368
+ --content-edge-350: 8px;
369
+ --content-edge-400: 10px;
370
+ --content-edge-450: 11px;
371
+ --content-edge-500: 12px;
372
+ --content-edge-550: 13px;
373
+ --content-edge-600: 14px;
374
+ --content-edge-650: 16px;
375
+ --content-edge-700: 17px;
376
+ --content-edge-750: 18px;
377
+ --content-edge-800: 19px;
481
378
 
482
- /*
483
- * Custom variants (replaces tailwind.config.js darkMode and src/plugins/variants.js)
484
- */
485
- @custom-variant dark (&:where(.theme-dark, .theme-dark *));
486
- @custom-variant tall (@media (min-height: 780px));
487
- @custom-variant mobile (@media (max-width: 600px));
379
+ --content-edge-spacious-200: 6px;
380
+ --content-edge-spacious-250: 8px;
381
+ --content-edge-spacious-300: 10px;
382
+ --content-edge-spacious-350: 11px;
383
+ --content-edge-spacious-400: 13px;
384
+ --content-edge-spacious-450: 14px;
385
+ --content-edge-spacious-500: 16px;
386
+ --content-edge-spacious-550: 18px;
387
+ --content-edge-spacious-600: 19px;
388
+ --content-edge-spacious-650: 21px;
389
+ --content-edge-spacious-700: 22px;
390
+ --content-edge-spacious-750: 24px;
391
+ --content-edge-spacious-800: 26px;
392
+
393
+ --icon-edge-200: 4px;
394
+ --icon-edge-250: 5px;
395
+ --icon-edge-300: 6px;
396
+ --icon-edge-350: 6px;
397
+ --icon-edge-400: 8px;
398
+ --icon-edge-450: 9px;
399
+ --icon-edge-500: 10px;
400
+ --icon-edge-550: 11px;
401
+ --icon-edge-600: 12px;
402
+ --icon-edge-650: 13px;
403
+ --icon-edge-700: 14px;
404
+ --icon-edge-750: 15px;
405
+ --icon-edge-800: 16px;
406
+
407
+ --icon-edge-spacious-200: 5px;
408
+ --icon-edge-spacious-250: 7px;
409
+ --icon-edge-spacious-300: 9px;
410
+ --icon-edge-spacious-350: 9px;
411
+ --icon-edge-spacious-400: 11px;
412
+ --icon-edge-spacious-450: 12px;
413
+ --icon-edge-spacious-500: 14px;
414
+ --icon-edge-spacious-550: 16px;
415
+ --icon-edge-spacious-600: 17px;
416
+ --icon-edge-spacious-650: 18px;
417
+ --icon-edge-spacious-700: 19px;
418
+ --icon-edge-spacious-750: 21px;
419
+ --icon-edge-spacious-800: 23px;
420
+ }
488
421
 
489
422
  /*
490
423
  * Custom utilities (replaces src/plugins/transitions.js)
@@ -828,7 +761,7 @@
828
761
 
829
762
  /*
830
763
  * Color picker overrides for react-colorful.
831
- * !important is needed because react-colorful injects unlayered <style>,
764
+ * !important is needed because react-colorful injects unlayered \3c style>,
832
765
  * which beats anything inside @layer utilities regardless of specificity.
833
766
  */
834
767
  @utility misc-color-picker {
@@ -862,69 +795,6 @@
862
795
  color: transparent;
863
796
  }
864
797
 
865
- /*
866
- * Content-to-edge spacing tokens (used only by the @utility blocks below)
867
- * https://www.figma.com/file/cHgANa7dtzDDGXk7dKuAOQ/Design-system?node-id=11366-12472
868
- */
869
- @theme {
870
- --content-edge-150: 4px;
871
- --content-edge-200: 5px;
872
- --content-edge-250: 6px;
873
- --content-edge-300: 7px;
874
- --content-edge-350: 8px;
875
- --content-edge-400: 10px;
876
- --content-edge-450: 11px;
877
- --content-edge-500: 12px;
878
- --content-edge-550: 13px;
879
- --content-edge-600: 14px;
880
- --content-edge-650: 16px;
881
- --content-edge-700: 17px;
882
- --content-edge-750: 18px;
883
- --content-edge-800: 19px;
884
-
885
- --content-edge-spacious-200: 6px;
886
- --content-edge-spacious-250: 8px;
887
- --content-edge-spacious-300: 10px;
888
- --content-edge-spacious-350: 11px;
889
- --content-edge-spacious-400: 13px;
890
- --content-edge-spacious-450: 14px;
891
- --content-edge-spacious-500: 16px;
892
- --content-edge-spacious-550: 18px;
893
- --content-edge-spacious-600: 19px;
894
- --content-edge-spacious-650: 21px;
895
- --content-edge-spacious-700: 22px;
896
- --content-edge-spacious-750: 24px;
897
- --content-edge-spacious-800: 26px;
898
-
899
- --icon-edge-200: 4px;
900
- --icon-edge-250: 5px;
901
- --icon-edge-300: 6px;
902
- --icon-edge-350: 6px;
903
- --icon-edge-400: 8px;
904
- --icon-edge-450: 9px;
905
- --icon-edge-500: 10px;
906
- --icon-edge-550: 11px;
907
- --icon-edge-600: 12px;
908
- --icon-edge-650: 13px;
909
- --icon-edge-700: 14px;
910
- --icon-edge-750: 15px;
911
- --icon-edge-800: 16px;
912
-
913
- --icon-edge-spacious-200: 5px;
914
- --icon-edge-spacious-250: 7px;
915
- --icon-edge-spacious-300: 9px;
916
- --icon-edge-spacious-350: 9px;
917
- --icon-edge-spacious-400: 11px;
918
- --icon-edge-spacious-450: 12px;
919
- --icon-edge-spacious-500: 14px;
920
- --icon-edge-spacious-550: 16px;
921
- --icon-edge-spacious-600: 17px;
922
- --icon-edge-spacious-650: 18px;
923
- --icon-edge-spacious-700: 19px;
924
- --icon-edge-spacious-750: 21px;
925
- --icon-edge-spacious-800: 23px;
926
- }
927
-
928
798
  /* Content to edge (replaces src/plugins/content-to-edge.js) */
929
799
  @utility content-to-edge-pl-* {
930
800
  padding-left: --value(--content-edge-*);
@@ -1437,6 +1307,136 @@
1437
1307
  @apply text-1400 font-700 leading-400 -tracking-[1.1304px];
1438
1308
  }
1439
1309
 
1310
+ /*
1311
+ * Keyframes (replaces tailwind.config.js theme.extend.keyframes)
1312
+ */
1313
+ @keyframes bone-pulse {
1314
+ 0% {
1315
+ background-color: var(--color-neutral-alpha-100);
1316
+ }
1317
+ 50% {
1318
+ background-color: var(--color-neutral-alpha-300);
1319
+ }
1320
+ 100% {
1321
+ background-color: var(--color-neutral-alpha-100);
1322
+ }
1323
+ }
1324
+ @keyframes tooltip-slide-down {
1325
+ from {
1326
+ opacity: 0;
1327
+ transform: translateY(-10px);
1328
+ }
1329
+ to {
1330
+ opacity: 1;
1331
+ transform: translateY(0);
1332
+ }
1333
+ }
1334
+ @keyframes tooltip-slide-up {
1335
+ from {
1336
+ opacity: 0;
1337
+ transform: translateY(10px);
1338
+ }
1339
+ to {
1340
+ opacity: 1;
1341
+ transform: translateY(0);
1342
+ }
1343
+ }
1344
+ @keyframes tooltip-slide-left {
1345
+ from {
1346
+ opacity: 0;
1347
+ transform: translateX(10px);
1348
+ }
1349
+ to {
1350
+ opacity: 1;
1351
+ transform: translateX(0);
1352
+ }
1353
+ }
1354
+ @keyframes tooltip-slide-right {
1355
+ from {
1356
+ opacity: 0;
1357
+ transform: translateX(-10px);
1358
+ }
1359
+ to {
1360
+ opacity: 1;
1361
+ transform: translateX(0);
1362
+ }
1363
+ }
1364
+ @keyframes button-loading-indeterminate-wiggle {
1365
+ 0% {
1366
+ transform: translate(-200%, -50%);
1367
+ }
1368
+ 50% {
1369
+ transform: translate(200%, -50%);
1370
+ }
1371
+ 100% {
1372
+ transform: translate(-200%, -50%);
1373
+ }
1374
+ }
1375
+ @keyframes dialog-overlay-enter {
1376
+ from {
1377
+ opacity: 0;
1378
+ }
1379
+ to {
1380
+ opacity: 1;
1381
+ }
1382
+ }
1383
+ @keyframes dialog-overlay-leave {
1384
+ from {
1385
+ opacity: 1;
1386
+ }
1387
+ to {
1388
+ opacity: 0;
1389
+ }
1390
+ }
1391
+ @keyframes dialog-enter {
1392
+ from {
1393
+ transform: scale(0.95);
1394
+ }
1395
+ to {
1396
+ transform: scale(1);
1397
+ }
1398
+ }
1399
+ @keyframes dialog-leave {
1400
+ from {
1401
+ transform: scale(1);
1402
+ }
1403
+ to {
1404
+ transform: scale(0.95);
1405
+ }
1406
+ }
1407
+ @keyframes spotlight-fade-subdued {
1408
+ 0% {
1409
+ background-color: var(--color-background-spotlight);
1410
+ }
1411
+ 100% {
1412
+ background-color: var(--color-background-subdued);
1413
+ }
1414
+ }
1415
+ @keyframes spotlight-fade-white {
1416
+ 0% {
1417
+ background-color: var(--color-background-spotlight);
1418
+ }
1419
+ 100% {
1420
+ background-color: var(--color-background-white);
1421
+ }
1422
+ }
1423
+ @keyframes radix-accordion-slide-down {
1424
+ from {
1425
+ height: 0;
1426
+ }
1427
+ to {
1428
+ height: var(--radix-accordion-content-height);
1429
+ }
1430
+ }
1431
+ @keyframes radix-accordion-slide-up {
1432
+ from {
1433
+ height: var(--radix-accordion-content-height);
1434
+ }
1435
+ to {
1436
+ height: 0;
1437
+ }
1438
+ }
1439
+
1440
1440
  /*
1441
1441
  * Form input resets (replaces src/plugins/forms.js)
1442
1442
  */