@zuilib/text-editor 0.7.1 → 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
  *
@@ -654,23 +649,26 @@
654
649
  }
655
650
 
656
651
  /*
657
- * Properties row: colors for the selection (or for the next shape when
658
- * nothing is selected) plus contextual connector options. Always rendered
659
- * with a fixed minimum height so the drawing never shifts under the
660
- * pointer when the selection changes.
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).
661
656
  */
662
657
  .zui-drawing-props-host {
663
- flex-basis: 100%;
658
+ display: none;
659
+ align-items: center;
660
+ }
661
+
662
+ .zui-drawing-canvas:focus-within .zui-drawing-props-host {
664
663
  display: flex;
665
664
  }
666
665
 
667
666
  .zui-drawing-props {
668
667
  display: flex;
669
- flex-wrap: wrap;
670
668
  align-items: center;
671
669
  gap: 0.25rem;
672
- min-height: 1.75rem;
673
- padding: 0.125rem 0 0;
670
+ padding-left: 0.5rem;
671
+ border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent);
674
672
  }
675
673
 
676
674
  .zui-drawing-props-group {
@@ -697,7 +695,7 @@
697
695
  height: 1rem;
698
696
  margin: 0 0.125rem;
699
697
  padding: 0;
700
- border: 1px solid rgba(0, 0, 0, 0.18);
698
+ border: 2px solid rgba(0, 0, 0, 0.18);
701
699
  border-radius: 999px;
702
700
  cursor: pointer;
703
701
  transition:
@@ -715,16 +713,6 @@
715
713
  0 0 0 3.5px var(--zui-drawing-accent);
716
714
  }
717
715
 
718
- .zui-drawing-swatch.is-transparent {
719
- background-image: linear-gradient(
720
- 45deg,
721
- transparent 44%,
722
- #e03131 44%,
723
- #e03131 56%,
724
- transparent 56%
725
- );
726
- }
727
-
728
716
  /* Empty state */
729
717
  .zui-drawing-empty {
730
718
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuilib/text-editor",
3
- "version": "0.7.1",
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",