@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/CHANGELOG.md +28 -0
- package/DRAWING_FORMAT.md +3 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2087 -2092
- package/dist/styles.css +18 -37
- package/package.json +1 -1
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
|
-
|
|
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
|
-
/*
|
|
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
|
-
|
|
659
|
-
|
|
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
|
|
670
|
-
|
|
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.
|
|
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:
|
|
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;
|