@astra-spec/ui 0.0.4 → 0.0.5

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 (89) hide show
  1. package/TOKENS.md +14 -8
  2. package/dist/blocks/findings-list.d.ts.map +1 -1
  3. package/dist/blocks/findings-list.js +2 -1
  4. package/dist/blocks/findings-list.js.map +1 -1
  5. package/dist/blocks/section.d.ts.map +1 -1
  6. package/dist/blocks/section.js +3 -2
  7. package/dist/blocks/section.js.map +1 -1
  8. package/dist/components/insight-trigger.d.ts.map +1 -1
  9. package/dist/components/insight-trigger.js +3 -2
  10. package/dist/components/insight-trigger.js.map +1 -1
  11. package/dist/components/paper-detail.d.ts.map +1 -1
  12. package/dist/components/paper-detail.js +2 -2
  13. package/dist/components/paper-detail.js.map +1 -1
  14. package/dist/components/record-preview.d.ts.map +1 -1
  15. package/dist/components/record-preview.js +8 -7
  16. package/dist/components/record-preview.js.map +1 -1
  17. package/dist/model/kind.d.ts +1 -1
  18. package/dist/model/kind.d.ts.map +1 -1
  19. package/dist/model/kind.js +3 -3
  20. package/dist/model/kind.js.map +1 -1
  21. package/dist/primitives/index.d.ts +4 -0
  22. package/dist/primitives/index.d.ts.map +1 -1
  23. package/dist/primitives/index.js +2 -0
  24. package/dist/primitives/index.js.map +1 -1
  25. package/dist/primitives/inline-reference.d.ts +9 -0
  26. package/dist/primitives/inline-reference.d.ts.map +1 -0
  27. package/dist/primitives/inline-reference.js +14 -0
  28. package/dist/primitives/inline-reference.js.map +1 -0
  29. package/dist/primitives/kind-glyph.d.ts +8 -0
  30. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  31. package/dist/primitives/kind-glyph.js +9 -0
  32. package/dist/primitives/kind-glyph.js.map +1 -0
  33. package/dist/primitives/preview-popover.d.ts +1 -1
  34. package/dist/primitives/preview-popover.d.ts.map +1 -1
  35. package/dist/primitives/record-list.d.ts.map +1 -1
  36. package/dist/primitives/record-list.js +3 -2
  37. package/dist/primitives/record-list.js.map +1 -1
  38. package/dist/primitives/relation-list.d.ts.map +1 -1
  39. package/dist/primitives/relation-list.js +3 -2
  40. package/dist/primitives/relation-list.js.map +1 -1
  41. package/isolate.css +7 -0
  42. package/package.json +5 -3
  43. package/primitives.css +2 -0
  44. package/src/blocks/findings-list.tsx +2 -1
  45. package/src/blocks/section.tsx +3 -2
  46. package/src/components/insight-trigger.tsx +3 -2
  47. package/src/components/paper-detail.tsx +2 -2
  48. package/src/components/record-preview.tsx +8 -14
  49. package/src/model/kind.ts +3 -3
  50. package/src/primitives/index.ts +4 -0
  51. package/src/primitives/inline-reference.tsx +25 -0
  52. package/src/primitives/kind-glyph.tsx +24 -0
  53. package/src/primitives/preview-popover.tsx +1 -1
  54. package/src/primitives/record-list.tsx +3 -4
  55. package/src/primitives/relation-list.tsx +4 -7
  56. package/styles/blocks/analysis-tree.css +4 -4
  57. package/styles/blocks/decisions-list.css +6 -6
  58. package/styles/blocks/outputs-list.css +34 -34
  59. package/styles/blocks/papers-list.css +12 -12
  60. package/styles/blocks/records.css +13 -13
  61. package/styles/components/artifact-preview.css +15 -15
  62. package/styles/components/decision-detail.css +23 -23
  63. package/styles/components/evidence.css +2 -7
  64. package/styles/components/finding-detail.css +11 -11
  65. package/styles/components/input-detail.css +7 -7
  66. package/styles/components/insight-detail.css +17 -17
  67. package/styles/components/insight-list.css +6 -6
  68. package/styles/components/insight-trigger.css +5 -5
  69. package/styles/components/output-detail.css +51 -51
  70. package/styles/components/paper-detail.css +22 -22
  71. package/styles/components/paper-doi.css +2 -2
  72. package/styles/components/paper-pdf-viewer.css +6 -6
  73. package/styles/components/record-preview.css +444 -268
  74. package/styles/primitives/badge.css +1 -1
  75. package/styles/primitives/button.css +25 -25
  76. package/styles/primitives/count-heading.css +3 -3
  77. package/styles/primitives/detail-layout.css +20 -20
  78. package/styles/primitives/dialog.css +77 -77
  79. package/styles/primitives/empty-state.css +1 -1
  80. package/styles/primitives/inline-reference.css +37 -0
  81. package/styles/primitives/kind-glyph.css +31 -0
  82. package/styles/primitives/kind.css +6 -0
  83. package/styles/primitives/preview-popover.css +6 -11
  84. package/styles/primitives/prose.css +1 -1
  85. package/styles/primitives/record-list.css +32 -48
  86. package/styles/primitives/relation-list.css +14 -36
  87. package/styles/primitives/surface-header.css +15 -11
  88. package/styles/tokens.css +19 -9
  89. package/styles/views/inventory.css +25 -27
