@xynolog/react-ui 0.0.0-stage → 0.8.1

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 (146) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +359 -2
  3. package/dist/PdfAnnotationCanvas.client-S64VRLUN.css +193 -0
  4. package/dist/PdfAnnotationCanvas.client-V7R4NXFO.js +799 -0
  5. package/dist/ar-AIV7P4FL.js +594 -0
  6. package/dist/bn-J2OR57PB.js +594 -0
  7. package/dist/chunk-4L3TYOIV.js +172 -0
  8. package/dist/chunk-BM76QBIO.js +594 -0
  9. package/dist/chunk-D2O46PZQ.js +240 -0
  10. package/dist/chunk-O23TLLXW.js +42 -0
  11. package/dist/chunk-WGTUIB6C.js +304 -0
  12. package/dist/cs-JNEAMHFB.js +594 -0
  13. package/dist/da-UY5ZRVTZ.js +594 -0
  14. package/dist/de-EETVXC42.js +594 -0
  15. package/dist/el-S5YKDMTL.js +594 -0
  16. package/dist/en-3YQWF45H.js +61 -0
  17. package/dist/es-GHA7S27R.js +594 -0
  18. package/dist/fa-JTR3GF6I.js +594 -0
  19. package/dist/fi-CQZ7BW57.js +594 -0
  20. package/dist/fr-OJH2WIY7.js +594 -0
  21. package/dist/he-2DBXWA2V.js +594 -0
  22. package/dist/hi-NZP7B55I.js +594 -0
  23. package/dist/id-4KXFKWOI.js +594 -0
  24. package/dist/index.css +4134 -0
  25. package/dist/index.d.ts +4040 -0
  26. package/dist/index.js +29638 -0
  27. package/dist/it-XBMYGKKY.js +594 -0
  28. package/dist/ja-OVHZS3EH.js +594 -0
  29. package/dist/ko-NW2MVM5L.js +594 -0
  30. package/dist/ms-RXLPBZLK.js +594 -0
  31. package/dist/nl-77CTBEDA.js +594 -0
  32. package/dist/no-RAPO56SE.js +594 -0
  33. package/dist/pl-XCFXZCTT.js +594 -0
  34. package/dist/pt-EMBE27IS.js +594 -0
  35. package/dist/ro-M7QLJBYN.js +594 -0
  36. package/dist/sv-ST6CITQY.js +594 -0
  37. package/dist/test-utils.css +112 -0
  38. package/dist/test-utils.d.ts +126 -0
  39. package/dist/test-utils.js +13119 -0
  40. package/dist/th-EEQGL3G7.js +594 -0
  41. package/dist/tr-5FYHZQKD.js +594 -0
  42. package/dist/uk-VTWDC467.js +594 -0
  43. package/dist/vi-ISBKJ66X.js +594 -0
  44. package/dist/zh-2AW2N66Z.js +594 -0
  45. package/package.json +132 -4
  46. package/src/components/ProtectedErrorBoundary.css +121 -0
  47. package/src/components/SessionExpiryBanner.css +67 -0
  48. package/src/components/StatusDisplay.css +439 -0
  49. package/src/components/Toast.css +136 -0
  50. package/src/components/annotation/annotation-entries.css +138 -0
  51. package/src/components/annotation/annotations.css +93 -0
  52. package/src/components/annotation/references.css +300 -0
  53. package/src/components/branding/Branding.css +129 -0
  54. package/src/components/error-states/errors.css +34 -0
  55. package/src/components/layout/Header.css +99 -0
  56. package/src/components/layout/LeftSidebar.css +115 -0
  57. package/src/components/layout/ResizeHandle.css +110 -0
  58. package/src/components/layout/SkipLinks.css +84 -0
  59. package/src/components/loading-states/loading.css +42 -0
  60. package/src/components/modals/SearchModal.css +1019 -0
  61. package/src/components/modals/modals.css +655 -0
  62. package/src/components/navigation/CollapsibleResourceNavigation.css +10 -0
  63. package/src/components/navigation/NavigationMenu.css +59 -0
  64. package/src/components/navigation/NavigationTabs.css +466 -0
  65. package/src/components/navigation/SimpleNavigation.css +9 -0
  66. package/src/components/pdf-annotation/PdfAnnotationCanvas.css +288 -0
  67. package/src/components/resource/panels/CollaborationPanel.css +184 -0
  68. package/src/components/resource/panels/DelegateSection.css +330 -0
  69. package/src/components/resource/panels/JsonLdPanel.css +37 -0
  70. package/src/components/resource/panels/ReferencesPanel.css +108 -0
  71. package/src/components/resource/panels/ResourceInfoPanel.css +183 -0
  72. package/src/components/resource/panels/StatisticsPanel.css +127 -0
  73. package/src/components/resource/panels/UnifiedAnnotationsPanel.css +129 -0
  74. package/src/components/settings/SettingsPanel.css +92 -0
  75. package/src/components/toolbar/Toolbar.css +245 -0
  76. package/src/features/auth/auth.css +120 -0
  77. package/src/styles/base/reset.css +105 -0
  78. package/src/styles/base/utilities.css +35 -0
  79. package/src/styles/core/badges.css +17 -0
  80. package/src/styles/core/buttons.css +772 -0
  81. package/src/styles/core/checkboxes.css +85 -0
  82. package/src/styles/core/forms.css +237 -0
  83. package/src/styles/core/index.css +43 -0
  84. package/src/styles/core/indicators.css +24 -0
  85. package/src/styles/core/inputs.css +164 -0
  86. package/src/styles/core/progress.css +85 -0
  87. package/src/styles/core/selects.css +119 -0
  88. package/src/styles/core/sliders.css +180 -0
  89. package/src/styles/core/tags.css +86 -0
  90. package/src/styles/core/textareas.css +104 -0
  91. package/src/styles/core/toggles.css +82 -0
  92. package/src/styles/features/compose.css +341 -0
  93. package/src/styles/features/entity-tags.css +140 -0
  94. package/src/styles/features/recent-docs.css +97 -0
  95. package/src/styles/features/resource-discovery.css +349 -0
  96. package/src/styles/features/resource-viewer.css +609 -0
  97. package/src/styles/features/resource.css +483 -0
  98. package/src/styles/features/schemas.css +222 -0
  99. package/src/styles/index.css +84 -0
  100. package/src/styles/layout/layout.css +28 -0
  101. package/src/styles/motivations/motivation-assessment.css +179 -0
  102. package/src/styles/motivations/motivation-comment.css +164 -0
  103. package/src/styles/motivations/motivation-highlight.css +132 -0
  104. package/src/styles/motivations/motivation-reference.css +167 -0
  105. package/src/styles/motivations/motivation-tag.css +182 -0
  106. package/src/styles/panels/history-panel.css +212 -0
  107. package/src/styles/panels/user-panel.css +21 -0
  108. package/src/styles/patterns/cards.css +26 -0
  109. package/src/styles/patterns/panel-helpers.css +32 -0
  110. package/src/styles/patterns/panels-base.css +272 -0
  111. package/src/styles/utilities/contrast.css +280 -0
  112. package/src/styles/utilities/focus-extended.css +276 -0
  113. package/src/styles/utilities/focus.css +41 -0
  114. package/src/styles/utilities/motion-overrides.css +286 -0
  115. package/src/styles/utilities/motion.css +184 -0
  116. package/src/styles/utilities/semantic-indicators.css +254 -0
  117. package/src/styles/variables.css +410 -0
  118. package/translations/ar.json +534 -0
  119. package/translations/bn.json +534 -0
  120. package/translations/cs.json +534 -0
  121. package/translations/da.json +534 -0
  122. package/translations/de.json +534 -0
  123. package/translations/el.json +534 -0
  124. package/translations/en.json +534 -0
  125. package/translations/es.json +534 -0
  126. package/translations/fa.json +534 -0
  127. package/translations/fi.json +534 -0
  128. package/translations/fr.json +534 -0
  129. package/translations/he.json +534 -0
  130. package/translations/hi.json +534 -0
  131. package/translations/id.json +534 -0
  132. package/translations/it.json +534 -0
  133. package/translations/ja.json +534 -0
  134. package/translations/ko.json +534 -0
  135. package/translations/ms.json +534 -0
  136. package/translations/nl.json +534 -0
  137. package/translations/no.json +534 -0
  138. package/translations/pl.json +534 -0
  139. package/translations/pt.json +534 -0
  140. package/translations/ro.json +534 -0
  141. package/translations/sv.json +534 -0
  142. package/translations/th.json +534 -0
  143. package/translations/tr.json +534 -0
  144. package/translations/uk.json +534 -0
  145. package/translations/vi.json +534 -0
  146. package/translations/zh.json +534 -0
