@slotted/styles 0.1.0-beta.35 → 0.1.0-beta.37

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/app-shell/app-shell.css +16 -13
  3. package/src/button/button.css +164 -61
  4. package/src/button/button.tokens.json +5 -2
  5. package/src/calendar/calendar.css +17 -0
  6. package/src/calendar/calendar.tokens.json +1 -0
  7. package/src/chart/chart.css +3 -2
  8. package/src/collapsible/collapsible.css +24 -6
  9. package/src/collapsible/collapsible.tokens.json +1 -0
  10. package/src/command-palette/command-palette.css +51 -1
  11. package/src/command-palette/command-palette.tokens.json +1 -0
  12. package/src/dashboard-grid/dashboard-grid.css +28 -6
  13. package/src/dashboard-grid/dashboard-grid.tokens.json +2 -1
  14. package/src/entity-picker/entity-picker.css +48 -1
  15. package/src/entity-picker/entity-picker.tokens.json +1 -0
  16. package/src/field-group/field-group.css +17 -7
  17. package/src/floating-panel/floating-panel.css +31 -7
  18. package/src/floating-panel/floating-panel.tokens.json +2 -0
  19. package/src/list/list.css +22 -0
  20. package/src/list/list.tokens.json +1 -0
  21. package/src/list-item/list-item.css +21 -27
  22. package/src/message/message.css +9 -0
  23. package/src/page/page.css +10 -0
  24. package/src/progress-indicator/progress-indicator.css +0 -70
  25. package/src/progress-indicator/progress-indicator.tokens.json +0 -3
  26. package/src/radio-group/radio-group.css +0 -50
  27. package/src/radio-group/radio-group.tokens.json +0 -2
  28. package/src/runtime-properties.mjs +6 -0
  29. package/src/section/section.css +31 -0
  30. package/src/sparkline/sparkline.css +0 -207
  31. package/src/sparkline/sparkline.tokens.json +0 -10
  32. package/src/table/table.css +213 -0
  33. package/src/table/table.tokens.json +4 -0
  34. package/src/tooltip/tooltip.css +30 -0
@@ -301,211 +301,4 @@
301
301
  stroke: Canvas;
302
302
  }
303
303
  }