@@ -16,7 +16,7 @@
16
16
  border: 0;
17
17
  background: transparent;
18
18
  color: inherit;
19
- padding: clamp(0.75rem, 3vw, 2.5rem);
19
+ padding: clamp(12px, 3vw, 40px);
20
20
  }
21
21
 
22
22
  :where(.astra-ui) .astra-dialog:not([open]) {
@@ -25,18 +25,18 @@
25
25
 
26
26
  :where(.astra-ui) .astra-dialog__header {
27
27
  display: flex;
28
- gap: 1rem;
28
+ gap: 16px;
29
29
  align-items: start;
30
30
  justify-content: space-between;
31
31
  border-bottom: 1px solid var(--astra-color-border);
32
32
  background: var(--astra-color-header);
33
- padding: 1rem 1.2rem;
33
+ padding: 16px 19.2px;
34
34
  }
35
35
 
36
36
  :where(.astra-ui) .astra-dialog__header > div:first-child {
37
37
  display: grid;
38
38
  min-width: 0;
39
- gap: 0.2rem;
39
+ gap: 3.2px;
40
40
  }
41
41
 
42
42
  :where(.astra-ui) .astra-dialog__header > div:first-child > span {
@@ -52,7 +52,7 @@
52
52
  margin: 0;
53
53
  color: var(--astra-color-text);
54
54
  font-family: var(--astra-font-ui);
55
- font-size: clamp(1.25rem, 2.5vw, 1.75rem);
55
+ font-size: clamp(var(--astra-font-size-title), 2.5vw, 28px);
56
56
  line-height: 1.15;
57
57
  }
58
58
 
@@ -63,8 +63,8 @@
63
63
 
64
64
  :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
65
65
  display: grid;
66
- width: 2rem;
67
- height: 2rem;
66
+ width: 32px;
67
+ height: 32px;
68
68
  flex: 0 0 auto;
69
69
  cursor: pointer;
70
70
  place-items: center;
@@ -72,7 +72,7 @@
72
72
  border-radius: 50%;
73
73
  background: var(--astra-color-surface);
74
74
  color: var(--astra-color-text);
75
- font-size: 1.25rem;
75
+ font-size: var(--astra-font-size-title);
76
76
  line-height: 1;
77
77
  }
78
78
 
@@ -85,20 +85,20 @@
85
85
  display: inline-flex;
86
86
  width: auto;
87
87
  height: auto;
88
- min-height: 2rem;
88
+ min-height: 32px;
89
89
  align-items: center;
90
- gap: 0.35rem;
90
+ gap: 5.6px;
91
91
  border: 1px solid var(--astra-color-border);
92
- border-radius: 0.375rem;
92
+ border-radius: 6px;
93
93
  background: var(--astra-color-canvas);
94
94
  color: var(--astra-color-link);
95
- padding: 0.375rem 0.625rem;
95
+ padding: 6px 10px;
96
96
  font-size: var(--astra-font-size-sm);
97
97
  line-height: 1.2;
98
98
  }
99
99
 
