@tldraw/tldraw 4.4.0-canary.afdcafe834b3 → 4.4.0-canary.b80d167101d1

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-cjs/index.js CHANGED
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
19
19
  __reExport(index_exports, require("tldraw"), module.exports);
20
20
  (0, import_tldraw.registerTldrawLibraryVersion)(
21
21
  "@tldraw/tldraw",
22
- "4.4.0-canary.afdcafe834b3",
22
+ "4.4.0-canary.b80d167101d1",
23
23
  "cjs"
24
24
  );
25
25
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { registerTldrawLibraryVersion } from "tldraw";
2
2
  export * from "tldraw";
3
3
  registerTldrawLibraryVersion(
4
4
  "@tldraw/tldraw",
5
- "4.4.0-canary.afdcafe834b3",
5
+ "4.4.0-canary.b80d167101d1",
6
6
  "esm"
7
7
  );
8
8
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "4.4.0-canary.afdcafe834b3",
4
+ "version": "4.4.0-canary.b80d167101d1",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -38,8 +38,7 @@
38
38
  "prepack": "yarn run -T tsx ../../internal/scripts/prepack.ts",
39
39
  "postpack": "../../internal/scripts/postpack.sh",
40
40
  "pack-tarball": "yarn pack",
41
- "lint": "yarn run -T tsx ../../internal/scripts/lint.ts",
42
- "context": "yarn run -T tsx ../../internal/scripts/context.ts"
41
+ "lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
43
42
  },
44
43
  "files": [
45
44
  "tldraw.css",
@@ -48,7 +47,7 @@
48
47
  "src"
49
48
  ],
50
49
  "dependencies": {
51
- "tldraw": "4.4.0-canary.afdcafe834b3"
50
+ "tldraw": "4.4.0-canary.b80d167101d1"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -64,6 +64,7 @@
64
64
 
65
65
  /* Misc */
66
66
  --tl-zoom: 1;
67
+ --tl-tab-size: 2;
67
68
 
68
69
  /* Cursor SVGs */
69
70
  --tl-cursor-none: none;
@@ -899,6 +900,10 @@ input,
899
900
  /* white-space: break-spaces; */
900
901
  }
901
902
 
903
+ .tl-rich-text {
904
+ tab-size: var(--tl-tab-size, 2);
905
+ }
906
+
902
907
  .tl-rich-text p {
903
908
  margin: 0;
904
909
  /* Depending on the extensions, <p> tags can be empty, without a <br />. */
@@ -2323,6 +2328,52 @@ it from receiving any pointer events or affecting the cursor. */
2323
2328
  }
2324
2329
  }
2325
2330
 
2331
+ /* --------------------- Select --------------------- */
2332
+
2333
+ /* Trigger extends .tlui-button with space-between layout */
2334
+ .tlui-select__trigger {
2335
+ justify-content: space-between;
2336
+ gap: var(--tl-space-3);
2337
+ }
2338
+
2339
+ .tlui-select__trigger[data-state='open']::after {
2340
+ opacity: 1;
2341
+ }
2342
+
2343
+ .tlui-select__value {
2344
+ display: flex;
2345
+ align-items: center;
2346
+ gap: var(--tl-space-2);
2347
+ }
2348
+
2349
+ .tlui-select__chevron {
2350
+ flex-shrink: 0;
2351
+ color: var(--tl-color-text-2);
2352
+ }
2353
+
2354
+ /* Content extends .tlui-menu with Radix-aware sizing */
2355
+ .tlui-select__content {
2356
+ min-width: var(--radix-select-trigger-width);
2357
+ max-height: var(--radix-select-content-available-height);
2358
+ }
2359
+
2360
+ .tlui-select__viewport {
2361
+ padding: 4px 0;
2362
+ }
2363
+
2364
+ /* Item extends .tlui-button__checkbox with left-aligned text */
2365
+ .tlui-select__item {
2366
+ justify-content: flex-start;
2367
+ }
2368
+
2369
+ .tlui-select__item-indicator {
2370
+ visibility: hidden;
2371
+ }
2372
+
2373
+ .tlui-select__item[data-state='checked'] .tlui-select__item-indicator {
2374
+ visibility: visible;
2375
+ }
2376
+
2326
2377
  /* ----------------------- Kbd ---------------------- */
2327
2378
 
2328
2379
  .tlui-kbd {