304
-
305
- /**
306
- * ── The position strip ──────────────────────────────────────────────
307
- *
308
- * ┌─ root ─ role="img" ─ data-type="strip" ─────────────────────────┐
309
- * │ start │ ┌─ track ───────────────────────────────────────┐ │ end │
310
- * │ │ │ ░░░░░░ band ░░░░░░ · dot ● value ┆ ref │ │ │
311
- * │ │ └───────────────────────────────────────────────┘ │ │
312
- * └──────────────────────────────────────────────────────────────────┘
313
- *
314
- * Every mark is placed by a share of the track the binding writes as
315
- * --slotted-sparkline-at, so the strip is drawn without measuring. Each end
316
- * is as wide as its text, never cut: rows that state the same extent write
317
- * the same ends in tabular figures, so their tracks line up.
318
- */
319
- [data-ui-sparkline][data-type='strip'] {
320
- --_end: var(--slotted-sparkline-end-size, max-content);
321
- --_dot: var(--_marker);
322
- --_value-dot: calc(var(--_marker) * 1.75);
323
- --_band-color: color-mix(in oklab, var(--_color) 18%, var(--slotted-surface, Canvas));
324
-
325
- align-items: center;
326
- column-gap: var(--slotted-space-3, 0.375rem);
327
- display: inline-grid;
328
- font-size: var(--slotted-font-size-xs, 0.75rem);
329
- font-variant-numeric: tabular-nums;
330
- grid-template-columns: var(--_end) minmax(0, 1fr) var(--_end);
331
- line-height: var(--slotted-line-height-sm, 1.45);
332
- }
333
-
334
- [data-ui-sparkline][data-type='strip'] [data-part-track] {
335
- block-size: var(--_size);
336
- position: relative;
337
- }
338
-
339
- [data-ui-sparkline][data-type='strip'] :is([data-part-start], [data-part-end]) {
340
- color: var(--slotted-text-muted, GrayText);
341
- white-space: nowrap;
342
- }
343
-
344
- [data-ui-sparkline][data-type='strip'] [data-part-start] {
345
- text-align: end;
346
- }
347
-
348
- [data-ui-sparkline][data-type='strip'] [data-part-band] {
349
- background-color: var(--_band-color);
350
- block-size: calc(var(--_size) / 2);
351
- border-radius: var(--slotted-radius-full, 9999px);
352
- inline-size: calc((var(--slotted-sparkline-to, 0) - var(--slotted-sparkline-from, 0)) * 100%);
353
- inset-block-start: calc(var(--_size) / 4);
354
- inset-inline-start: calc(var(--slotted-sparkline-from, 0) * 100%);
355
- position: absolute;
356
- }
357
-
358
- [data-ui-sparkline][data-type='strip']
359
- :is([data-part-dot], [data-part-value], [data-part-reference], [data-part-zero]) {
360
- inset-inline-start: calc(var(--slotted-sparkline-at, 0) * 100%);
361
- position: absolute;
362
- }
363
-
364
- [data-ui-sparkline][data-type='strip'] [data-part-dot] {
365
- background-color: var(--_bar-dim);
366
- block-size: var(--_dot);
367
- border-radius: 50%;
368
- inline-size: var(--_dot);
369
- inset-block-start: calc((var(--_size) - var(--_dot)) / 2);
370
- margin-inline-start: calc(var(--_dot) / -2);
371
- }
372
-
373
- [data-ui-sparkline][data-type='strip'] [data-part-value] {
374
- background-color: var(--_color);
375
- block-size: var(--_value-dot);
376
- border-radius: 50%;
377
- box-shadow: 0 0 0 var(--_ring) var(--_ring-color);
378
- inline-size: var(--_value-dot);
379
- inset-block-start: calc((var(--_size) - var(--_value-dot)) / 2);
380
- margin-inline-start: calc(var(--_value-dot) / -2);
381
- }
382
-
383
- /* The reference is dashed and the zero is solid: one is not data, the other is the origin. */
384
- [data-ui-sparkline][data-type='strip'] :is([data-part-reference], [data-part-zero]) {
385
- block-size: var(--_size);
386
- border-inline-start: var(--slotted-border-width-thin, 1px) solid var(--_reference-color);
387
- inset-block-start: 0;
388
- margin-inline-start: calc(var(--slotted-border-width-thin, 1px) / -2);
389
- }
390
-
391
- [data-ui-sparkline][data-type='strip'] [data-part-reference] {
392
- border-inline-start-style: dashed;
393
- }
394
-
395
- /**
396
- * ── The comparison ──────────────────────────────────────────────────
397
- *
398
- * One row per value: a label column, then a track whose zero, ticks and
399
- * bar are placed by shares the binding writes, so roots that state the
400
- * same domain draw the same axis. The track keeps room on both sides for
401
- * the value written past a bar's end, and rows touch, so the zero line and
402
- * the ticks run unbroken through a root.
403
- */
404
- [data-ui-sparkline][data-type='compare'] {
405
- --_label: var(--slotted-sparkline-label-size, 6rem);
406
- --_room: var(--slotted-sparkline-value-size, 3.5rem);
407
- --_thickness: var(--slotted-sparkline-bar-thickness, var(--slotted-space-5, 0.625rem));
408
- --_texture: repeating-linear-gradient(
409
- -45deg,
410
- var(--_color) 0 var(--slotted-border-width-thin, 1px),
411
- var(--slotted-surface, Canvas) var(--slotted-border-width-thin, 1px) 4px
412
- );
413
-
414
- block-size: auto;
415
- display: grid;
416
- font-size: var(--slotted-font-size-xs, 0.75rem);
417
- font-variant-numeric: tabular-nums;
418
- grid-template-columns: var(--_label) minmax(0, 1fr);
419
- line-height: var(--slotted-line-height-sm, 1.45);
420
- }
421
-
422
- [data-ui-sparkline][data-type='compare'] [data-part-row] {
423
- align-items: center;
424
- display: grid;
425
- grid-column: 1 / -1;
426
- grid-template-columns: subgrid;
427
- }
428
-
429
- [data-ui-sparkline][data-type='compare'] [data-part-label] {
430
- color: var(--slotted-text-muted, GrayText);
431
- overflow: hidden;
432
- padding-inline-end: var(--slotted-space-4, 0.5rem);
433
- text-overflow: ellipsis;
434
- white-space: nowrap;
435
- }
436
-
437
- [data-ui-sparkline][data-type='compare'] [data-part-track] {
438
- block-size: calc(var(--_thickness) + var(--slotted-space-4, 0.5rem));
439
- margin-inline: var(--_room);
440
- position: relative;
441
- }
442
-
443
- [data-ui-sparkline][data-type='compare'] :is([data-part-zero], [data-part-tick]) {
444
- border-inline-start: var(--slotted-border-width-thin, 1px) solid var(--_reference-color);
445
- inset-block: 0;
446
- inset-inline-start: calc(var(--slotted-sparkline-at, 0) * 100%);
447
- margin-inline-start: calc(var(--slotted-border-width-thin, 1px) / -2);
448
- position: absolute;
449
- }
450
-
451
- [data-ui-sparkline][data-type='compare'] [data-part-tick] {
452
- border-inline-start-color: color-mix(in oklab, var(--_reference-color) 40%, transparent);
453
- }
454
-
455
- [data-ui-sparkline][data-type='compare'] [data-part-bar] {
456
- background-color: var(--_color);
457
- block-size: var(--_thickness);
458
- inline-size: calc((var(--slotted-sparkline-to, 0) - var(--slotted-sparkline-from, 0)) * 100%);
459
- inset-block-start: calc(50% - var(--_thickness) / 2);
460
- inset-inline-start: calc(var(--slotted-sparkline-from, 0) * 100%);
461
- position: absolute;
462
- }
463
-
464
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-texture] [data-part-bar] {
465
- background-image: var(--_texture);
466
- box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--_color);
467
- }
468
-
469
- /* The value stands past the bar's far end: after a positive bar, before a negative one. */
470
- [data-ui-sparkline][data-type='compare'] [data-part-value] {
471
- color: var(--slotted-text, CanvasText);
472
- inset-block-start: 50%;
473
- inset-inline-start: calc(
474
- var(--slotted-sparkline-to, 0) * 100% + var(--slotted-space-3, 0.375rem)
475
- );
476
- position: absolute;
477
- translate: 0 -50%;
478
- white-space: nowrap;
479
- }
480
-
481
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-negative] [data-part-value] {
482
- inset-inline-end: calc(
483
- (1 - var(--slotted-sparkline-from, 0)) * 100% + var(--slotted-space-3, 0.375rem)
484
- );
485
- inset-inline-start: auto;
486
- }
487
-
488
- /**
489
- * Under forced colors a mix of two system colors is a color the mode does
490
- * not have: the band and the dots take GrayText, the value and the bars
491
- * CanvasText, and the texture is drawn in CanvasText over Canvas.
492
- */
493
- @media (forced-colors: active) {
494
- [data-ui-sparkline][data-type='strip'] :is([data-part-band], [data-part-dot]) {
495
- background-color: GrayText;
496
- forced-color-adjust: none;
497
- }
498
-
499
- [data-ui-sparkline][data-type='strip'] [data-part-value],
500
- [data-ui-sparkline][data-type='compare'] [data-part-bar] {
501
- background-color: CanvasText;
502
- forced-color-adjust: none;
503
- }
504
-
505
- [data-ui-sparkline][data-type='compare'] [data-part-row][data-texture] [data-part-bar] {
506
- background-color: Canvas;
507
- background-image: repeating-linear-gradient(-45deg, CanvasText 0 1px, Canvas 1px 4px);
508
- box-shadow: inset 0 0 0 1px CanvasText;
509
- }
510
- }
511
304
  }