100
100
  :where(.astra-ui) .astra-dialog:where([data-kind="paper"]) > .astra-dialog__panel {
101
- width: min(92rem, 100%);
101
+ width: min(1472px, 100%);
102
102
  height: 100%;
103
103
  max-height: 100%;
104
104
  }
@@ -131,12 +131,12 @@
131
131
 
132
132
  }
133
133
  :where(.astra-ui) .astra-dialog {
134
- padding: clamp(0.75rem, 2vw, 1.5rem);
134
+ padding: clamp(12px, 2vw, 24px);
135
135
  }
136
136
 
137
137
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
138
- width: min(74rem, 100%);
139
- max-height: calc(100dvh - 2rem);
138
+ width: min(1184px, 100%);
139
+ max-height: calc(100dvh - 32px);
140
140
  border-color: var(--astra-color-border-strong);
141
141
  border-radius: 0;
142
142
  background: var(--astra-color-canvas);
@@ -145,17 +145,17 @@
145
145
  }
146
146
 
147
147
  :where(.astra-ui) .astra-dialog__header {
148
- min-height: 5.5rem;
148
+ min-height: 88px;
149
149
  align-items: flex-end;
150
- padding: 1.1rem clamp(1rem, 2.6vw, 2rem);
150
+ padding: 17.6px clamp(16px, 2.6vw, 32px);
151
151
  border-color: var(--astra-color-border-strong);
152
152
  background: var(--astra-color-canvas);
153
153
  }
154
154
 
155
155
  :where(.astra-ui) .astra-dialog__header h3 {
156
- max-width: 50rem;
156
+ max-width: 800px;
157
157
  font-family: var(--astra-font-heading);
158
- font-size: clamp(1.5rem, 3vw, 2.15rem);
158
+ font-size: clamp(24px, 3vw, 34.4px);
159
159
  font-weight: 700;
160
160
  line-height: 1.1;
161
161
  }
@@ -181,7 +181,7 @@
181
181
  display: inline-flex;
182
182
  min-height: 0;
183
183
  align-items: center;
184
- gap: 0.35rem;
184
+ gap: 5.6px;
185
185
  padding: 0;
186
186
  border: 0;
187
187
  color: var(--astra-color-text-subtle);
@@ -199,7 +199,7 @@
199
199
 
200
200
  :where(.astra-ui) .astra-dialog__back:focus-visible {
201
201
  outline: 1px solid currentcolor;
202
- outline-offset: 0.25rem;
202
+ outline-offset: 4px;
203
203
  }
204
204
 
205
205
  :where(.astra-ui) .astra-dialog__kind {
@@ -245,18 +245,18 @@
245
245
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
246
246
  min-height: 0;
247
247
  align-items: flex-start;
248
- margin: 0 0 1.375rem;
248
+ margin: 0 0 22px;
249
249
  padding: 0;
250
250
  border: 0;
251
251
  background: transparent;
252
252
  }
253
253
 
254
254
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
255
- max-width: 56.25rem;
255
+ max-width: 900px;
256
256
  margin: 0;
257
257
  color: var(--astra-color-text);
258
258
  font-family: var(--astra-font-heading);
259
- font-size: clamp(1.65rem, 3vw, 1.8125rem);
259
+ font-size: clamp(26.4px, 3vw, 29px);
260
260
  font-weight: 700;
261
261
  line-height: 1.15;
262
262
  }
@@ -267,8 +267,8 @@
267
267
  }
268
268
 
269
269
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
270
- width: 2rem;
271
- height: 2rem;
270
+ width: 32px;
271
+ height: 32px;
272
272
  border: 1px solid var(--astra-color-border-strong);
273
273
  border-radius: 0;
274
274
  background: transparent;
@@ -286,7 +286,7 @@
286
286
  }
287
287
 
288
288
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
289
- height: max(32rem, calc(100dvh - 13rem));
289
+ height: max(512px, calc(100dvh - 208px));
290
290
  overflow: hidden;
291
291
  }
292
292
 
@@ -297,7 +297,7 @@
297
297
  }
298
298
 
299
299
  }