@@ -0,0 +1,655 @@
1
+ /* ================================ */
2
+ /* Modal Components */
3
+ /* ================================ */
4
+
5
+ /* Base Modal Styles */
6
+ .xynolog-modal {
7
+ position: relative;
8
+ z-index: 1000;
9
+ }
10
+
11
+ .xynolog-modal__backdrop {
12
+ position: fixed;
13
+ inset: 0;
14
+ background-color: rgba(0, 0, 0, 0.5);
15
+ backdrop-filter: blur(4px);
16
+ }
17
+
18
+ [data-theme="dark"] .xynolog-modal__backdrop {
19
+ background-color: rgba(0, 0, 0, 0.7);
20
+ }
21
+
22
+ .xynolog-modal__container {
23
+ position: fixed;
24
+ inset: 0;
25
+ overflow-y: auto;
26
+ }
27
+
28
+ .xynolog-modal__wrapper {
29
+ display: flex;
30
+ min-height: 100vh;
31
+ align-items: center;
32
+ justify-content: center;
33
+ padding: 1rem;
34
+ }
35
+
36
+ .xynolog-modal__panel {
37
+ width: 100%;
38
+ max-width: 28rem;
39
+ transform: translateX(0);
40
+ overflow: hidden;
41
+ border-radius: 0.75rem;
42
+ background-color: var(--xynolog-bg-primary);
43
+ box-shadow: var(--xynolog-shadow-lg);
44
+ transition: all 0.2s ease;
45
+ padding: 1.5rem;
46
+ border: 1px solid var(--xynolog-border-primary);
47
+ }
48
+
49
+ [data-theme="dark"] .xynolog-modal__panel {
50
+ background-color: var(--xynolog-bg-primary);
51
+ border-color: var(--xynolog-border-primary);
52
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
53
+ }
54
+
55
+ .xynolog-modal__panel--medium {
56
+ max-width: 28rem;
57
+ }
58
+
59
+ .xynolog-modal__panel--large {
60
+ max-width: 42rem;
61
+ padding: 0;
62
+ }
63
+
64
+ /* Modal Header */
65
+ .xynolog-modal__header {
66
+ padding: 1.5rem 1.5rem 1rem;
67
+ border-bottom: 1px solid var(--xynolog-color-gray-200);
68
+ }
69
+
70
+ [data-theme="dark"] .xynolog-modal__header {
71
+ border-color: var(--xynolog-color-gray-700);
72
+ }
73
+
74
+ .xynolog-modal__header-content {
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: space-between;
78
+ }
79
+
80
+ .xynolog-modal__title {
81
+ font-size: 1.125rem;
82
+ font-weight: 600;
83
+ color: var(--xynolog-color-gray-900);
84
+ }
85
+
86
+ [data-theme="dark"] .xynolog-modal__title {
87
+ color: var(--xynolog-color-white);
88
+ }
89
+
90
+ .xynolog-modal__title--centered {
91
+ text-align: center;
92
+ margin-bottom: 0.5rem;
93
+ }
94
+
95
+ .xynolog-modal__close {
96
+ color: var(--xynolog-color-gray-600);
97
+ padding: 0.25rem;
98
+ border-radius: 0.25rem;
99
+ transition: all 0.15s ease;
100
+ background: transparent;
101
+ border: none;
102
+ cursor: pointer;
103
+ }
104
+
105
+ [data-theme="dark"] .xynolog-modal__close {
106
+ color: var(--xynolog-color-gray-400);
107
+ }
108
+
109
+ .xynolog-modal__close:hover {
110
+ color: var(--xynolog-text-primary);
111
+ background-color: var(--xynolog-bg-tertiary);
112
+ }
113
+
114
+ .xynolog-modal__close-icon {
115
+ width: 1.25rem;
116
+ height: 1.25rem;
117
+ }
118
+
119
+ /* Modal Body */
120
+ .xynolog-modal__body {
121
+ padding: 1.5rem;
122
+ max-height: 70vh;
123
+ overflow-y: auto;
124
+ }
125
+
126
+ /* Modal Content */
127
+ .xynolog-modal__content {
128
+ text-align: center;
129
+ margin-bottom: 1rem;
130
+ }
131
+
132
+ .xynolog-modal__description {
133
+ color: var(--xynolog-color-gray-600);
134
+ font-size: 0.875rem;
135
+ }
136
+
137
+ [data-theme="dark"] .xynolog-modal__description {
138
+ color: var(--xynolog-color-gray-400);
139
+ }
140
+
141
+ /* Modal Footer */
142
+ .xynolog-modal__footer {
143
+ padding: 0.75rem 1.5rem;
144
+ background-color: var(--xynolog-bg-secondary);
145
+ border-top: 1px solid var(--xynolog-border-primary);
146
+ }
147
+
148
+ [data-theme="dark"] .xynolog-modal__footer {
149
+ background-color: var(--xynolog-bg-secondary);
150
+ border-color: var(--xynolog-border-primary);
151
+ }
152
+
153
+ .xynolog-modal__footer-content {
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: space-between;
157
+ }
158
+
159
+ .xynolog-modal__hint {
160
+ font-size: 0.75rem;
161
+ color: var(--xynolog-color-gray-500);
162
+ }
163
+
164
+ [data-theme="dark"] .xynolog-modal__hint {
165
+ color: var(--xynolog-color-gray-400);
166
+ }
167
+
168
+ .xynolog-modal__hint-key {
169
+ padding: 0.125rem 0.375rem;
170
+ font-size: 0.75rem;
171
+ font-weight: 600;
172
+ background-color: var(--xynolog-bg-tertiary);
173
+ border: 1px solid var(--xynolog-border-primary);
174
+ border-radius: 0.25rem;
175
+ }
176
+
177
+ [data-theme="dark"] .xynolog-modal__hint-key {
178
+ background-color: var(--xynolog-bg-tertiary);
179
+ border-color: var(--xynolog-border-primary);
180
+ }
181
+
182
+ /* Modal Icon */
183
+ .xynolog-modal__icon-wrapper {
184
+ display: flex;
185
+ justify-content: center;
186
+ margin-bottom: 1rem;
187
+ }
188
+
189
+ .xynolog-modal__icon {
190
+ width: 3rem;
191
+ height: 3rem;
192
+ background: linear-gradient(to bottom right, var(--xynolog-color-amber-100), var(--xynolog-color-amber-400));
193
+ border-radius: 50%;
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ }
198
+
199
+ [data-theme="dark"] .xynolog-modal__icon {
200
+ background: linear-gradient(to bottom right, rgba(180, 83, 9, 0.3), rgba(146, 64, 14, 0.3));
201
+ }
202
+
203
+ /* Modal Selection */
204
+
205
+ .xynolog-modal__empty-state {
206
+ font-size: 0.875rem;
207
+ color: var(--xynolog-color-gray-500);
208
+ }
209
+
210
+ [data-theme="dark"] .xynolog-modal__empty-state {
211
+ color: var(--xynolog-color-gray-400);
212
+ }
213
+
214
+ .xynolog-modal__actions {
215
+ display: flex;
216
+ gap: 0.5rem;
217
+ }
218
+
219
+ /*
220
+ * The wizard footer. Retreat sits at the leading edge and advance at the
221
+ * trailing one, and neither stretches — `--flex` on every button would make
222
+ * "Back" and "Search" read as peers.
223
+ * `margin-inline-end: auto` rather than `space-between` so a footer with only
224
+ * one child still lands on the correct side.
225
+ */
226
+ .xynolog-modal__actions--wizard {
227
+ justify-content: flex-end;
228
+ padding-top: 0.5rem;
229
+ }
230
+
231
+ .xynolog-wizard-footer__back {
232
+ margin-inline-end: auto;
233
+ }
234
+
235
+ /* Chip Styles */
236
+ .xynolog-chip {
237
+ padding: 0.25rem 0.75rem;
238
+ font-size: 0.875rem;
239
+ border-radius: 9999px;
240
+ transition: colors 0.15s ease;
241
+ background-color: var(--xynolog-bg-tertiary);
242
+ color: var(--xynolog-text-primary);
243
+ border: none;
244
+ cursor: pointer;
245
+ }
246
+
247
+ [data-theme="dark"] .xynolog-chip {
248
+ background-color: var(--xynolog-bg-tertiary);
249
+ color: var(--xynolog-text-primary);
250
+ }
251
+
252
+ .xynolog-chip:hover {
253
+ background-color: var(--xynolog-bg-secondary);
254
+ }
255
+
256
+ /* Focus styles for keyboard navigation */
257
+ .xynolog-chip:focus-visible {
258
+ outline: 2px solid var(--xynolog-color-primary-500);
259
+ outline-offset: 2px;
260
+ }
261
+
262
+ [data-theme="dark"] .xynolog-chip:focus-visible {
263
+ outline-color: var(--xynolog-color-primary-400);
264
+ }
265
+
266
+ /* Remove focus for mouse users */
267
+ .xynolog-chip:focus:not(:focus-visible) {
268
+ outline: none;
269
+ }
270
+
271
+ @media (prefers-contrast: more) {
272
+ .xynolog-chip:focus-visible {
273
+ outline-width: 3px;
274
+ }
275
+ }
276
+
277
+ .xynolog-chip[data-selected="true"] {
278
+ background-color: var(--xynolog-color-blue-600);
279
+ color: var(--xynolog-color-white);
280
+ }
281
+
282
+ [data-theme="dark"] .xynolog-chip[data-selected="true"] {
283
+ background-color: var(--xynolog-color-blue-700);
284
+ color: var(--xynolog-color-white);
285
+ }
286
+
287
+ .xynolog-chip[data-selected="true"]:hover {
288
+ background-color: var(--xynolog-color-blue-700);
289
+ }
290
+
291
+ [data-theme="dark"] .xynolog-chip[data-selected="true"]:hover {
292
+ background-color: var(--xynolog-color-blue-600);
293
+ }
294
+
295
+ /* Button Extensions for Modals */
296
+ .xynolog-button--flex {
297
+ flex: 1;
298
+ }
299
+
300
+ .xynolog-button--disabled,
301
+ .xynolog-button[data-disabled="true"] {
302
+ background-color: var(--xynolog-bg-tertiary);
303
+ color: var(--xynolog-text-tertiary);
304
+ cursor: not-allowed;
305
+ }
306
+
307
+ /* Keyboard Shortcuts Styles */
308
+ .xynolog-shortcuts {
309
+ display: flex;
310
+ flex-direction: column;
311
+ gap: 1.5rem;
312
+ }
313
+
314
+ .xynolog-shortcuts__group {
315
+ display: flex;
316
+ flex-direction: column;
317
+ }
318
+
319
+ .xynolog-shortcuts__group-title {
320
+ font-size: 0.875rem;
321
+ font-weight: 600;
322
+ color: var(--xynolog-color-gray-900);
323
+ margin-bottom: 0.75rem;
324
+ }
325
+
326
+ [data-theme="dark"] .xynolog-shortcuts__group-title {
327
+ color: var(--xynolog-color-white);
328
+ }
329
+
330
+ .xynolog-shortcuts__list {
331
+ display: flex;
332
+ flex-direction: column;
333
+ gap: 0.5rem;
334
+ }
335
+
336
+ .xynolog-shortcuts__item {
337
+ display: flex;
338
+ align-items: center;
339
+ justify-content: space-between;
340
+ padding: 0.375rem 0;
341
+ }
342
+
343
+ .xynolog-shortcuts__description {
344
+ font-size: 0.875rem;
345
+ color: var(--xynolog-color-gray-600);
346
+ }
347
+
348
+ [data-theme="dark"] .xynolog-shortcuts__description {
349
+ color: var(--xynolog-color-gray-400);
350
+ }
351
+
352
+ .xynolog-shortcuts__keys {
353
+ display: flex;
354
+ align-items: center;
355
+ gap: 0.5rem;
356
+ }
357
+
358
+ .xynolog-shortcuts__separator {
359
+ font-size: 0.75rem;
360
+ color: var(--xynolog-color-gray-400);
361
+ }
362
+
363
+ [data-theme="dark"] .xynolog-shortcuts__separator {
364
+ color: var(--xynolog-color-gray-500);
365
+ }
366
+
367
+ .xynolog-shortcuts__key {
368
+ padding: 0.25rem 0.5rem;
369
+ font-size: 0.75rem;
370
+ font-weight: 600;
371
+ color: var(--xynolog-text-primary);
372
+ background-color: var(--xynolog-bg-tertiary);
373
+ border: 1px solid var(--xynolog-border-primary);
374
+ border-radius: 0.25rem;
375
+ }
376
+
377
+ [data-theme="dark"] .xynolog-shortcuts__key {
378
+ color: var(--xynolog-text-primary);
379
+ background-color: var(--xynolog-bg-tertiary);
380
+ border-color: var(--xynolog-border-primary);
381
+ }
382
+
383
+ .xynolog-shortcuts__note {
384
+ margin-top: 2rem;
385
+ padding-top: 1rem;
386
+ border-top: 1px solid var(--xynolog-color-gray-200);
387
+ }
388
+
389
+ [data-theme="dark"] .xynolog-shortcuts__note {
390
+ border-color: var(--xynolog-color-gray-700);
391
+ }
392
+
393
+ .xynolog-shortcuts__note-text {
394
+ font-size: 0.75rem;
395
+ color: var(--xynolog-color-gray-500);
396
+ }
397
+
398
+ [data-theme="dark"] .xynolog-shortcuts__note-text {
399
+ color: var(--xynolog-color-gray-400);
400
+ }
401
+
402
+ /* ================================ */
403
+ /* Annotation Popups */
404
+ /* ================================ */
405
+
406
+ /* Popup Overlay - Full screen backdrop */
407
+ .xynolog-popup-overlay {
408
+ position: fixed;
409
+ inset: 0;
410
+ z-index: 1000;
411
+ }
412
+
413
+ /* Popup Backdrop - Semi-transparent background */
414
+ .xynolog-popup-backdrop {
415
+ position: fixed;
416
+ inset: 0;
417
+ background-color: rgba(0, 0, 0, 0.75);
418
+ backdrop-filter: blur(4px);
419
+ }
420
+
421
+ [data-theme="dark"] .xynolog-popup-backdrop {
422
+ background-color: rgba(0, 0, 0, 0.85);
423
+ }
424
+
425
+ /* Popup Container - Positioning context */
426
+ .xynolog-popup-container {
427
+ position: fixed;
428
+ inset: 0;
429
+ pointer-events: none;
430
+ }
431
+
432
+ /* Popup Panel - The actual popup content */
433
+ .xynolog-popup-panel {
434
+ pointer-events: auto;
435
+ background-color: var(--xynolog-bg-primary);
436
+ border-radius: 0.75rem;
437
+ box-shadow: var(--xynolog-shadow-lg);
438
+ border: 1px solid var(--xynolog-border-primary);
439
+ max-height: 90vh;
440
+ display: flex;
441
+ flex-direction: column;
442
+ overflow: hidden;
443
+ }
444
+
445
+ [data-theme="dark"] .xynolog-popup-panel {
446
+ background-color: var(--xynolog-bg-primary);
447
+ border-color: var(--xynolog-border-primary);
448
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
449
+ }
450
+
451
+ /* Wide popup variant (for JSON-LD view) */
452
+ .xynolog-popup-panel[data-wide="true"] {
453
+ width: 800px;
454
+ height: 700px;
455
+ }
456
+
457
+ /* Regular popup variant */
458
+ .xynolog-popup-panel[data-wide="false"] {
459
+ width: 400px;
460
+ max-height: 500px;
461
+ }
462
+
463
+ /* JSON-LD View Styles */
464
+ .xynolog-jsonld-view {
465
+ display: flex;
466
+ flex-direction: column;
467
+ height: 100%;
468
+ overflow: hidden;
469
+ }
470
+
471
+ .xynolog-jsonld-view__header {
472
+ display: flex;
473
+ align-items: center;
474
+ justify-content: space-between;
475
+ padding: 1rem 1.5rem;
476
+ border-bottom: 1px solid var(--xynolog-border-primary);
477
+ background-color: var(--xynolog-bg-secondary);
478
+ flex-shrink: 0;
479
+ }
480
+
481
+ [data-theme="dark"] .xynolog-jsonld-view__header {
482
+ background-color: var(--xynolog-bg-secondary);
483
+ border-color: var(--xynolog-border-primary);
484
+ }
485
+
486
+ .xynolog-jsonld-view__title {
487
+ font-size: 1.125rem;
488
+ font-weight: 600;
489
+ color: var(--xynolog-text-primary);
490
+ margin: 0;
491
+ }
492
+
493
+ .xynolog-jsonld-view__back-button,
494
+ .xynolog-jsonld-view__copy-button {
495
+ padding: 0.5rem 1rem;
496
+ border-radius: 0.375rem;
497
+ background-color: var(--xynolog-bg-tertiary);
498
+ border: 1px solid var(--xynolog-border-primary);
499
+ color: var(--xynolog-text-primary);
500
+ font-size: 0.875rem;
501
+ cursor: pointer;
502
+ transition: all 0.15s ease;
503
+ }
504
+
505
+ .xynolog-jsonld-view__back-button:hover,
506
+ .xynolog-jsonld-view__copy-button:hover {
507
+ background-color: var(--xynolog-bg-secondary);
508
+ border-color: var(--xynolog-border-secondary);
509
+ }
510
+
511
+ [data-theme="dark"] .xynolog-jsonld-view__back-button,
512
+ [data-theme="dark"] .xynolog-jsonld-view__copy-button {
513
+ background-color: var(--xynolog-bg-tertiary);
514
+ border-color: var(--xynolog-border-primary);
515
+ }
516
+
517
+ .xynolog-jsonld-view__editor {
518
+ flex: 1;
519
+ overflow: auto;
520
+ padding: 1rem;
521
+ background-color: var(--xynolog-bg-primary);
522
+ }
523
+
524
+ /* Ensure CodeMirror takes full height */
525
+ .xynolog-jsonld-view__editor .cm-editor {
526
+ height: 100%;
527
+ }
528
+
529
+ .xynolog-jsonld-view__editor .cm-scroller {
530
+ overflow: auto;
531
+ }
532
+
533
+ /* Popup Header Styles (for other popups) */
534
+ .xynolog-popup-header {
535
+ display: flex;
536
+ align-items: center;
537
+ justify-content: space-between;
538
+ padding: 1rem 1.5rem;
539
+ border-bottom: 1px solid var(--xynolog-border-primary);
540
+ background-color: var(--xynolog-bg-secondary);
541
+ }
542
+
543
+ [data-theme="dark"] .xynolog-popup-header {
544
+ background-color: var(--xynolog-bg-secondary);
545
+ border-color: var(--xynolog-border-primary);
546
+ }
547
+
548
+ .xynolog-popup-header__title {
549
+ font-size: 1rem;
550
+ font-weight: 600;
551
+ color: var(--xynolog-text-primary);
552
+ margin: 0;
553
+ }
554
+
555
+ .xynolog-popup-header__subtitle {
556
+ font-size: 0.875rem;
557
+ font-weight: normal;
558
+ color: var(--xynolog-text-secondary);
559
+ margin-left: 0.5rem;
560
+ }
561
+
562
+ .xynolog-popup-header__close-button {
563
+ padding: 0.25rem;
564
+ border-radius: 0.25rem;
565
+ background: transparent;
566
+ border: none;
567
+ color: var(--xynolog-text-secondary);
568
+ cursor: pointer;
569
+ transition: all 0.15s ease;
570
+ font-size: 1.25rem;
571
+ line-height: 1;
572
+ }
573
+
574
+ .xynolog-popup-header__close-button:hover {
575
+ background-color: var(--xynolog-bg-tertiary);
576
+ color: var(--xynolog-text-primary);
577
+ }
578
+
579
+ .xynolog-popup-header__close-button:focus-visible {
580
+ outline: 2px solid var(--xynolog-color-primary-500);
581
+ outline-offset: 2px;
582
+ }
583
+
584
+ [data-theme="dark"] .xynolog-popup-header__close-button:focus-visible {
585
+ outline-color: var(--xynolog-color-primary-400);
586
+ }
587
+
588
+ /* KB identity conflict: two facts, rendered apart — the registered entry and
589
+ the identity that answered. */
590
+ .xynolog-kb-conflict__fact {
591
+ display: flex;
592
+ flex-direction: column;
593
+ gap: 0.15rem;
594
+ margin-bottom: 0.75rem;
595
+ text-align: left;
596
+ }
597
+
598
+ .xynolog-kb-conflict__fact-label {
599
+ font-size: var(--xynolog-text-xs);
600
+ font-weight: 600;
601
+ color: var(--xynolog-text-secondary);
602
+ text-transform: uppercase;
603
+ letter-spacing: 0.04em;
604
+ }
605
+
606
+ .xynolog-kb-conflict__kb-name {
607
+ font-weight: 600;
608
+ color: var(--xynolog-text-primary);
609
+ }
610
+
611
+ .xynolog-kb-conflict__did {
612
+ font-family: var(--xynolog-font-mono, monospace);
613
+ font-size: var(--xynolog-text-xs);
614
+ color: var(--xynolog-text-secondary);
615
+ word-break: break-all;
616
+ }
617
+
618
+ /* The quoted passage a popup is about — the reader's anchor for everything
619
+ else in the popup, so it reads as quoted material, not as body copy. */
620
+ .xynolog-selected-text-display {
621
+ display: flex;
622
+ flex-direction: column;
623
+ gap: 0.25rem;
624
+ padding: 0.5rem 0.75rem;
625
+ border-left: 3px solid var(--xynolog-border-secondary);
626
+ background-color: var(--xynolog-bg-secondary);
627
+ border-radius: var(--xynolog-radius-sm);
628
+ }
629
+
630
+ .xynolog-selected-text-display__label {
631
+ font-size: var(--xynolog-text-2xs);
632
+ text-transform: uppercase;
633
+ letter-spacing: 0.04em;
634
+ color: var(--xynolog-text-tertiary);
635
+ }
636
+
637
+ .xynolog-selected-text-display__content {
638
+ font-size: var(--xynolog-text-sm);
639
+ color: var(--xynolog-text-primary);
640
+ overflow-wrap: anywhere;
641
+ }
642
+
643
+ .xynolog-entity-type-badges {
644
+ display: flex;
645
+ flex-wrap: wrap;
646
+ gap: 0.25rem;
647
+ }
648
+
649
+ .xynolog-entity-type-badges__badge {
650
+ padding: 0.0625rem 0.375rem;
651
+ border-radius: var(--xynolog-radius-full);
652
+ background-color: var(--xynolog-bg-tertiary);
653
+ color: var(--xynolog-text-secondary);
654
+ font-size: var(--xynolog-text-2xs);
655
+ }
@@ -0,0 +1,10 @@
1
+ /* Collapsible Resource Navigation Styles */
2
+
3
+ .xynolog-collapsible-nav {
4
+ height: 100%;
5
+ }
6
+
7
+ /* Container with padding */
8
+ .xynolog-collapsible-nav__container {
9
+ padding: 1rem; /* matches p-4 */
10
+ }
@@ -0,0 +1,59 @@
1
+ /* ============================================
2
+ NavigationMenu Component
3
+ ============================================ */
4
+
5
+ .xynolog-navigation-menu {
6
+ display: flex;
7
+ flex-direction: column;
8
+ padding: 0.5rem;
9
+ }
10
+
11
+ .xynolog-navigation-menu__link {
12
+ display: flex;
13
+ align-items: center;
14
+ gap: 0.75rem;
15
+ padding: 0.625rem 0.875rem;
16
+ color: var(--xynolog-color-gray-700);
17
+ text-decoration: none;
18
+ border-radius: var(--xynolog-radius-md);
19
+ transition: all var(--xynolog-duration-base);
20
+ font-size: 0.875rem;
21
+ font-weight: 500;
22
+ }
23
+
24
+ [data-theme="dark"] .xynolog-navigation-menu__link {
25
+ color: var(--xynolog-color-gray-300);
26
+ }
27
+
28
+ .xynolog-navigation-menu__link:hover {
29
+ background: var(--xynolog-color-gray-100) !important;
30
+ color: var(--xynolog-color-gray-900) !important;
31
+ cursor: pointer;
32
+ }
33
+
34
+ [data-theme="dark"] .xynolog-navigation-menu__link:hover {
35
+ background: var(--xynolog-color-gray-700) !important;
36
+ color: var(--xynolog-color-gray-50) !important;
37
+ }
38
+
39
+ .xynolog-navigation-menu__link:focus-visible {
40
+ outline: 2px solid var(--xynolog-color-primary-500);
41
+ outline-offset: 2px;
42
+ }
43
+
44
+ .xynolog-navigation-menu__link[aria-current="page"] {
45
+ background: var(--xynolog-color-gray-200);
46
+ color: var(--xynolog-color-gray-900);
47
+ font-weight: 600;
48
+ }
49
+
50
+ [data-theme="dark"] .xynolog-navigation-menu__link[aria-current="page"] {
51
+ background: var(--xynolog-color-gray-800);
52
+ color: var(--xynolog-color-gray-100);
53
+ }
54
+
55
+ .xynolog-navigation-menu__divider {
56
+ height: 1px;
57
+ margin: 0.25rem 0.5rem;
58
+ background: var(--xynolog-border-primary);
59
+ }