@@ -14,25 +14,18 @@
14
14
  "--slotted-duration-medium",
15
15
  "--slotted-duration-short",
16
16
  "--slotted-easing-standard",
17
- "--slotted-font-size-xs",
18
- "--slotted-line-height-sm",
19
- "--slotted-radius-full",
20
17
  "--slotted-space-11",
21
18
  "--slotted-space-2",
22
19
  "--slotted-space-3",
23
20
  "--slotted-space-4",
24
- "--slotted-space-5",
25
21
  "--slotted-space-7",
26
22
  "--slotted-space-9",
27
23
  "--slotted-sparkline-area-opacity",
28
24
  "--slotted-sparkline-bar-share",
29
- "--slotted-sparkline-bar-thickness",
30
25
  "--slotted-sparkline-block-size",
31
26
  "--slotted-sparkline-block-size-lg",
32
27
  "--slotted-sparkline-block-size-sm",
33
28
  "--slotted-sparkline-color",
34
- "--slotted-sparkline-end-size",
35
- "--slotted-sparkline-label-size",
36
29
  "--slotted-sparkline-line-width",
37
30
  "--slotted-sparkline-line-width-sm",
38
31
  "--slotted-sparkline-marker-size",
@@ -43,10 +36,7 @@
43
36
  "--slotted-sparkline-ring-color",