300
- @container (max-width: 47.5rem) {
300
+ @container (max-width: 760px) {
301
301
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
302
302
  height: auto;
303
303
  overflow: visible;
@@ -305,7 +305,7 @@
305
305
 
306
306
  }
307
307
  :where(.astra-ui) .astra-dialog {
308
- padding: clamp(0.75rem, 2.4vw, 1.625rem);
308
+ padding: clamp(12px, 2.4vw, 26px);
309
309
  }
310
310
 
311
311
  :where(.astra-ui) .astra-dialog::backdrop {
@@ -315,26 +315,26 @@
315
315
 
316
316
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
317
317
  display: flex;
318
- width: min(45rem, 100%);
319
- height: min(38.75rem, calc(100dvh - 2rem));
320
- max-height: calc(100dvh - 2rem);
318
+ width: min(720px, 100%);
319
+ height: min(620px, calc(100dvh - 32px));
320
+ max-height: calc(100dvh - 32px);
321
321
  flex-direction: column;
322
322
  overflow: hidden;
323
323
  border: 1px solid var(--astra-color-border-strong);
324
- border-radius: 0.625rem;
324
+ border-radius: 10px;
325
325
  background: var(--astra-color-canvas);
326
- box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
326
+ box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
327
327
  color: var(--astra-color-text);
328
328
  font-family: var(--astra-font-body);
329
329
  }
330
330
 
331
331
  :where(.astra-ui) .astra-dialog:where([data-layout="reader"]) > .astra-dialog__panel {
332
- width: min(70rem, 100%);
333
- height: min(43.75rem, calc(100dvh - 2rem));
332
+ width: min(1120px, 100%);
333
+ height: min(700px, calc(100dvh - 32px));
334
334
  }
335
335
 
336
336
  :where(.astra-ui) .astra-dialog:where([data-layout="reader"][data-kind="output"]) > .astra-dialog__panel {
337
- width: min(78rem, 100%);
337
+ width: min(1248px, 100%);
338
338
  }
339
339
 
340
340
  :where(.astra-ui) .astra-dialog:where([data-kind="input"]) > .astra-dialog__panel,
@@ -351,12 +351,12 @@
351
351
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
352
352
  display: flex;
353
353
  box-sizing: border-box;
354
- min-height: 4.375rem;
354
+ min-height: 70px;
355
355
  flex: 0 0 auto;
356
356
  align-items: flex-start;
357
- gap: 0.75rem;
357
+ gap: 12px;
358
358
  margin: 0;
359
- padding: 0.8125rem 0.875rem 0.8125rem 1rem;
359
+ padding: 13px 14px 13px 16px;
360
360
  border: 0;
361
361
  border-block-end: 1px solid var(--astra-color-border);
362
362
  background: var(--astra-color-canvas);
@@ -366,11 +366,11 @@
366
366
  display: flex;
367
367
  min-width: 0;
368
368
  align-items: center;
369
- gap: 0.4375rem;
369
+ gap: 7px;
370
370
  }
371
371
 
372
372
  :where(.astra-ui) .astra-dialog__crumb {
373
- max-width: 14.375rem;
373
+ max-width: 230px;
374
374
  overflow: hidden;
375
375
  color: var(--astra-color-text-subtle);
376
376
  text-overflow: ellipsis;
@@ -395,14 +395,14 @@
395
395
  display: flex;
396
396
  flex: 0 0 auto;
397
397
  align-items: center;
398
- gap: 0.4375rem;
399
- margin-top: 0.0625rem;
398
+ gap: 7px;
399
+ margin-top: 1px;
400
400
  }
401
401
 
402
402
  :where(.astra-ui) .astra-dialog__back {
403
- width: 2rem;
404
- height: 2rem;
405
- min-height: 2rem;
403
+ width: 32px;
404
+ height: 32px;
405
+ min-height: 32px;
406
406
  flex: 0 0 auto;
407
407
  padding: 0;
408
408
  }
@@ -416,7 +416,7 @@
416
416
  background: var(--astra-color-canvas);
417
417
  }
418
418
 
