Commit 4861ece
authored
feat: revamp color picker (#23)
* chore: import new color json
* chore: generate css vars
* chore: render text and bg colors using tokens
* feat: implement new color picker
* fix: transfer popover focus
* fix: replicate logic onto background popover
* chore: adjust i18n
* chore: fix selection loss on interaction with popover
* chore: pass getSubscriptions in EditorContext
* chore: default color tooltip
* fix: forward ref in color tile
* fix: editor focus after opening popover
* chore: fix lint
* chore: maintain selection after changing color
* fix: font color for href and inline code
* fix: focus and popover conflicts
* chore: revert unnecessary forceShow
* chore: dummy commit
* fix: don't break cover1 parent ee5124b commit 4861ece
File tree
27 files changed
+1986
-348
lines changed- scripts/system-token
- src
- @types/translations
- application/slate-yjs
- assets/icons
- components
- editor
- components
- leaf
- href
- toolbar/selection-toolbar
- actions
- view-meta
- styles/variables
- utils
- tailwind
27 files changed
+1986
-348
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
428 | 432 | | |
429 | 433 | | |
430 | 434 | | |
431 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
| |||
454 | 462 | | |
455 | 463 | | |
456 | 464 | | |
457 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
| |||
480 | 492 | | |
481 | 493 | | |
482 | 494 | | |
483 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
484 | 500 | | |
485 | 501 | | |
486 | 502 | | |
| |||
506 | 522 | | |
507 | 523 | | |
508 | 524 | | |
509 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
510 | 530 | | |
511 | 531 | | |
512 | 532 | | |
| |||
532 | 552 | | |
533 | 553 | | |
534 | 554 | | |
535 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
536 | 560 | | |
537 | 561 | | |
538 | 562 | | |
| |||
558 | 582 | | |
559 | 583 | | |
560 | 584 | | |
561 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
562 | 590 | | |
563 | 591 | | |
564 | 592 | | |
| |||
584 | 612 | | |
585 | 613 | | |
586 | 614 | | |
587 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
588 | 620 | | |
589 | 621 | | |
590 | 622 | | |
| |||
610 | 642 | | |
611 | 643 | | |
612 | 644 | | |
613 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
614 | 650 | | |
615 | 651 | | |
616 | 652 | | |
| |||
636 | 672 | | |
637 | 673 | | |
638 | 674 | | |
639 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
640 | 680 | | |
641 | 681 | | |
642 | 682 | | |
| |||
662 | 702 | | |
663 | 703 | | |
664 | 704 | | |
665 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
666 | 710 | | |
667 | 711 | | |
668 | 712 | | |
| |||
688 | 732 | | |
689 | 733 | | |
690 | 734 | | |
691 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
692 | 740 | | |
693 | 741 | | |
694 | 742 | | |
| |||
714 | 762 | | |
715 | 763 | | |
716 | 764 | | |
717 | | - | |
| 765 | + | |
718 | 766 | | |
719 | 767 | | |
720 | 768 | | |
| |||
740 | 788 | | |
741 | 789 | | |
742 | 790 | | |
743 | | - | |
| 791 | + | |
744 | 792 | | |
745 | 793 | | |
746 | 794 | | |
| |||
766 | 814 | | |
767 | 815 | | |
768 | 816 | | |
769 | | - | |
| 817 | + | |
770 | 818 | | |
771 | 819 | | |
772 | 820 | | |
| |||
792 | 840 | | |
793 | 841 | | |
794 | 842 | | |
795 | | - | |
| 843 | + | |
796 | 844 | | |
797 | 845 | | |
798 | 846 | | |
| |||
818 | 866 | | |
819 | 867 | | |
820 | 868 | | |
821 | | - | |
| 869 | + | |
822 | 870 | | |
823 | 871 | | |
824 | 872 | | |
| |||
844 | 892 | | |
845 | 893 | | |
846 | 894 | | |
847 | | - | |
| 895 | + | |
848 | 896 | | |
849 | 897 | | |
850 | 898 | | |
| |||
896 | 944 | | |
897 | 945 | | |
898 | 946 | | |
899 | | - | |
| 947 | + | |
900 | 948 | | |
901 | 949 | | |
902 | 950 | | |
| |||
922 | 970 | | |
923 | 971 | | |
924 | 972 | | |
925 | | - | |
| 973 | + | |
926 | 974 | | |
927 | 975 | | |
928 | 976 | | |
| |||
0 commit comments