44
37
  "--slotted-sparkline-ring-width",
45
38
  "--slotted-sparkline-ring-width-sm",
46
- "--slotted-sparkline-value-size",
47
- "--slotted-surface",
48
39
  "--slotted-surface-raised",
49
- "--slotted-text",
50
40
  "--slotted-text-muted",
51
41
  "--slotted-tone-accent-text",
52
42
  "--slotted-tone-danger-text",
@@ -1283,6 +1283,219 @@
1283
1283
  background-image: none;
1284
1284
  }
1285
1285
 
1286
+ /* A record's leading mark, an avatar or an icon: one box per level. The steps
1287
+ of an avatar that fit a row all measure the box. */
1288
+ [data-ui-table] [data-part-mark] {
1289
+ --_mark: round(var(--slotted-table-mark-size, 1.5rem), 1px);
1290
+ --slotted-avatar-size-xs: var(--_mark);
1291
+ --slotted-avatar-size-sm: var(--_mark);
1292
+ --slotted-avatar-size-md: var(--_mark);
1293
+ align-items: center;
1294
+ block-size: var(--_mark);
1295
+ display: inline-flex;
1296
+ inline-size: var(--_mark);
1297
+ justify-content: center;
1298
+ margin-block: calc((var(--_line) - var(--_mark)) / 2);
1299
+ margin-inline-end: var(--_gap);
1300
+ vertical-align: top;
1301
+ }
1302
+
1303
+ [data-ui-table] [data-part-row]:not([data-level='0'])[data-level] [data-part-mark] {
1304
+ --_mark: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
1305
+ }
1306
+
1307
+ /**
1308
+ * ── The branch of each child ───────────────────────────────────────────
1309
+ *
1310
+ * `guides="branch"`: a rail leaves the foot of the parent's mark and runs
1311
+ * down its center, each child has a branch from the rail to its own mark, and
1312
+ * the rail turns into the branch of the last child. The mark is the row's
1313
+ * `mark` part, or its expander where the cell holds none. Whether a row is
1314
+ * the last, starts a rail or is crossed by the rail of an ancestor is written
1315
+ * by the binding (`data-branch`, `data-branch-open`, `--slotted-tree-rails`).
1316
+ *
1317
+ * Every mark of a level stands in one column: what leads it, an expander or
1318
+ * the room of one, is taken out of the indent rather than added to it.
1319
+ * Positions are taken from the cell's padding box, so a rail is one line
1320
+ * through rows of any height.
1321
+ */
1322
+ [data-ui-table][data-guides='branch'] {
1323
+ --_lead: 0px;
1324
+ --_branch: var(--slotted-table-branch-size, 1.25rem);
1325
+ --_node: var(--slotted-target-min, 24px);
1326
+ --_node-child: var(--_node);
1327
+ }
1328
+
1329
+ [data-ui-table][data-guides='branch']:has([data-part-row][data-level] [data-part-mark]) {
1330
+ --_node: round(var(--slotted-table-mark-size, 1.5rem), 1px);
1331
+ --_node-child: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
1332
+ }
1333
+
1334
+ /* An expander written before the mark keeps its room in every row. */
1335
+ [data-ui-table][data-guides='branch']:has(
1336
+ [data-part-row][data-level] > * > [data-part-expander] + [data-part-mark]
1337
+ ) {
1338
+ --_lead: calc(var(--slotted-target-min, 24px) + var(--_gap));
1339
+ }
1340
+
1341
+ /* A child that folds too has its expander between its branch and its mark. */
1342
+ [data-ui-table][data-guides='branch']:has(
1343
+ [data-part-row][data-level]:not([data-level='0'])
1344
+ > *
1345
+ > [data-part-expander]
1346
+ + [data-part-mark]
1347
+ ) {
1348
+ --_branch: calc(var(--slotted-target-min, 24px) + var(--_gap) + var(--slotted-space-2, 4px));
1349
+ }
1350
+
1351
+ [data-ui-table][data-guides='branch'] [data-part-row][data-level] {
1352
+ --_guide: var(
1353
+ --slotted-table-guide-color,
1354
+ color-mix(in oklab, var(--slotted-text, CanvasText) 26%, var(--_surface))
1355
+ );
1356
+ /* The inline start of the first rail, and from one rail to the next. */
1357
+ --_rail: round(
1358
+ down,
1359
+ calc(var(--_pad-inline) + var(--_lead) + (var(--_node) - var(--_rule-width)) / 2),
1360
+ 1px
1361
+ );
1362
+ --_rail-step: calc(var(--_branch) + var(--_node-child) / 2);
1363
+ /* Where the row's own mark starts, and the rail it hangs from. */
1364
+ --_own: calc(var(--_pad-inline) + var(--_lead));
1365
+ --_from: 0px;
1366
+ --_mark-size: var(--_node);
1367
+ /* The middle of the mark: in the cell, and in the box of the lines, which
1368
+ starts a rule above it; the middle of a line placed there as a tile. */
1369
+ --_y: 50%;
1370
+ --_at: calc(50% + var(--_rule-width) / 2);
1371
+ --_tile: calc(50% + var(--_rule-width) / 2);
1372
+ }
1373
+
1374
+ [data-ui-table][data-guides='branch'] [data-part-row][data-level]:not([data-level='0']) {
1375
+ --_from: calc(var(--_rail) + (var(--slotted-table-depth) - 1) * var(--_rail-step));
1376
+ --_own: calc(var(--_from) + var(--_branch));
1377
+ --_mark-size: var(--_node-child);
1378
+ }
1379
+
1380
+ [data-ui-table][data-guides='branch'][data-cell-align='start'] [data-part-row][data-level] {
1381
+ --_y: calc(var(--_pad-block) + var(--_line) / 2);
1382
+ --_at: calc(var(--_y) + var(--_rule-width));
1383
+ --_tile: calc(var(--_y) + var(--_rule-width) / 2);
1384
+ }
1385
+
1386
+ [data-ui-table][data-guides='branch'][data-cell-align='end'] [data-part-row][data-level] {
1387
+ --_y: calc(100% - var(--_pad-block) - var(--_line) / 2);
1388
+ --_at: var(--_y);
1389
+ --_tile: calc(var(--_y) + var(--_rule-width) / 2);
1390
+ }
1391
+
1392
+ /* The row's lead: the mark stands out of flow at one place of its level, and
1393
+ the cell keeps its room. An expander before it is in flow, inside the indent. */
1394
+ [data-ui-table][data-guides='branch']
1395
+ [data-part-row][data-level]
1396
+ > :nth-child(1 of :not([data-part-selection])) {
1397
+ block-size: calc(var(--_node) + 2 * var(--slotted-space-1, 2px));
1398
+ box-sizing: border-box;
1399
+ padding-inline-start: var(--_own);
1400
+ }
1401
+
1402
+ [data-ui-table][data-guides='branch']
1403
+ [data-part-row][data-level]
1404
+ > :nth-child(1 of :not([data-part-selection])):has(> [data-part-mark]) {
1405
+ padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
1406
+ }
1407
+
1408
+ [data-ui-table][data-guides='branch']
1409
+ [data-part-row][data-level]
1410
+ > :nth-child(1 of :not([data-part-selection])):not(
1411
+ :has(> :is([data-part-expander], [data-part-mark]))
1412
+ ) {
1413
+ padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
1414
+ }
1415
+
1416
+ [data-ui-table][data-guides='branch']
1417
+ [data-part-row][data-level]
1418
+ > :nth-child(1 of :not([data-part-selection]))
1419
+ > [data-part-mark] {
1420
+ inset-block-start: calc(var(--_y) - var(--_mark-size) / 2);
1421
+ inset-inline-start: var(--_own);
1422
+ margin: 0;
1423
+ position: absolute;
1424
+ }
1425
+
1426
+ [data-ui-table][data-guides='branch']
1427
+ [data-part-row][data-level]
1428
+ > :nth-child(1 of :not([data-part-selection]))
1429
+ > [data-part-expander]:has(+ [data-part-mark]) {
1430
+ inset-block-start: calc(var(--_y) - var(--slotted-target-min, 24px) / 2);
1431
+ inset-inline-start: calc(var(--_own) - var(--_gap) - var(--slotted-target-min, 24px));
1432
+ margin: 0;
1433
+ position: absolute;
1434
+ }
1435
+
1436
+ [data-ui-table][data-guides='branch']
1437
+ [data-part-row][data-level]
1438
+ > :nth-child(1 of :not([data-part-selection]))::before {
1439
+ --_ink: linear-gradient(var(--_guide) 0 0);
1440
+ --_trunk: none;
1441
+ --_twig: none;
1442
+ --_root: none;
1443
+ background: var(--_root), var(--_twig), var(--_trunk), var(--slotted-tree-rails, none);
1444
+ inline-size: calc(var(--_own) + var(--_mark-size));
1445
+ inset-inline-start: 0;
1446
+ }
1447
+
1448
+ [data-ui-table][data-guides='branch']
1449
+ [data-part-row][data-level]:not([data-level='0'])
1450
+ > :nth-child(1 of :not([data-part-selection]))::before {
1451
+ --_reach: calc(var(--_branch) - var(--_rule-width) - var(--slotted-space-1, 2px));
1452
+ --_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width) 100% no-repeat;
1453
+ --_twig: var(--_ink) var(--_from) var(--_tile) / calc(var(--_rule-width) + var(--_reach))
1454
+ var(--_rule-width) no-repeat;
1455
+ }
1456
+
1457
+ /* An expander between the branch and the mark takes the rest of the way. */
1458
+ [data-ui-table][data-guides='branch']
1459
+ [data-part-row][data-level]:not([data-level='0'])
1460
+ > :nth-child(1 of :not([data-part-selection])):has(
1461
+ > [data-part-expander] + [data-part-mark]
1462
+ )::before {
1463
+ --_reach: var(--slotted-space-2, 4px);
1464
+ }
1465
+
1466
+ [data-ui-table][data-guides='branch']
1467
+ [data-part-row][data-level]:not([data-level='0'])
1468
+ > :nth-child(1 of :not([data-part-selection])):not(
1469
+ :has(> :is([data-part-expander], [data-part-mark]))
1470
+ )::before {
1471
+ --_reach: calc(var(--_branch) + var(--_mark-size) - var(--_rule-width));
1472
+ }
1473
+
1474
+ [data-ui-table][data-guides='branch']
1475
+ [data-part-row][data-level][data-branch='last']:not([data-level='0'])
1476
+ > :nth-child(1 of :not([data-part-selection]))::before {
1477
+ --_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width)
1478
+ calc(var(--_at) + var(--_rule-width) / 2) no-repeat;
1479
+ }
1480
+
1481
+ [data-ui-table][data-guides='branch']
1482
+ [data-part-row][data-level][data-branch-open]
1483
+ > :nth-child(1 of :not([data-part-selection]))::before {
1484
+ --_root: linear-gradient(
1485
+ to bottom,
1486
+ transparent calc(var(--_at) + var(--_mark-size) / 2),
1487
+ var(--_guide) calc(var(--_at) + var(--_mark-size) / 2)
1488
+ )
1489
+ calc(var(--_rail) + var(--slotted-table-depth) * var(--_rail-step)) 0 / var(--_rule-width)
1490
+ 100% no-repeat;
1491
+ }
1492
+
1493
+ [data-ui-table][data-guides='branch']
1494
+ [data-part-row][data-level]
1495
+ > :nth-child(1 of :not([data-part-selection])):dir(rtl)::before {
1496
+ scale: -1 1;
1497
+ }
1498
+
1286
1499
  /**
1287
1500
  * ── The expander ───────────────────────────────────────────────────────
1288
1501
  *
@@ -25,6 +25,7 @@
25
25
  "--slotted-radius-md",
26
26
  "--slotted-radius-sm",
27
27
  "--slotted-shadow-xs",
28
+ "--slotted-space-1",
28
29
  "--slotted-space-2",
29
30
  "--slotted-space-4",
30
31
  "--slotted-space-5",
@@ -33,6 +34,7 @@
33
34
  "--slotted-table-border-color",
34
35
  "--slotted-table-border-color-strong",
35
36
  "--slotted-table-border-width",
37
+ "--slotted-table-branch-size",
36
38
  "--slotted-table-caption-surface",
37
39
  "--slotted-table-cell-padding-block",
38
40
  "--slotted-table-cell-padding-inline",
@@ -52,6 +54,8 @@
52
54
  "--slotted-table-header-surface",
53
55
  "--slotted-table-header-surface-hover",
54
56
  "--slotted-table-icon-size",
57
+ "--slotted-table-mark-child-size",
58
+ "--slotted-table-mark-size",
55
59
  "--slotted-table-radius",
56
60
  "--slotted-table-row-color-selected",
57
61
  "--slotted-table-row-min-block-size",
@@ -58,6 +58,8 @@
58
58
  */