419
- @media (max-width: 47.5rem) {
419
+ @media (max-width: 760px) {
420
420
  :where(.astra-ui) .astra-dialog {
421
421
  padding: 0;
422
422
  }
@@ -431,11 +431,11 @@
431
431
  }
432
432
 
433
433
  :where(.astra-ui) .astra-dialog__header {
434
- gap: 0.5rem;
434
+ gap: 8px;
435
435
  }
436
436
 
437
437
  :where(.astra-ui) .astra-dialog__action {
438
- padding-inline: 0.5rem;
438
+ padding-inline: 8px;
439
439
  }
440
440
 
441
441
  :where(.astra-ui) .astra-dialog__action > span + * {
@@ -459,45 +459,45 @@
459
459
  height: auto;
460
460
  min-height: 0;
461
461
  max-height: none;
462
- border-radius: 0.625rem;
462
+ border-radius: 10px;
463
463
  }
464
464
 
465
465
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__body {
466
- min-height: min(43.75rem, calc(100dvh - 8rem));
466
+ min-height: min(700px, calc(100dvh - 128px));
467
467
  }
468
468
 
469
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="input"] {
469
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="input"] {
470
470
  --astra-kind: var(--astra-color-kind-input);
471
471
  --astra-kind-ink: var(--astra-color-kind-input);
472
472
  --astra-kind-soft: var(--astra-color-kind-input-soft);
473
473
  }
474
474
 
475
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="analysis"] {
475
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="analysis"] {
476
476
  --astra-kind: var(--astra-color-kind-analysis);
477
477
  --astra-kind-ink: var(--astra-color-kind-analysis);
478
478
  --astra-kind-soft: var(--astra-color-kind-analysis-soft);
479
479
  }
480
480
 
481
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="output"] {
481
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="output"] {
482
482
  --astra-kind: var(--astra-color-kind-output);
483
483
  --astra-kind-ink: var(--astra-color-kind-output);
484
484
  --astra-kind-soft: var(--astra-color-kind-output-soft);
485
485
  }
486
486
 
487
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="decision"] {
487
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="decision"] {
488
488
  --astra-kind: var(--astra-color-kind-decision);
489
489
  --astra-kind-ink: var(--astra-color-kind-decision-ink);
490
490
  --astra-kind-soft: var(--astra-color-kind-decision-soft);
491
491
  }
492
492
 
493
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="finding"] {
493
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="finding"] {
494
494
  --astra-kind: var(--astra-color-kind-finding);
495
495
  --astra-kind-ink: var(--astra-color-kind-finding);
496
496
  --astra-kind-soft: var(--astra-color-kind-finding-soft);
497
497
  }
498
498
 
499
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="prior_insight"],
500
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="paper"] {
499
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="prior_insight"],
500
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="paper"] {
501
501
  --astra-kind: var(--astra-color-kind-insight);
502
502
  --astra-kind-ink: var(--astra-color-kind-insight-ink);
503
503
  --astra-kind-soft: var(--astra-color-kind-insight-soft);
@@ -513,10 +513,10 @@
513
513
  }
514
514
 
515
515
  :where(.astra-ui) .astra-dialog__header {
516
- min-height: 4.5rem;
516
+ min-height: 72px;
517
517
  border-color: var(--astra-color-border);
518
518
  background: var(--astra-color-header);
519
- padding: 0.85rem 1rem;
519
+ padding: 13.6px 16px;
520
520
  }
521
521
 
522
522
  :where(.astra-ui) .astra-dialog__header > div:first-child > span {
@@ -527,7 +527,7 @@
527
527
 
528
528
  :where(.astra-ui) .astra-dialog__header h3 {
529
529
  font-family: var(--astra-font-heading);
530
- font-size: clamp(1.05rem, 2vw, 1.4rem);
530
+ font-size: clamp(16.8px, 2vw, 22.4px);
531
531
  font-weight: 650;
532
532
  line-height: 1.2;
533
533
  }
@@ -537,8 +537,8 @@
537
537
  }
538
538
 
