@zuilib/text-editor 0.7.0 → 0.7.2

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/styles.css CHANGED
@@ -378,19 +378,14 @@
378
378
  display: flex;
379
379
  gap: 0.125rem;
380
380
  padding: 0.125rem;
381
- border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
382
- border-radius: 0.5rem;
383
- background: #ffffff;
384
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
381
+ border: 1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent));
382
+ border-radius: var(--radius-md, 0.5rem);
383
+ background: var(--popover, #ffffff);
384
+ color: var(--popover-foreground, inherit);
385
+ box-shadow: var(--shadow-medium, 0 1px 4px rgba(0, 0, 0, 0.08));
385
386
  transform: translateY(-70%);
386
387
  }
387
388
 
388
- .dark .zui-table-settings {
389
- background: #232329;
390
- border-color: rgba(255, 255, 255, 0.1);
391
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
392
- }
393
-
394
389
  /*
395
390
  * Drawing canvas.
396
391
  *
@@ -653,31 +648,27 @@
653
648
  background: color-mix(in srgb, var(--zui-drawing-accent) 14%, transparent);
654
649
  }
655
650
 
656
- /* Contextual properties: a second row that expands under the tools */
651
+ /*
652
+ * Properties: the color for the selection (or for the next shape when
653
+ * nothing is selected) plus contextual connector options. Inline in the
654
+ * tools row, so showing them never changes the row height, and only
655
+ * visible while the canvas is active (focused).
656
+ */
657
657
  .zui-drawing-props-host {
658
- flex-basis: 100%;
659
- display: flex;
660
- max-height: 0;
661
- overflow: hidden;
662
- opacity: 0;
663
- pointer-events: none;
664
- transition:
665
- max-height 0.18s ease,
666
- opacity 0.18s ease;
658
+ display: none;
659
+ align-items: center;
667
660
  }
668
661
 
669
- .zui-drawing-props-host.is-visible {
670
- max-height: 6rem;
671
- opacity: 1;
672
- pointer-events: auto;
662
+ .zui-drawing-canvas:focus-within .zui-drawing-props-host {
663
+ display: flex;
673
664
  }
674
665
 
675
666
  .zui-drawing-props {
676
667
  display: flex;
677
- flex-wrap: wrap;
678
668
  align-items: center;
679
669
  gap: 0.25rem;
680
- padding: 0.25rem 0 0.125rem;
670
+ padding-left: 0.5rem;
671
+ border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent);
681
672
  }
682
673
 
683
674
  .zui-drawing-props-group {
@@ -704,7 +695,7 @@
704
695
  height: 1rem;
705
696
  margin: 0 0.125rem;
706
697
  padding: 0;
707
- border: 1px solid rgba(0, 0, 0, 0.18);
698
+ border: 2px solid rgba(0, 0, 0, 0.18);
708
699
  border-radius: 999px;
709
700
  cursor: pointer;
710
701
  transition:
@@ -722,16 +713,6 @@
722
713
  0 0 0 3.5px var(--zui-drawing-accent);
723
714
  }
724
715
 
725
- .zui-drawing-swatch.is-transparent {
726
- background-image: linear-gradient(
727
- 45deg,
728
- transparent 44%,
729
- #e03131 44%,
730
- #e03131 56%,
731
- transparent 56%
732
- );
733
- }
734
-
735
716
  /* Empty state */
736
717
  .zui-drawing-empty {
737
718
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuilib/text-editor",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "ZUI — A markdown editor component wrapping Lexical",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",