59
59
  --_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));
60
60
  --_arrow-size: var(--slotted-tooltip-arrow-size, 0.5rem);
61
+ /* How far the clipped arrow reaches over the content along each of its edges. */
62
+ --_arrow-overlap: 0.5px;
61
63
  /* The point, softened to the same degree the surface's own corners are.
62
64
  A 90-degree tip beside a rounded panel reads as a different object. */
63
65
  --_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));
@@ -269,6 +271,8 @@
269
271
  --_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));
270
272
  --_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));
271
273
  --_border-width: var(--slotted-border-width-thin, 1px);
274
+ /* Along a rotated edge, 1.5 border widths reach one border width deep. */
275
+ --_arrow-overlap: calc(var(--_border-width) * 1.5);
272
276
  }
273
277
 
274
278
  [data-ui-tooltip] > [data-part-content] {
@@ -345,6 +349,12 @@
345
349
  *
346
350
  * `arrowPadding` keeps it clear of the corners, where the content's radius
347
351
  * would leave the base uncovered.
352
+ *
353
+ * ── Why only its outer half is drawn ─────────────────────────────────
354
+ *
355
+ * While both parts fade, the half that lies over the content composites
356
+ * twice and the whole diamond shows through it. The square is clipped to its
357
+ * outer half, with the overlap that covers the content's edge under the base.
348
358
  */
349
359
  [data-ui-tooltip] > [data-part-arrow] {
350
360
  position: absolute;
@@ -363,6 +373,11 @@
363
373
  border-right-width: var(--_border-width);
364
374
  border-bottom-width: var(--_border-width);
365
375
  border-bottom-right-radius: var(--_arrow-tip-radius);
376
+ clip-path: polygon(
377
+ 100% 100%,
378
+ 100% calc(-1 * var(--_arrow-overlap)),
379
+ calc(-1 * var(--_arrow-overlap)) 100%
380
+ );
366
381
  }
367
382
 
368
383
  [data-ui-tooltip][data-side='bottom'] > [data-part-arrow] {
@@ -372,6 +387,11 @@
372
387
  border-top-width: var(--_border-width);
373
388
  border-left-width: var(--_border-width);
374
389
  border-top-left-radius: var(--_arrow-tip-radius);
390
+ clip-path: polygon(
391
+ 0 0,
392
+ calc(100% + var(--_arrow-overlap)) 0,
393
+ 0 calc(100% + var(--_arrow-overlap))
394
+ );
375
395
  }
376
396
 
377
397
  [data-ui-tooltip][data-side='left'] > [data-part-arrow] {
@@ -381,6 +401,11 @@
381
401
  border-top-width: var(--_border-width);
382
402
  border-right-width: var(--_border-width);
383
403
  border-top-right-radius: var(--_arrow-tip-radius);
404
+ clip-path: polygon(
405
+ 100% 0,
406
+ 100% calc(100% + var(--_arrow-overlap)),
407
+ calc(-1 * var(--_arrow-overlap)) 0
408
+ );
384
409
  }
385
410
 
386
411
  [data-ui-tooltip][data-side='right'] > [data-part-arrow] {
@@ -390,5 +415,10 @@
390
415
  border-bottom-width: var(--_border-width);
391
416
  border-left-width: var(--_border-width);
392
417
  border-bottom-left-radius: var(--_arrow-tip-radius);
418
+ clip-path: polygon(
419
+ 0 100%,
420
+ 0 calc(-1 * var(--_arrow-overlap)),
421
+ calc(100% + var(--_arrow-overlap)) 100%
422
+ );
393
423
  }
394
424
  }