539
539
  :where(.astra-ui) .astra-dialog__actions > button {
540
- width: 1.9rem;
541
- height: 1.9rem;
540
+ width: 30.4px;
541
+ height: 30.4px;
542
542
  border-color: var(--astra-color-border-strong);
543
543
  border-radius: var(--astra-radius-control);
544
544
  background: var(--astra-color-surface-raised);
@@ -566,10 +566,10 @@
566
566
  :where(.astra-ui) .astra-dialog__header,
567
567
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
568
568
  box-sizing: border-box;
569
- min-height: 4.75rem;
569
+ min-height: 76px;
570
570
  align-items: flex-start;
571
571
  margin: 0;
572
- padding: 0.875rem 0.875rem 0.875rem 1rem;
572
+ padding: 14px 14px 14px 16px;
573
573
  border: 0;
574
574
  border-block-end: 1px solid var(--astra-color-border);
575
575
  background: var(--astra-color-canvas);
@@ -582,7 +582,7 @@
582
582
  margin: 0;
583
583
  color: var(--astra-color-text);
584
584
  font-family: var(--astra-font-heading);
585
- font-size: clamp(1.25rem, 2.2vw, 1.5rem);
585
+ font-size: clamp(var(--astra-font-size-title), 2.2vw, 24px);
586
586
  font-weight: 700;
587
587
  line-height: 1.12;
588
588
  text-overflow: ellipsis;
@@ -591,39 +591,39 @@
591
591
 
592
592
  :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)),
593
593
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
594
- width: 1.875rem;
595
- height: 1.875rem;
594
+ width: 30px;
595
+ height: 30px;
596
596
  border: 0;
597
597
  border-radius: 0;
598
598
  background: transparent;
599
599
  color: var(--astra-color-text-subtle);
600
- font-size: 1.25rem;
600
+ font-size: var(--astra-font-size-title);
601
601
  }
602
602
 
603
603
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
604
604
  border-color: var(--astra-color-border-strong);
605
- border-radius: 0.625rem;
605
+ border-radius: 10px;
606
606
  background: var(--astra-color-canvas);
607
- box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
607
+ box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
608
608
  color: var(--astra-color-text);
609
609
  font-family: var(--astra-font-body);
610
610
  }
611
611
 
612
612
  :where(.astra-ui) .astra-dialog__header,
613
613
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
614
- min-height: 4.375rem;
615
- padding: 0.8125rem 0.875rem 0.8125rem 1rem;
614
+ min-height: 70px;
615
+ padding: 13px 14px 13px 16px;
616
616
  background: var(--astra-color-canvas);
617
617
  }
618
618
 
619
619
  :where(.astra-ui) .astra-dialog__header h3,
620
620
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
621
621
  font-family: var(--astra-font-ui);
622
- font-size: 1.25rem;
622
+ font-size: var(--astra-font-size-title);
623
623
  line-height: 1.2;
624
624
  }
625
625
 
