@ibodr/draw 0.2.6 → 0.2.7
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/index.d.ts +1708 -1342
- package/dist/index.mjs +8893 -7245
- package/dist/index.mjs.map +1 -1
- package/draw.css +138 -34
- package/package.json +7 -4
package/draw.css
CHANGED
|
@@ -33,15 +33,20 @@
|
|
|
33
33
|
* background, grid, shapes, overlays, and blocker are all children of .dr-canvas,
|
|
34
34
|
* so their z-indices are relative to the canvas, not the container.
|
|
35
35
|
*
|
|
36
|
-
* watermark and canvas-in-front are siblings of .dr-canvas
|
|
37
|
-
* so they compete with the UI layer (.tlui-layout at z-index 300).
|
|
36
|
+
* collaborators, watermark, and canvas-in-front are siblings of .dr-canvas
|
|
37
|
+
* (outside it), so they compete with the UI layer (.tlui-layout at z-index 300).
|
|
38
38
|
* canvas-in-front must be below the UI layer (300) to sit between
|
|
39
|
-
* the canvas and the UI
|
|
39
|
+
* the canvas and the UI; collaborator cursors sit above canvas content
|
|
40
|
+
* (and layers that anchor to it, like comment pins) but below the
|
|
41
|
+
* in-front content and the UI panels. The watermark (a licensing element)
|
|
42
|
+
* sits above that content so it can't be occluded, but still below the
|
|
43
|
+
* in-front content and the UI.
|
|
40
44
|
*/
|
|
41
45
|
--dr-layer-canvas-hidden: -999999;
|
|
42
46
|
--dr-layer-canvas-background: 100;
|
|
43
47
|
--dr-layer-canvas-grid: 150;
|
|
44
|
-
--dr-layer-
|
|
48
|
+
--dr-layer-collaborators: 245;
|
|
49
|
+
--dr-layer-watermark: 248;
|
|
45
50
|
--dr-layer-canvas-in-front: 250;
|
|
46
51
|
--dr-layer-canvas-shapes: 300;
|
|
47
52
|
--dr-layer-canvas-overlays: 500;
|
|
@@ -78,9 +83,10 @@
|
|
|
78
83
|
|
|
79
84
|
/* Cursor SVGs */
|
|
80
85
|
--dr-cursor-none: none;
|
|
86
|
+
/* Hotspot sits between the white outline tip and the black tip: on either tip alone, hit-testing feels offset from one direction (#10855) */
|
|
81
87
|
--dr-cursor-default:
|
|
82
88
|
url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z' fill='white'/><path d='m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z' fill='white'/><path d='m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z' fill='black'/><path d='m13 10.814v11.188l2.969-2.866.428-.139h4.768z' fill='black'/></g></svg>")
|
|
83
|
-
12
|
|
89
|
+
12 10,
|
|
84
90
|
default;
|
|
85
91
|
--dr-cursor-pointer:
|
|
86
92
|
url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' fill='white'/><g stroke='black' stroke-linecap='round' stroke-width='.75'><path d='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' stroke-linejoin='round'/><path d='m21.5664 21.7344v-3.459'/><path d='m19.5508 21.7461-.016-3.473'/><path d='m17.5547 18.3047.021 3.426'/></g></g></svg>")
|
|
@@ -90,6 +96,10 @@
|
|
|
90
96
|
url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m25 16h-6.01v-6h-2.98v6h-6.01v3h6.01v6h2.98v-6h6.01z' fill='white'/><path d='m23.9902 17.0103h-6v-6.01h-.98v6.01h-6v.98h6v6.01h.98v-6.01h6z' fill='%23231f1f'/></g></svg>")
|
|
91
97
|
16 16,
|
|
92
98
|
crosshair;
|
|
99
|
+
--dr-cursor-comment:
|
|
100
|
+
url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g filter='url(%23shadow)'><path d='M5 19.5 L5 11 A8 8 0 0 1 13 3 A8 8 0 0 1 21 11 A8 8 0 0 1 13 19 Z' fill='white' stroke='black' stroke-width='1' stroke-linejoin='round'/></g></svg>")
|
|
101
|
+
5 19,
|
|
102
|
+
crosshair;
|
|
93
103
|
--dr-cursor-move:
|
|
94
104
|
url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m19 14h1v1h-1zm1 6h-1v-1h1zm-5-5h-1v-1h1zm0 5h-1v-1h1zm2-10.987-7.985 7.988 5.222 5.221 2.763 2.763 7.984-7.985z' fill='white'/><g fill='black'><path d='m23.5664 16.9971-2.557-2.809v1.829h-4.009-4.001v-1.829l-2.571 2.809 2.572 2.808-.001-1.808h4.001 4.009l-.001 1.808z'/><path d='m17.9873 17h.013v-4.001l1.807.001-2.807-2.571-2.809 2.57h1.809v4.001h.008v4.002l-1.828-.001 2.807 2.577 2.805-2.576h-1.805z'/></g></g></svg>")
|
|
95
105
|
16 16,
|
|
@@ -191,6 +201,7 @@
|
|
|
191
201
|
--dr-color-text-0: hsl(0, 0%, 11%);
|
|
192
202
|
--dr-color-text-1: hsl(0, 0%, 18%);
|
|
193
203
|
--dr-color-text-3: hsl(204, 4%, 45%);
|
|
204
|
+
--dr-color-text-disabled: hsl(204, 4%, 55%);
|
|
194
205
|
--dr-color-text-shadow: hsl(0, 0%, 100%);
|
|
195
206
|
--dr-color-text-highlight: hsl(52, 100%, 50%);
|
|
196
207
|
--dr-color-text-highlight-p3: color(display-p3 0.972 0.8205 0.05);
|
|
@@ -251,6 +262,7 @@
|
|
|
251
262
|
--dr-color-text-0: hsl(0, 9%, 94%);
|
|
252
263
|
--dr-color-text-1: hsl(0, 0%, 85%);
|
|
253
264
|
--dr-color-text-3: hsl(204, 4%, 75%);
|
|
265
|
+
--dr-color-text-disabled: hsl(204, 4%, 50%);
|
|
254
266
|
--dr-color-text-shadow: hsl(210, 13%, 18%);
|
|
255
267
|
--dr-color-text-highlight: hsl(52, 100%, 41%);
|
|
256
268
|
--dr-color-text-highlight-p3: color(display-p3 0.8078 0.6225 0.0312);
|
|
@@ -299,6 +311,12 @@
|
|
|
299
311
|
outline: 1px solid var(--dr-color-low);
|
|
300
312
|
}
|
|
301
313
|
|
|
314
|
+
/* The host for <EditorPortal>, last among the container's children. It's a position in the DOM
|
|
315
|
+
rather than a box: `display: contents` keeps what it holds positioned against the container. */
|
|
316
|
+
.dr-portal-host {
|
|
317
|
+
display: contents;
|
|
318
|
+
}
|
|
319
|
+
|
|
302
320
|
input,
|
|
303
321
|
*[contenteditable],
|
|
304
322
|
*[contenteditable] * {
|
|
@@ -414,6 +432,30 @@ input,
|
|
|
414
432
|
z-index: var(--dr-layer-canvas-shapes);
|
|
415
433
|
}
|
|
416
434
|
|
|
435
|
+
/* The collaborator cursor layer: a sibling of .dr-canvas, above all canvas content, below the
|
|
436
|
+
in-front layer (250) and the UI panels (300). Display-only — pointer events pass through. */
|
|
437
|
+
.dr-collaborators {
|
|
438
|
+
position: absolute;
|
|
439
|
+
inset: 0px;
|
|
440
|
+
z-index: var(--dr-layer-collaborators);
|
|
441
|
+
pointer-events: none;
|
|
442
|
+
overflow: clip;
|
|
443
|
+
contain: layout style size;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.dr-collaborators__item {
|
|
447
|
+
position: absolute;
|
|
448
|
+
top: 0px;
|
|
449
|
+
left: 0px;
|
|
450
|
+
overflow: visible;
|
|
451
|
+
pointer-events: none;
|
|
452
|
+
transform-origin: top left;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.dr-cursor {
|
|
456
|
+
overflow: visible;
|
|
457
|
+
}
|
|
458
|
+
|
|
417
459
|
/* --------------- Overlay Stack --------------- */
|
|
418
460
|
|
|
419
461
|
/* -------------- Selection foreground -------------- */
|
|
@@ -653,7 +695,15 @@ input,
|
|
|
653
695
|
overflow: hidden;
|
|
654
696
|
}
|
|
655
697
|
|
|
656
|
-
|
|
698
|
+
/**
|
|
699
|
+
* Only when there's actually a highlight to style. ProseMirror hides the native selection whenever
|
|
700
|
+
* it holds a NodeSelection — triple-clicking a list's bullet selects the whole list, for one — by
|
|
701
|
+
* zeroing the ::selection background and nothing else. Painting the selected-contrast color with
|
|
702
|
+
* no highlight behind it leaves the text invisible against the shape, and `inherit` can't undo it:
|
|
703
|
+
* highlight pseudo-elements inherit from the ancestor's ::selection, so it just picks the same
|
|
704
|
+
* color back up.
|
|
705
|
+
*/
|
|
706
|
+
.dr-text-input:not(:has(.ProseMirror-hideselection))::selection {
|
|
657
707
|
background: var(--dr-color-selected);
|
|
658
708
|
color: var(--dr-color-selected-contrast);
|
|
659
709
|
text-shadow: none;
|
|
@@ -806,17 +856,17 @@ input,
|
|
|
806
856
|
.dr-rich-text ol {
|
|
807
857
|
text-align: left;
|
|
808
858
|
margin: 0;
|
|
809
|
-
padding-left:
|
|
859
|
+
padding-left: 1.625ch;
|
|
810
860
|
/* Some resets, like Tailwind, nix the list styling. */
|
|
811
861
|
list-style: revert;
|
|
812
862
|
}
|
|
813
863
|
|
|
814
864
|
.dr-rich-text ol:has(> li:nth-child(10)) {
|
|
815
|
-
padding-left:
|
|
865
|
+
padding-left: 2.625ch;
|
|
816
866
|
}
|
|
817
867
|
|
|
818
868
|
.dr-rich-text ol:has(> li:nth-child(100)) {
|
|
819
|
-
padding-left:
|
|
869
|
+
padding-left: 3.625ch;
|
|
820
870
|
}
|
|
821
871
|
|
|
822
872
|
.dr-rich-text h1,
|
|
@@ -827,6 +877,16 @@ input,
|
|
|
827
877
|
.dr-rich-text h6 {
|
|
828
878
|
margin-top: 5px;
|
|
829
879
|
margin-bottom: 10px;
|
|
880
|
+
/**
|
|
881
|
+
* Headings render at a larger font-size than the body text (via the browser's
|
|
882
|
+
* default h1–h6 sizing), so they can't inherit the container's resolved
|
|
883
|
+
* whole-pixel line-height — that value is derived from the base font size and
|
|
884
|
+
* would cram the taller lines together. Instead, scale line-height with each
|
|
885
|
+
* heading's own font-size using tldraw's unitless line-height multiplier, which
|
|
886
|
+
* the rich-text render/measure paths expose here. The 1.35 fallback mirrors the
|
|
887
|
+
* default theme line-height (see defaultThemes.ts).
|
|
888
|
+
*/
|
|
889
|
+
line-height: var(--dr-rich-text-heading-line-height, 1.35);
|
|
830
890
|
}
|
|
831
891
|
|
|
832
892
|
.dr-rich-text a {
|
|
@@ -855,6 +915,7 @@ input,
|
|
|
855
915
|
.dr-theme__dark .dr-rich-text mark {
|
|
856
916
|
background-color: var(--dr-color-text-highlight);
|
|
857
917
|
color: currentColor;
|
|
918
|
+
text-shadow: none;
|
|
858
919
|
}
|
|
859
920
|
|
|
860
921
|
@supports (color: color(display-p3 1 1 1)) {
|
|
@@ -1027,6 +1088,15 @@ input,
|
|
|
1027
1088
|
color: var(--dr-color-text-1);
|
|
1028
1089
|
}
|
|
1029
1090
|
|
|
1091
|
+
.dr-content-slot {
|
|
1092
|
+
position: absolute;
|
|
1093
|
+
inset: 0px;
|
|
1094
|
+
height: 100%;
|
|
1095
|
+
width: 100%;
|
|
1096
|
+
pointer-events: none;
|
|
1097
|
+
transform-origin: top left;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1030
1100
|
/* -------------------- Group shape ------------------ */
|
|
1031
1101
|
|
|
1032
1102
|
.dr-group {
|
|
@@ -1614,9 +1684,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1614
1684
|
* (which creates its own stacking context at z-index 300), so their
|
|
1615
1685
|
* z-indices are relative to the layout, not the container.
|
|
1616
1686
|
*
|
|
1617
|
-
* cursor
|
|
1618
|
-
*
|
|
1619
|
-
* to that context.
|
|
1687
|
+
* cursor is rendered inside canvas-in-front (stacking context at
|
|
1688
|
+
* z-index 250), so their z-indices are relative to that context.
|
|
1620
1689
|
*/
|
|
1621
1690
|
--dr-layer-above: 1;
|
|
1622
1691
|
--dr-layer-focused-input: 10;
|
|
@@ -1626,7 +1695,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1626
1695
|
--dr-layer-toasts: 650;
|
|
1627
1696
|
--dr-layer-cursor: 700;
|
|
1628
1697
|
--dr-layer-header-footer: 999;
|
|
1629
|
-
--dr-layer-following-indicator: 1000;
|
|
1630
1698
|
}
|
|
1631
1699
|
|
|
1632
1700
|
/* Button */
|
|
@@ -1656,14 +1724,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1656
1724
|
|
|
1657
1725
|
.tlui-button:disabled,
|
|
1658
1726
|
.tlui-button[data-disabled] {
|
|
1659
|
-
color: var(--dr-color-text-
|
|
1727
|
+
color: var(--dr-color-text-disabled);
|
|
1660
1728
|
text-shadow: none;
|
|
1661
1729
|
cursor: default;
|
|
1662
1730
|
}
|
|
1663
1731
|
|
|
1664
1732
|
.tlui-button:disabled .tlui-kbd,
|
|
1665
1733
|
.tlui-button[data-disabled] .tlui-kbd {
|
|
1666
|
-
color: var(--dr-color-text-
|
|
1734
|
+
color: var(--dr-color-text-disabled);
|
|
1667
1735
|
}
|
|
1668
1736
|
|
|
1669
1737
|
.tlui-button > * {
|
|
@@ -2032,6 +2100,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2032
2100
|
height: 15px;
|
|
2033
2101
|
}
|
|
2034
2102
|
|
|
2103
|
+
.tlui-icon__tiny {
|
|
2104
|
+
width: 12px;
|
|
2105
|
+
height: 12px;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2035
2108
|
/* --------------------- Slider --------------------- */
|
|
2036
2109
|
|
|
2037
2110
|
.tlui-slider__container {
|
|
@@ -2139,6 +2212,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2139
2212
|
flex-shrink: 0;
|
|
2140
2213
|
}
|
|
2141
2214
|
|
|
2215
|
+
/* The label is a fixed bit of chrome next to the input; it should never be squeezed. Without this,
|
|
2216
|
+
an inherited `overflow-wrap: anywhere` (e.g. from .tlui-dialog__body) drops its min-content width
|
|
2217
|
+
to a single character and short labels wrap mid-word, e.g. "URL" breaking after "UR". */
|
|
2218
|
+
.tlui-input__wrapper > label {
|
|
2219
|
+
flex-shrink: 0;
|
|
2220
|
+
overflow-wrap: normal;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2142
2223
|
/* If mobile use 16px as font size */
|
|
2143
2224
|
/* On iOS, font size under 16px in an input will make the page zoom into the input 🤦♂️ */
|
|
2144
2225
|
/* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
|
|
@@ -2360,6 +2441,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2360
2441
|
-ms-overflow-style: none;
|
|
2361
2442
|
}
|
|
2362
2443
|
|
|
2444
|
+
.tlui-hover-card__content {
|
|
2445
|
+
position: relative;
|
|
2446
|
+
margin: 0px;
|
|
2447
|
+
border: none;
|
|
2448
|
+
border-radius: var(--dr-radius-3);
|
|
2449
|
+
background-color: var(--dr-color-panel);
|
|
2450
|
+
box-shadow: var(--dr-shadow-3);
|
|
2451
|
+
z-index: var(--dr-layer-menus);
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2363
2454
|
/* -------------------- Menu Zone ------------------- */
|
|
2364
2455
|
|
|
2365
2456
|
.tlui-menu-zone {
|
|
@@ -2631,7 +2722,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2631
2722
|
left: 8px;
|
|
2632
2723
|
}
|
|
2633
2724
|
|
|
2634
|
-
/*
|
|
2725
|
+
/*
|
|
2635
2726
|
* focusing skip-to-main-content hide top ui buttons to make sure we avoid
|
|
2636
2727
|
* z-index clashes on hover (see issue #8328)
|
|
2637
2728
|
*/
|
|
@@ -2816,6 +2907,7 @@ tldraw? probably.
|
|
|
2816
2907
|
.tlui-layout__bottom {
|
|
2817
2908
|
grid-row: 2;
|
|
2818
2909
|
width: 100%;
|
|
2910
|
+
min-width: 0px;
|
|
2819
2911
|
}
|
|
2820
2912
|
|
|
2821
2913
|
.tlui-layout__bottom__main {
|
|
@@ -3189,6 +3281,7 @@ tldraw? probably.
|
|
|
3189
3281
|
.tlui-toast__main {
|
|
3190
3282
|
flex-grow: 2;
|
|
3191
3283
|
max-width: 280px;
|
|
3284
|
+
min-width: 0;
|
|
3192
3285
|
}
|
|
3193
3286
|
|
|
3194
3287
|
.tlui-toast__content {
|
|
@@ -3197,6 +3290,7 @@ tldraw? probably.
|
|
|
3197
3290
|
line-height: 1.4;
|
|
3198
3291
|
flex-direction: column;
|
|
3199
3292
|
gap: var(--dr-space-3);
|
|
3293
|
+
min-width: 0;
|
|
3200
3294
|
}
|
|
3201
3295
|
|
|
3202
3296
|
.tlui-toast__main[data-actions='true'] .tlui-toast__content {
|
|
@@ -3208,6 +3302,7 @@ tldraw? probably.
|
|
|
3208
3302
|
color: var(--dr-color-text-1);
|
|
3209
3303
|
/* this makes the default toast look better */
|
|
3210
3304
|
line-height: 16px;
|
|
3305
|
+
overflow-wrap: anywhere;
|
|
3211
3306
|
}
|
|
3212
3307
|
|
|
3213
3308
|
.tlui-toast__description {
|
|
@@ -3215,6 +3310,7 @@ tldraw? probably.
|
|
|
3215
3310
|
padding: var(--dr-space-3);
|
|
3216
3311
|
margin: 0px;
|
|
3217
3312
|
padding: 0px;
|
|
3313
|
+
overflow-wrap: anywhere;
|
|
3218
3314
|
}
|
|
3219
3315
|
|
|
3220
3316
|
.tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
|
|
@@ -3278,8 +3374,17 @@ tldraw? probably.
|
|
|
3278
3374
|
height: 100%;
|
|
3279
3375
|
z-index: var(--dr-layer-canvas-overlays);
|
|
3280
3376
|
background-color: var(--dr-color-overlay);
|
|
3281
|
-
pointer-events: all;
|
|
3282
3377
|
animation: tl-fade-in 0.12s ease-out;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
.tlui-dialog__positioner {
|
|
3381
|
+
position: absolute;
|
|
3382
|
+
top: 0px;
|
|
3383
|
+
left: 0px;
|
|
3384
|
+
width: 100%;
|
|
3385
|
+
height: 100%;
|
|
3386
|
+
z-index: var(--dr-layer-canvas-overlays);
|
|
3387
|
+
pointer-events: all;
|
|
3283
3388
|
display: grid;
|
|
3284
3389
|
place-items: center;
|
|
3285
3390
|
overflow-y: auto;
|
|
@@ -3332,6 +3437,7 @@ tldraw? probably.
|
|
|
3332
3437
|
color: var(--dr-color-text-1);
|
|
3333
3438
|
user-select: all;
|
|
3334
3439
|
-webkit-user-select: text;
|
|
3440
|
+
overflow-wrap: anywhere;
|
|
3335
3441
|
}
|
|
3336
3442
|
.tlui-dialog__body a {
|
|
3337
3443
|
color: var(--dr-color-selected);
|
|
@@ -3443,6 +3549,14 @@ tldraw? probably.
|
|
|
3443
3549
|
border-bottom: 1px solid var(--dr-color-divider);
|
|
3444
3550
|
}
|
|
3445
3551
|
|
|
3552
|
+
.tlui-shortcuts-dialog__disabled-notice {
|
|
3553
|
+
flex: 0 0 auto;
|
|
3554
|
+
padding: var(--dr-space-3) var(--dr-space-4);
|
|
3555
|
+
border-bottom: 1px solid var(--dr-color-divider);
|
|
3556
|
+
background-color: var(--dr-color-muted-2);
|
|
3557
|
+
color: var(--dr-color-text-1);
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3446
3560
|
.tlui-shortcuts-dialog__body {
|
|
3447
3561
|
position: relative;
|
|
3448
3562
|
columns: 3;
|
|
@@ -3656,7 +3770,8 @@ tldraw? probably.
|
|
|
3656
3770
|
align-items: center;
|
|
3657
3771
|
}
|
|
3658
3772
|
|
|
3659
|
-
.tlui-people-menu__user__color
|
|
3773
|
+
.tlui-people-menu__user__color,
|
|
3774
|
+
.tlui-people-menu__user__edit {
|
|
3660
3775
|
flex-shrink: 0;
|
|
3661
3776
|
}
|
|
3662
3777
|
|
|
@@ -3702,7 +3817,8 @@ tldraw? probably.
|
|
|
3702
3817
|
}
|
|
3703
3818
|
|
|
3704
3819
|
.tlui-people-menu__item {
|
|
3705
|
-
|
|
3820
|
+
display: flex;
|
|
3821
|
+
align-items: center;
|
|
3706
3822
|
}
|
|
3707
3823
|
|
|
3708
3824
|
.tlui-people-menu__item:last-of-type .tlui-button__menu {
|
|
@@ -3710,7 +3826,8 @@ tldraw? probably.
|
|
|
3710
3826
|
}
|
|
3711
3827
|
|
|
3712
3828
|
.tlui-people-menu__item__button {
|
|
3713
|
-
padding:
|
|
3829
|
+
padding-inline-start: 12px;
|
|
3830
|
+
padding-inline-end: 0px;
|
|
3714
3831
|
overflow: hidden;
|
|
3715
3832
|
}
|
|
3716
3833
|
|
|
@@ -3720,7 +3837,7 @@ tldraw? probably.
|
|
|
3720
3837
|
align-items: auto;
|
|
3721
3838
|
justify-content: flex-start;
|
|
3722
3839
|
flex-grow: 2;
|
|
3723
|
-
gap:
|
|
3840
|
+
gap: 12px;
|
|
3724
3841
|
}
|
|
3725
3842
|
|
|
3726
3843
|
.tlui-people-menu__name {
|
|
@@ -3731,18 +3848,9 @@ tldraw? probably.
|
|
|
3731
3848
|
}
|
|
3732
3849
|
|
|
3733
3850
|
.tlui-people-menu__item__follow {
|
|
3734
|
-
position: absolute;
|
|
3735
|
-
top: 0px;
|
|
3736
|
-
inset-inline-end: 0px;
|
|
3737
|
-
max-width: 40px;
|
|
3738
3851
|
flex-shrink: 0;
|
|
3739
3852
|
}
|
|
3740
3853
|
|
|
3741
|
-
.tlui-people-menu__item[data-follow='true'],
|
|
3742
|
-
.tlui-people-menu__item:has(.tlui-button:focus-visible) {
|
|
3743
|
-
padding-inline-end: 36px;
|
|
3744
|
-
}
|
|
3745
|
-
|
|
3746
3854
|
.tlui-people-menu__item[data-follow='true'] .tlui-people-menu__item__follow,
|
|
3747
3855
|
.tlui-people-menu__item:has(.tlui-button:focus-visible) .tlui-people-menu__item__follow {
|
|
3748
3856
|
opacity: 1;
|
|
@@ -3753,9 +3861,6 @@ tldraw? probably.
|
|
|
3753
3861
|
opacity: 0;
|
|
3754
3862
|
}
|
|
3755
3863
|
|
|
3756
|
-
.tlui-people-menu__item:hover {
|
|
3757
|
-
padding-right: 36px;
|
|
3758
|
-
}
|
|
3759
3864
|
.tlui-people-menu__item:hover .tlui-people-menu__item__follow {
|
|
3760
3865
|
opacity: 1;
|
|
3761
3866
|
}
|
|
@@ -3769,7 +3874,6 @@ tldraw? probably.
|
|
|
3769
3874
|
inset: 0px;
|
|
3770
3875
|
border-width: 2px;
|
|
3771
3876
|
border-style: solid;
|
|
3772
|
-
z-index: var(--dr-layer-following-indicator);
|
|
3773
3877
|
pointer-events: none;
|
|
3774
3878
|
}
|
|
3775
3879
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibodr/draw",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,15 +25,18 @@
|
|
|
25
25
|
"@tiptap/core": "^3.23.6",
|
|
26
26
|
"@tiptap/extension-code": "^3.23.6",
|
|
27
27
|
"@tiptap/extension-highlight": "^3.23.6",
|
|
28
|
+
"@tiptap/extension-typography": "3.23.6",
|
|
28
29
|
"@tiptap/pm": "^3.23.6",
|
|
29
30
|
"@tiptap/react": "^3.23.6",
|
|
30
31
|
"@tiptap/starter-kit": "^3.23.6",
|
|
31
32
|
"classnames": "^2.5.1",
|
|
32
33
|
"lz-string": "^1.5.0",
|
|
33
34
|
"radix-ui": "^1.4.3",
|
|
34
|
-
"@ibodr/
|
|
35
|
-
"@ibodr/
|
|
36
|
-
"@ibodr/
|
|
35
|
+
"@ibodr/driver": "0.2.7",
|
|
36
|
+
"@ibodr/schema": "0.2.7",
|
|
37
|
+
"@ibodr/state": "0.2.7",
|
|
38
|
+
"@ibodr/editor": "0.2.7",
|
|
39
|
+
"@ibodr/store": "0.2.7"
|
|
37
40
|
},
|
|
38
41
|
"peerDependencies": {
|
|
39
42
|
"react": "^18.2.0 || ^19.2.1",
|