@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,330 @@
1
+ /**
2
+ * DelegateSection Component Styles
3
+ *
4
+ * Shared styles for the delegate sections across all motivation panels.
5
+ * Each panel (highlight, comment, assessment, tag, reference) uses data-type
6
+ * attribute for motivation-specific theming.
7
+ */
8
+
9
+ /* ============================================
10
+ Base Delegate Widget Container
11
+ ============================================ */
12
+
13
+ .xynolog-delegate-widget {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 1rem;
17
+ padding: 1rem;
18
+ background-color: var(--xynolog-bg-secondary);
19
+ border-radius: 0.5rem;
20
+ border: 1px solid var(--xynolog-color-gray-200);
21
+ }
22
+
23
+ [data-theme="dark"] .xynolog-delegate-widget {
24
+ background-color: var(--xynolog-color-gray-800);
25
+ border-color: var(--xynolog-color-gray-700);
26
+ }
27
+
28
+ /* ============================================
29
+ Labels and Descriptive Text
30
+ ============================================ */
31
+
32
+ .xynolog-delegate-widget__label {
33
+ font-size: 0.875rem;
34
+ font-weight: 500;
35
+ color: var(--xynolog-color-gray-700);
36
+ margin-bottom: 0.5rem;
37
+ }
38
+
39
+ [data-theme="dark"] .xynolog-delegate-widget__label {
40
+ color: var(--xynolog-color-gray-300);
41
+ }
42
+
43
+ .xynolog-delegate-widget__count {
44
+ font-size: 0.75rem;
45
+ color: var(--xynolog-color-gray-500);
46
+ text-align: center;
47
+ margin-bottom: 1rem;
48
+ }
49
+
50
+ [data-theme="dark"] .xynolog-delegate-widget__count {
51
+ color: var(--xynolog-color-gray-400);
52
+ }
53
+
54
+ .xynolog-delegate-widget__no-types {
55
+ font-size: 0.875rem;
56
+ color: var(--xynolog-color-gray-500);
57
+ font-style: italic;
58
+ }
59
+
60
+ [data-theme="dark"] .xynolog-delegate-widget__no-types {
61
+ color: var(--xynolog-color-gray-400);
62
+ }
63
+
64
+ /* ============================================
65
+ Entity Types / Chips Section (References)
66
+ ============================================ */
67
+
68
+ .xynolog-delegate-widget__entity-types {
69
+ margin-bottom: 1rem;
70
+ }
71
+
72
+ .xynolog-delegate-widget__chips {
73
+ display: flex;
74
+ flex-wrap: wrap;
75
+ gap: 0.5rem;
76
+ }
77
+
78
+ /* ============================================
79
+ Checkbox Group (References)
80
+ ============================================ */
81
+
82
+ .xynolog-delegate-widget__checkbox-group {
83
+ margin-bottom: 1rem;
84
+ }
85
+
86
+ .xynolog-delegate-widget__checkbox-label {
87
+ display: flex;
88
+ align-items: center;
89
+ gap: 0.5rem;
90
+ font-size: 0.875rem;
91
+ color: var(--xynolog-color-gray-700);
92
+ cursor: pointer;
93
+ }
94
+
95
+ [data-theme="dark"] .xynolog-delegate-widget__checkbox-label {
96
+ color: var(--xynolog-color-gray-300);
97
+ }
98
+
99
+ .xynolog-delegate-widget__checkbox {
100
+ border-radius: 0.25rem;
101
+ border: 1px solid var(--xynolog-color-gray-300);
102
+ color: var(--xynolog-color-blue-600);
103
+ }
104
+
105
+ [data-theme="dark"] .xynolog-delegate-widget__checkbox {
106
+ border-color: var(--xynolog-color-gray-600);
107
+ }
108
+
109
+ .xynolog-delegate-widget__checkbox:focus {
110
+ outline: 2px solid var(--xynolog-color-blue-500);
111
+ outline-offset: 2px;
112
+ }
113
+
114
+ .xynolog-delegate-widget__checkbox-hint {
115
+ font-size: 0.75rem;
116
+ color: var(--xynolog-color-gray-500);
117
+ margin-top: 0.25rem;
118
+ margin-left: 1.5rem;
119
+ }
120
+
121
+ [data-theme="dark"] .xynolog-delegate-widget__checkbox-hint {
122
+ color: var(--xynolog-color-gray-400);
123
+ }
124
+
125
+ /* ============================================
126
+ Delegate Progress Display
127
+ ============================================ */
128
+
129
+ /* ── Delegate progress: TWO containers ──────────────────────────────────────
130
+ The outer `.xynolog-delegate-widget` (above) provides the card; this provides
131
+ the status region inside it. A border, padding and tint on each nested
132
+ element would put a stack of boxes around one sentence of status. */
133
+ .xynolog-delegate-progress {
134
+ display: flex;
135
+ flex-direction: column;
136
+ gap: 0.375rem;
137
+ position: relative;
138
+ }
139
+
140
+ .xynolog-delegate-progress__status {
141
+ display: flex;
142
+ align-items: baseline;
143
+ gap: 0.5rem;
144
+ padding-right: 1.5rem; /* room for the single control */
145
+ font-size: var(--xynolog-text-sm);
146
+ font-weight: var(--xynolog-font-medium);
147
+ color: var(--xynolog-text-primary);
148
+ }
149
+
150
+ .xynolog-delegate-progress__icon {
151
+ flex: none;
152
+ }
153
+
154
+ /* The subject and the parameters are context for the status, not peers of it. */
155
+ .xynolog-delegate-progress__subject,
156
+ .xynolog-delegate-progress__tally,
157
+ .xynolog-delegate-progress__params {
158
+ font-size: var(--xynolog-text-xs);
159
+ color: var(--xynolog-text-secondary);
160
+ }
161
+
162
+ [data-theme="dark"] .xynolog-delegate-progress__subject,
163
+ [data-theme="dark"] .xynolog-delegate-progress__tally,
164
+ [data-theme="dark"] .xynolog-delegate-progress__params {
165
+ color: var(--xynolog-text-secondary);
166
+ }
167
+
168
+ .xynolog-delegate-progress__subject,
169
+ .xynolog-delegate-progress__tally {
170
+ font-variant-numeric: tabular-nums;
171
+ }
172
+
173
+ /* The finished run's artifact, offered as a link — the ended frame's primary
174
+ affordance. Completion reveals the new reference rather than navigating to
175
+ the new resource, so this is the way there: a button-shaped invitation to
176
+ open what was made, not an underlined footnote beside the bar. */
177
+ .xynolog-delegate-progress__outcome {
178
+ align-self: stretch;
179
+ padding: 0.5rem 0.75rem;
180
+ border: 1px solid var(--xynolog-color-primary-300);
181
+ border-radius: 0.5rem;
182
+ background: var(--xynolog-color-primary-50);
183
+ cursor: pointer;
184
+ font-size: var(--xynolog-text-sm);
185
+ font-weight: var(--xynolog-font-medium);
186
+ color: var(--xynolog-color-primary-700);
187
+ text-align: left;
188
+ }
189
+
190
+ .xynolog-delegate-progress__outcome:hover {
191
+ border-color: var(--xynolog-color-primary-400);
192
+ background: var(--xynolog-color-primary-100);
193
+ color: var(--xynolog-color-primary-800);
194
+ }
195
+
196
+ [data-theme="dark"] .xynolog-delegate-progress__outcome {
197
+ border-color: var(--xynolog-color-primary-700);
198
+ background: var(--xynolog-color-primary-900);
199
+ color: var(--xynolog-color-primary-300);
200
+ }
201
+
202
+ [data-theme="dark"] .xynolog-delegate-progress__outcome:hover {
203
+ border-color: var(--xynolog-color-primary-600);
204
+ background: var(--xynolog-color-primary-800);
205
+ color: var(--xynolog-color-primary-200);
206
+ }
207
+
208
+ .xynolog-delegate-progress__params {
209
+ display: flex;
210
+ flex-wrap: wrap;
211
+ gap: 0.5rem;
212
+ }
213
+
214
+ .xynolog-delegate-progress__param-label {
215
+ font-weight: var(--xynolog-font-medium);
216
+ }
217
+
218
+ /* One control, top-right, quiet until hovered. */
219
+ .xynolog-delegate-progress__control {
220
+ position: absolute;
221
+ top: 0;
222
+ right: 0;
223
+ padding: 0.125rem 0.25rem;
224
+ line-height: 1;
225
+ background: none;
226
+ border: none;
227
+ cursor: pointer;
228
+ color: var(--xynolog-text-secondary);
229
+ }
230
+
231
+ .xynolog-delegate-progress__control:hover:not(:disabled) {
232
+ color: var(--xynolog-text-primary);
233
+ }
234
+
235
+ .xynolog-delegate-progress__control:disabled {
236
+ opacity: 0.5;
237
+ cursor: not-allowed;
238
+ }
239
+
240
+ [data-theme="dark"] .xynolog-delegate-progress__control {
241
+ color: var(--xynolog-text-secondary);
242
+ }
243
+
244
+ .xynolog-delegate-widget[data-type="highlight"] {
245
+ border-color: var(--xynolog-color-yellow-300);
246
+ }
247
+
248
+ [data-theme="dark"] .xynolog-delegate-widget[data-type="highlight"] {
249
+ border-color: var(--xynolog-color-yellow-600);
250
+ }
251
+
252
+ /* Comment */
253
+ .xynolog-delegate-widget[data-type="comment"] {
254
+ border-color: var(--xynolog-color-gray-300);
255
+ }
256
+
257
+ [data-theme="dark"] .xynolog-delegate-widget[data-type="comment"] {
258
+ border-color: var(--xynolog-color-gray-600);
259
+ }
260
+
261
+ /* Assessment */
262
+ .xynolog-delegate-widget[data-type="assessment"] {
263
+ border-color: var(--xynolog-color-purple-300);
264
+ }
265
+
266
+ [data-theme="dark"] .xynolog-delegate-widget[data-type="assessment"] {
267
+ border-color: var(--xynolog-color-purple-600);
268
+ }
269
+
270
+ /* Tag */
271
+ .xynolog-delegate-widget[data-type="tag"] {
272
+ border-color: var(--xynolog-color-orange-300);
273
+ }
274
+
275
+ [data-theme="dark"] .xynolog-delegate-widget[data-type="tag"] {
276
+ border-color: var(--xynolog-color-orange-600);
277
+ }
278
+
279
+ /* Reference */
280
+ .xynolog-delegate-widget[data-type="reference"] {
281
+ border-color: var(--xynolog-color-blue-300);
282
+ }
283
+
284
+ [data-theme="dark"] .xynolog-delegate-widget[data-type="reference"] {
285
+ border-color: var(--xynolog-color-blue-600);
286
+ }
287
+
288
+ /*
289
+ * The progress bar. `DelegateProgress` is its only consumer in the whole
290
+ * package, so it lives here rather than in `styles/core/`. If a second
291
+ * consumer ever appears, promoting these rules to core is a move, not a copy.
292
+ *
293
+ * The track is NOT `--xynolog-bg-secondary`: that is exactly
294
+ * `.xynolog-delegate-widget`'s own background, so the track would go invisible
295
+ * inside the card and the fill would float with nothing to measure it against.
296
+ */
297
+ .xynolog-progress-bar {
298
+ width: 100%;
299
+ height: 0.5rem;
300
+ overflow: hidden;
301
+ border-radius: var(--xynolog-radius-full);
302
+ background-color: var(--xynolog-color-gray-200);
303
+ }
304
+
305
+ [data-theme="dark"] .xynolog-progress-bar {
306
+ background-color: var(--xynolog-color-gray-700);
307
+ }
308
+
309
+ .xynolog-progress-bar__fill {
310
+ height: 100%;
311
+ background-color: var(--xynolog-color-primary-500);
312
+ transition: width 0.3s ease;
313
+ }
314
+
315
+ [data-theme="dark"] .xynolog-progress-bar__fill {
316
+ background-color: var(--xynolog-color-primary-400);
317
+ }
318
+
319
+ /* One parameter row inside the params list. */
320
+ .xynolog-delegate-progress__param {
321
+ display: flex;
322
+ gap: 0.375rem;
323
+ align-items: baseline;
324
+ }
325
+
326
+ .xynolog-delegate-widget__log {
327
+ display: flex;
328
+ flex-direction: column;
329
+ gap: 0.25rem;
330
+ }
@@ -0,0 +1,37 @@
1
+ /* ============================================
2
+ JsonLdPanel Component
3
+ JSON-LD editor panel styles
4
+ ============================================ */
5
+
6
+ .xynolog-jsonld-panel {
7
+ height: 100%;
8
+ display: flex;
9
+ flex-direction: column;
10
+ }
11
+
12
+ .xynolog-jsonld-panel__header {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ padding: var(--xynolog-panel-padding);
17
+ padding-bottom: var(--xynolog-panel-gap);
18
+ }
19
+
20
+ .xynolog-jsonld-panel__title {
21
+ margin: 0;
22
+ font-size: var(--xynolog-panel-title-size);
23
+ font-weight: var(--xynolog-panel-title-weight);
24
+ color: var(--xynolog-text-primary);
25
+ }
26
+
27
+ .xynolog-jsonld-panel__editor {
28
+ flex: 1;
29
+ overflow: hidden;
30
+ background: var(--xynolog-bg-secondary);
31
+ border-radius: var(--xynolog-radius-md);
32
+ padding: var(--xynolog-panel-padding);
33
+ }
34
+
35
+ [data-theme="dark"] .xynolog-jsonld-panel__editor {
36
+ background: var(--xynolog-bg-tertiary);
37
+ }
@@ -0,0 +1,108 @@
1
+ /* ============================================
2
+ ReferencesPanel Component
3
+ Reference management panel styles
4
+ ============================================ */
5
+
6
+ /* Reference Icon Group — status icon + hover-reveal unlink */
7
+ .xynolog-reference-icon-group {
8
+ position: relative;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ flex-shrink: 0;
12
+ }
13
+
14
+ .xynolog-reference-icon {
15
+ display: inline-flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ width: 1.75rem;
19
+ height: 1.75rem;
20
+ font-size: 0.875rem;
21
+ line-height: 1;
22
+ border-radius: var(--xynolog-radius-md);
23
+ border: 1px solid var(--xynolog-color-gray-300);
24
+ background: var(--xynolog-bg-secondary);
25
+ color: var(--xynolog-text-secondary);
26
+ transition: all 0.15s ease;
27
+ }
28
+
29
+ [data-theme="dark"] .xynolog-reference-icon {
30
+ border-color: var(--xynolog-color-gray-600);
31
+ background: var(--xynolog-color-gray-700);
32
+ }
33
+
34
+ .xynolog-reference-icon--clickable {
35
+ cursor: pointer;
36
+ }
37
+
38
+ .xynolog-reference-icon--clickable:hover {
39
+ background: var(--xynolog-gradient-primary);
40
+ border-color: var(--xynolog-color-primary-300);
41
+ transform: scale(1.1);
42
+ }
43
+
44
+ [data-theme="dark"] .xynolog-reference-icon--clickable:hover {
45
+ background: var(--xynolog-gradient-primary-dark);
46
+ border-color: var(--xynolog-color-primary-500);
47
+ }
48
+
49
+ .xynolog-reference-icon--clickable:focus-visible {
50
+ outline: 2px solid var(--xynolog-color-primary-500);
51
+ outline-offset: 2px;
52
+ }
53
+
54
+ [data-theme="dark"] .xynolog-reference-icon--clickable:focus-visible {
55
+ outline-color: var(--xynolog-color-primary-400);
56
+ }
57
+
58
+ /* Generating state pulse on stub icon */
59
+ .xynolog-reference-icon[data-generating="true"] {
60
+ animation: xynolog-icon-pulse 1.5s ease-in-out infinite;
61
+ }
62
+
63
+ [data-theme="dark"] .xynolog-reference-icon[data-generating="true"] {
64
+ animation: xynolog-icon-pulse-dark 1.5s ease-in-out infinite;
65
+ }
66
+
67
+ @keyframes xynolog-icon-pulse {
68
+ 0%, 100% { transform: scale(1); box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.5); }
69
+ 50% { transform: scale(1.2); box-shadow: 0 0 16px 4px rgba(59, 130, 246, 0.8); }
70
+ }
71
+
72
+ @keyframes xynolog-icon-pulse-dark {
73
+ 0%, 100% { transform: scale(1); box-shadow: 0 0 8px 2px rgba(96, 165, 250, 0.6); }
74
+ 50% { transform: scale(1.2); box-shadow: 0 0 16px 4px rgba(96, 165, 250, 0.9); }
75
+ }
76
+
77
+ /* Hover-reveal unlink button */
78
+ .xynolog-reference-unlink {
79
+ position: absolute;
80
+ right: -1.25rem;
81
+ top: 50%;
82
+ transform: translateY(-50%);
83
+ background: none;
84
+ border: none;
85
+ padding: 0;
86
+ font-size: 0.75rem;
87
+ cursor: pointer;
88
+ opacity: 0;
89
+ pointer-events: none;
90
+ transition: opacity 0.15s ease;
91
+ }
92
+
93
+ .xynolog-annotation-entry:hover .xynolog-reference-unlink {
94
+ opacity: 1;
95
+ pointer-events: auto;
96
+ }
97
+
98
+ .xynolog-reference-unlink:hover {
99
+ transform: translateY(-50%) scale(1.2);
100
+ }
101
+
102
+ .xynolog-reference-unlink:focus-visible {
103
+ opacity: 1;
104
+ pointer-events: auto;
105
+ outline: 2px solid var(--xynolog-color-primary-500);
106
+ outline-offset: 2px;
107
+ border-radius: 2px;
108
+ }
@@ -0,0 +1,183 @@
1
+ /* ============================================
2
+ ResourceInfoPanel Component
3
+ Resource information display panel
4
+ ============================================ */
5
+
6
+ .xynolog-resource-info-panel {
7
+ background: var(--xynolog-bg-primary);
8
+ border-radius: var(--xynolog-radius-lg);
9
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
10
+ padding: var(--xynolog-panel-padding);
11
+ }
12
+
13
+ [data-theme="dark"] .xynolog-resource-info-panel {
14
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
15
+ }
16
+
17
+ .xynolog-resource-info-panel__title {
18
+ margin: 0 0 var(--xynolog-panel-header-margin-bottom);
19
+ font-size: var(--xynolog-panel-title-size);
20
+ font-weight: var(--xynolog-panel-title-weight);
21
+ color: var(--xynolog-text-primary);
22
+ }
23
+
24
+ .xynolog-resource-info-panel__section {
25
+ margin-bottom: var(--xynolog-panel-gap);
26
+ }
27
+
28
+ .xynolog-resource-info-panel__section:last-child {
29
+ margin-bottom: 0;
30
+ }
31
+
32
+ .xynolog-resource-info-panel__heading {
33
+ font-size: var(--xynolog-text-base);
34
+ font-weight: var(--xynolog-font-semibold);
35
+ color: var(--xynolog-text-primary);
36
+ margin-bottom: var(--xynolog-panel-gap-sm);
37
+ }
38
+
39
+ .xynolog-resource-info-panel__value {
40
+ font-size: var(--xynolog-text-sm);
41
+ color: var(--xynolog-text-primary);
42
+ }
43
+
44
+ .xynolog-resource-info-panel__value--empty {
45
+ color: var(--xynolog-text-tertiary);
46
+ font-style: italic;
47
+ }
48
+
49
+ .xynolog-resource-info-panel__tag {
50
+ /* Use global tag styles from tags.css */
51
+ padding: var(--xynolog-panel-padding-xs) var(--xynolog-panel-padding-sm);
52
+ background-color: var(--xynolog-color-primary-100);
53
+ color: var(--xynolog-color-primary-700);
54
+ border-radius: var(--xynolog-radius-full);
55
+ font-size: var(--xynolog-text-xs);
56
+ font-weight: var(--xynolog-font-medium);
57
+ }
58
+
59
+ [data-theme="dark"] .xynolog-resource-info-panel__tag {
60
+ background-color: rgba(59, 130, 246, 0.2);
61
+ color: var(--xynolog-color-primary-300);
62
+ }
63
+
64
+ .xynolog-resource-info-panel__field-group {
65
+ display: flex;
66
+ flex-direction: column;
67
+ gap: var(--xynolog-panel-gap-sm);
68
+ }
69
+
70
+ .xynolog-resource-info-panel__field-group > div {
71
+ display: flex;
72
+ justify-content: space-between;
73
+ align-items: center;
74
+ }
75
+
76
+ .xynolog-resource-info-panel__label {
77
+ font-size: var(--xynolog-text-sm);
78
+ color: var(--xynolog-text-tertiary);
79
+ margin-right: var(--xynolog-panel-gap-sm);
80
+ }
81
+
82
+ .xynolog-resource-info-panel__tag-list {
83
+ display: flex;
84
+ flex-wrap: wrap;
85
+ gap: var(--xynolog-panel-gap-sm);
86
+ }
87
+
88
+ .xynolog-resource-info-panel__action-section {
89
+ margin-top: var(--xynolog-panel-gap);
90
+ padding-top: var(--xynolog-panel-padding);
91
+ border-top: 1px solid var(--xynolog-color-gray-200);
92
+ }
93
+
94
+ [data-theme="dark"] .xynolog-resource-info-panel__action-section {
95
+ border-top-color: var(--xynolog-color-gray-700);
96
+ }
97
+
98
+ .xynolog-resource-info-panel__description {
99
+ font-size: var(--xynolog-text-xs);
100
+ color: var(--xynolog-text-tertiary);
101
+ margin-top: var(--xynolog-panel-gap-sm);
102
+ line-height: 1.5;
103
+ }
104
+
105
+ /* Resource Info Panel Buttons */
106
+ .xynolog-resource-button {
107
+ width: 100%;
108
+ padding: var(--xynolog-panel-padding-sm) var(--xynolog-panel-padding);
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ gap: var(--xynolog-panel-gap-sm);
113
+ font-size: var(--xynolog-text-sm);
114
+ font-weight: var(--xynolog-font-medium);
115
+ border-radius: var(--xynolog-radius-lg);
116
+ transition: all 0.3s ease;
117
+ cursor: pointer;
118
+ border: 1px solid transparent;
119
+ }
120
+
121
+ .xynolog-resource-button--secondary {
122
+ background-color: rgba(0, 0, 0, 0.1);
123
+ color: var(--xynolog-text-primary);
124
+ border-color: rgba(0, 0, 0, 0.2);
125
+ }
126
+
127
+ [data-theme="dark"] .xynolog-resource-button--secondary {
128
+ background-color: rgba(255, 255, 255, 0.1);
129
+ color: var(--xynolog-text-primary);
130
+ border-color: rgba(255, 255, 255, 0.2);
131
+ }
132
+
133
+ .xynolog-resource-button--secondary:hover {
134
+ background-color: rgba(0, 0, 0, 0.2);
135
+ }
136
+
137
+ [data-theme="dark"] .xynolog-resource-button--secondary:hover {
138
+ background-color: rgba(255, 255, 255, 0.2);
139
+ }
140
+
141
+ .xynolog-resource-button--archive {
142
+ background-color: var(--xynolog-color-orange-100);
143
+ color: var(--xynolog-color-orange-700);
144
+ border-color: var(--xynolog-color-orange-300);
145
+ }
146
+
147
+ [data-theme="dark"] .xynolog-resource-button--archive {
148
+ background-color: rgba(251, 146, 60, 0.2);
149
+ color: var(--xynolog-color-orange-400);
150
+ border-color: rgba(251, 146, 60, 0.3);
151
+ }
152
+
153
+ .xynolog-resource-button--archive:hover {
154
+ background-color: var(--xynolog-color-orange-200);
155
+ }
156
+
157
+ [data-theme="dark"] .xynolog-resource-button--archive:hover {
158
+ background-color: rgba(251, 146, 60, 0.3);
159
+ }
160
+
161
+ .xynolog-resource-info-panel__link {
162
+ padding: 0;
163
+ border: none;
164
+ background: none;
165
+ color: var(--xynolog-color-primary-600);
166
+ font-size: inherit;
167
+ text-align: left;
168
+ cursor: pointer;
169
+ text-decoration: underline;
170
+ }
171
+
172
+ .xynolog-resource-info-panel__link:hover {
173
+ color: var(--xynolog-color-primary-700);
174
+ }
175
+
176
+ .xynolog-resource-info-panel__link:focus-visible {
177
+ outline: 2px solid var(--xynolog-color-primary-500);
178
+ outline-offset: 2px;
179
+ }
180
+
181
+ [data-theme="dark"] .xynolog-resource-info-panel__link {
182
+ color: var(--xynolog-color-primary-400);
183
+ }