626
- @media (max-width: 47.5rem) {
626
+ @media (max-width: 760px) {
627
627
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel,
628
628
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel {
629
629
  border-radius: 0;
@@ -3,7 +3,7 @@
3
3
  @layer astra.components {
4
4
  :where(.astra-ui) .astra-empty-state,
5
5
  :where(.astra-ui) .astra-empty-state {
6
- margin: 1.5rem 0;
6
+ margin: 24px 0;
7
7
  color: var(--astra-color-text-subtle);
8
8
  }
9
9
 
@@ -0,0 +1,37 @@
1
+ @layer astra.tokens, astra.base, astra.components, astra.views;
2
+
3
+ @layer astra.components {
4
+ :where(.astra-ui).astra-inline-reference,
5
+ :where(.astra-ui) .astra-inline-reference {
6
+ display: inline;
7
+ background: transparent;
8
+ font: inherit;
9
+ font-weight: 600;
10
+ color: var(--astra-color-link);
11
+ text-decoration: underline;
12
+ text-decoration-thickness: 1px;
13
+ text-decoration-color: color-mix(in srgb, var(--astra-color-link) 55%, transparent);
14
+ text-underline-offset: 2px;
15
+ padding: 0.05em 0.1em;
16
+ border-radius: var(--astra-radius-control);
17
+ cursor: pointer;
18
+ transition: background-color 120ms ease;
19
+ }
20
+ :where(.astra-ui).astra-inline-reference > .astra-kind-glyph,
21
+ :where(.astra-ui) .astra-inline-reference > .astra-kind-glyph {
22
+ margin-right: 0.32em;
23
+ vertical-align: 0.02em;
24
+ }
25
+ :where(.astra-ui).astra-inline-reference:hover,
26
+ :where(.astra-ui) .astra-inline-reference:hover {
27
+ background: var(--astra-color-accent-soft);
28
+ text-decoration-color: var(--astra-color-link);
29
+ }
30
+ :where(.astra-ui).astra-inline-reference[data-kind="value"],
31
+ :where(.astra-ui) .astra-inline-reference[data-kind="value"] {
32
+ color: var(--astra-color-text);
33
+ font-variant-numeric: tabular-nums;
34
+ text-decoration: underline dotted color-mix(in srgb, var(--astra-color-kind-value) 60%, transparent);
35
+ white-space: nowrap;
36
+ }
37
+ }
@@ -0,0 +1,31 @@
1
+ @layer astra.tokens, astra.base, astra.components, astra.views;
2
+
3
+ @layer astra.components {
4
+ /* A kind mark has the same typography in prose, compact rows and viewers.
5
+ * Its own data-kind selects its colour through kind.css, independently of
6
+ * the surrounding record, link state or label's font size.
7
+ */
8
+ :where(.astra-ui) .astra-kind-glyph {
9
+ display: inline-block;
10
+ flex: none;
11
+ color: var(--astra-kind);
12
+ font-family: var(--astra-font-body);
13
+ font-size: var(--astra-font-size);
14
+ font-style: normal;
15
+ font-weight: 400;
16
+ line-height: 1;
17
+ letter-spacing: 0;
18
+ text-decoration: none;
19
+ }
20
+ :where(.astra-ui) .astra-kind-glyph[data-kind="paper"] {
21
+ width: 1em;
22
+ height: 1em;
23
+ vertical-align: -0.125em;
24
+ }
25
+
26
+ :where(.astra-ui) .astra-kind-glyph > svg {
27
+ display: block;
28
+ width: 100%;
29
+ height: 100%;
30
+ }
31
+ }
@@ -38,4 +38,10 @@
38
38
  --astra-kind-ink: var(--astra-color-kind-insight-ink);
39
39
  --astra-kind-soft: var(--astra-color-kind-insight-soft);
40
40
  }
41
+ :where(.astra-ui) [data-kind="value"],
42
+ :where(.astra-ui) [data-entry-kind="value"] {
43
+ --astra-kind: var(--astra-color-kind-value);
44
+ --astra-kind-ink: var(--astra-color-kind-value);
45
+ --astra-kind-soft: color-mix(in srgb, var(--astra-color-kind-value) 10%, transparent);
46
+ }
41
47
  }
@@ -10,7 +10,7 @@
10
10
  :where(.astra-ui) .astra-preview-popover {
11
11
  z-index: var(--astra-z-preview);
12
12
  width: var(--astra-width-preview);
13
- max-width: calc(100vw - 1rem);
13
+ max-width: calc(100vw - 32px);
14
14
  color: var(--astra-color-text);
15
15
  font-family: var(--astra-font-body);
16
16
  font-size: var(--astra-font-size);
@@ -21,16 +21,11 @@
21
21
  position: relative;
22
22
  display: flex;
23
23
  max-height: min(
24
- var(--astra-preview-available-height, calc(100dvh - 1.5rem)),
25
- calc(100dvh - 1.5rem)
24
+ var(--astra-preview-available-height, calc(100dvh - 24px)),
25
+ calc(100dvh - 24px)
26
26
  );
27
27
  flex-direction: column;
28
- border: 1px solid var(--astra-color-border);
29
- border-top-color: color-mix(
30
- in srgb,
31
- var(--astra-kind, var(--astra-color-border-strong)) 55%,
32
- var(--astra-color-border)
33
- );
28
+ border: 1px solid color-mix(in srgb, var(--astra-kind) 55%, transparent);
34
29
  border-radius: var(--astra-radius-preview);
35
30
  background: var(--astra-color-surface-muted);
36
31
  box-shadow: var(--astra-shadow-preview);
@@ -62,8 +57,8 @@
62
57
  }
63
58
 
64
59
  :where(.astra-ui) .astra-preview-popover__arrow {
65
- fill: var(--astra-color-surface-muted);
66
- stroke: var(--astra-color-border);
60
+ fill: var(--astra-color-preview-pointer);
61
+ stroke: none;
67
62
  stroke-width: 1px;
68
63
  }
69
64
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  :where(.astra-ui) .astra-prose__display-math .katex-display {
10
10
  max-width: 100%;
11
- margin: 0.8rem 0;
11
+ margin: 12.8px 0;
12
12
  overflow-x: auto;
13
13
  overflow-y: hidden;
14
14
  }