@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,127 @@
1
+ /* ============================================
2
+ StatisticsPanel Component
3
+ Statistics and metrics display panel
4
+ ============================================ */
5
+
6
+ .xynolog-statistics-panel {
7
+ display: flex;
8
+ flex-direction: column;
9
+ height: 100%;
10
+ }
11
+
12
+ .xynolog-statistics-panel__content {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: var(--xynolog-panel-gap);
16
+ padding: var(--xynolog-panel-padding);
17
+ }
18
+
19
+ /* Title */
20
+ .xynolog-statistics-panel__title {
21
+ margin: 0 0 var(--xynolog-panel-gap-sm);
22
+ font-size: var(--xynolog-text-lg);
23
+ font-weight: var(--xynolog-font-semibold);
24
+ color: var(--xynolog-text-primary);
25
+ }
26
+
27
+ [data-theme="dark"] .xynolog-statistics-panel__title {
28
+ color: var(--xynolog-text-primary);
29
+ }
30
+
31
+ /* List of statistics */
32
+ .xynolog-statistics-panel__list {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: var(--xynolog-panel-gap-sm);
36
+ }
37
+
38
+ /* Individual statistic item */
39
+ .xynolog-statistics-panel__item {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: baseline;
43
+ padding: var(--xynolog-panel-padding-sm);
44
+ background: var(--xynolog-bg-secondary);
45
+ border-radius: var(--xynolog-radius-md);
46
+ flex-wrap: wrap;
47
+ gap: var(--xynolog-panel-gap-sm);
48
+ }
49
+
50
+ [data-theme="dark"] .xynolog-statistics-panel__item {
51
+ background: var(--xynolog-bg-tertiary);
52
+ }
53
+
54
+ .xynolog-statistics-panel__label {
55
+ font-size: var(--xynolog-text-sm);
56
+ font-weight: var(--xynolog-font-medium);
57
+ color: var(--xynolog-text-secondary);
58
+ }
59
+
60
+ .xynolog-statistics-panel__value {
61
+ font-size: var(--xynolog-text-lg);
62
+ font-weight: var(--xynolog-font-semibold);
63
+ color: var(--xynolog-text-primary);
64
+ margin-left: auto;
65
+ }
66
+
67
+ /* Sub-items (indented) */
68
+ .xynolog-statistics-panel__subitems {
69
+ width: 100%;
70
+ margin-top: var(--xynolog-panel-gap-xs);
71
+ padding-left: var(--xynolog-panel-padding);
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: var(--xynolog-panel-gap-xs);
75
+ }
76
+
77
+ .xynolog-statistics-panel__subitem {
78
+ display: flex;
79
+ justify-content: space-between;
80
+ align-items: baseline;
81
+ }
82
+
83
+ .xynolog-statistics-panel__sublabel {
84
+ font-size: var(--xynolog-text-xs);
85
+ color: var(--xynolog-text-tertiary);
86
+ }
87
+
88
+ .xynolog-statistics-panel__subvalue {
89
+ font-size: var(--xynolog-text-sm);
90
+ font-weight: var(--xynolog-font-medium);
91
+ color: var(--xynolog-text-secondary);
92
+ }
93
+
94
+ /* Entity Types */
95
+ .xynolog-statistics-panel__entity-types {
96
+ display: flex;
97
+ flex-direction: column;
98
+ gap: var(--xynolog-panel-gap-sm);
99
+ padding: var(--xynolog-panel-padding-sm);
100
+ background: var(--xynolog-bg-secondary);
101
+ border-radius: var(--xynolog-radius-md);
102
+ }
103
+
104
+ [data-theme="dark"] .xynolog-statistics-panel__entity-types {
105
+ background: var(--xynolog-bg-tertiary);
106
+ }
107
+
108
+ .xynolog-statistics-panel__entity-list {
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: var(--xynolog-panel-gap-xs);
112
+ }
113
+
114
+ .xynolog-statistics-panel__entity-item {
115
+ display: flex;
116
+ justify-content: space-between;
117
+ align-items: center;
118
+ gap: var(--xynolog-panel-gap-sm);
119
+ }
120
+
121
+ .xynolog-statistics-panel__entity-name {
122
+ font-size: var(--xynolog-text-sm);
123
+ color: var(--xynolog-text-primary);
124
+ flex: 1;
125
+ }
126
+
127
+ /* Tags use .xynolog-tag from core/tags.css */
@@ -0,0 +1,129 @@
1
+ /* ============================================
2
+ UnifiedAnnotationsPanel Component
3
+ Unified annotations panel with tabs
4
+ ============================================ */
5
+
6
+ .xynolog-unified-panel {
7
+ height: 100%;
8
+ display: flex;
9
+ flex-direction: column;
10
+ }
11
+
12
+ .xynolog-unified-panel__title {
13
+ margin: 0 0 var(--xynolog-panel-header-margin-bottom);
14
+ padding: var(--xynolog-panel-padding);
15
+ padding-bottom: 0;
16
+ font-size: var(--xynolog-panel-title-size);
17
+ font-weight: var(--xynolog-panel-title-weight);
18
+ color: var(--xynolog-text-primary);
19
+ }
20
+
21
+ .xynolog-unified-panel__tabs {
22
+ display: flex;
23
+ gap: 0;
24
+ padding: 0;
25
+ background: var(--xynolog-bg-secondary);
26
+ border-bottom: 1px solid var(--xynolog-color-gray-300);
27
+ }
28
+
29
+ [data-theme="dark"] .xynolog-unified-panel__tabs {
30
+ background: var(--xynolog-bg-tertiary);
31
+ border-bottom-color: var(--xynolog-color-gray-700);
32
+ }
33
+
34
+ .xynolog-unified-panel__tab-button {
35
+ flex: 1;
36
+ padding: var(--xynolog-panel-padding-sm);
37
+ background: transparent;
38
+ border: none;
39
+ border-right: 1px solid var(--xynolog-color-gray-300);
40
+ font-size: var(--xynolog-text-sm);
41
+ font-weight: var(--xynolog-font-medium);
42
+ color: var(--xynolog-text-secondary);
43
+ cursor: pointer;
44
+ transition: all 0.2s ease;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ gap: calc(var(--xynolog-panel-padding-xs) * 1.5);
49
+ position: relative;
50
+ }
51
+
52
+ .xynolog-unified-panel__tab-button:last-child {
53
+ border-right: none;
54
+ }
55
+
56
+ .xynolog-unified-panel__tab-button:last-child:focus-visible {
57
+ outline: 2px solid var(--xynolog-color-primary-500);
58
+ outline-offset: -2px;
59
+ z-index: 1;
60
+ }
61
+
62
+ [data-theme="dark"] .xynolog-unified-panel__tab-button:last-child:focus-visible {
63
+ outline-color: var(--xynolog-color-primary-400);
64
+ }
65
+
66
+ [data-theme="dark"] .xynolog-unified-panel__tab-button {
67
+ color: var(--xynolog-text-secondary);
68
+ border-right-color: var(--xynolog-color-gray-700);
69
+ }
70
+
71
+ .xynolog-unified-panel__tab-button:hover {
72
+ background: var(--xynolog-bg-tertiary);
73
+ color: var(--xynolog-text-primary);
74
+ }
75
+
76
+ [data-theme="dark"] .xynolog-unified-panel__tab-button:hover {
77
+ background: var(--xynolog-color-gray-700);
78
+ color: var(--xynolog-text-primary);
79
+ }
80
+
81
+ .xynolog-unified-panel__tab-button:focus-visible {
82
+ outline: 2px solid var(--xynolog-color-primary-500);
83
+ outline-offset: -2px;
84
+ z-index: 1;
85
+ }
86
+
87
+ [data-theme="dark"] .xynolog-unified-panel__tab-button:focus-visible {
88
+ outline-color: var(--xynolog-color-primary-400);
89
+ }
90
+
91
+ .xynolog-unified-panel__tab-button--active {
92
+ background: var(--xynolog-bg-primary);
93
+ color: var(--xynolog-text-primary);
94
+ font-weight: var(--xynolog-font-semibold);
95
+ border-bottom: 2px solid var(--xynolog-color-primary-500);
96
+ }
97
+
98
+ [data-theme="dark"] .xynolog-unified-panel__tab-button--active {
99
+ background: var(--xynolog-bg-primary);
100
+ color: var(--xynolog-text-primary);
101
+ border-bottom-color: var(--xynolog-color-primary-400);
102
+ }
103
+
104
+ .xynolog-unified-panel__tab-button--active:focus-visible {
105
+ outline: 2px solid var(--xynolog-color-primary-500);
106
+ outline-offset: 2px;
107
+ }
108
+
109
+ [data-theme="dark"] .xynolog-unified-panel__tab-button--active:focus-visible {
110
+ outline-color: var(--xynolog-color-primary-400);
111
+ }
112
+
113
+ .xynolog-unified-panel__tab-icon {
114
+ font-size: var(--xynolog-panel-icon-size);
115
+ }
116
+
117
+ .xynolog-unified-panel__content {
118
+ flex: 1;
119
+ overflow: hidden;
120
+ display: flex;
121
+ flex-direction: column;
122
+ }
123
+
124
+ /* Ensure child panels fill and scroll properly */
125
+ .xynolog-unified-panel__content > .xynolog-panel {
126
+ height: 100%;
127
+ }
128
+
129
+ /* Motivation-specific detection styles are in /styles/motivations/*.css */
@@ -0,0 +1,92 @@
1
+ /* ============================================
2
+ Settings Panel Component
3
+ ============================================ */
4
+
5
+ .xynolog-settings-panel {
6
+ padding: var(--xynolog-panel-padding);
7
+ background: var(--xynolog-bg-primary);
8
+ border-radius: var(--xynolog-panel-border-radius);
9
+ }
10
+
11
+ .xynolog-settings-panel__title {
12
+ margin: 0 0 var(--xynolog-panel-header-margin-bottom);
13
+ font-size: var(--xynolog-panel-title-size);
14
+ font-weight: var(--xynolog-panel-title-weight);
15
+ color: var(--xynolog-text-primary);
16
+ }
17
+
18
+ .xynolog-settings-panel__content {
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: var(--xynolog-panel-section-gap);
22
+ }
23
+
24
+ /* Field Container */
25
+ .xynolog-settings-panel__field {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: var(--xynolog-panel-field-gap);
29
+ }
30
+
31
+ /* Button Group - layout only, buttons use .xynolog-panel-button from core/buttons.css */
32
+ .xynolog-settings-panel__button-group {
33
+ display: flex;
34
+ gap: 0.5rem;
35
+ flex-wrap: wrap;
36
+ }
37
+
38
+ /* Loading State */
39
+ .xynolog-settings-panel__loading {
40
+ margin: 0;
41
+ padding: 0.5rem;
42
+ background: var(--xynolog-bg-secondary);
43
+ border-left: 3px solid var(--xynolog-color-primary-500);
44
+ border-radius: var(--xynolog-radius-sm);
45
+ font-size: var(--xynolog-text-sm);
46
+ color: var(--xynolog-text-primary);
47
+ }
48
+
49
+ [data-theme="dark"] .xynolog-settings-panel__loading {
50
+ background: var(--xynolog-bg-secondary);
51
+ border-left-color: var(--xynolog-color-primary-400);
52
+ }
53
+
54
+ /* About — the product name, tagline, version and links. */
55
+ .xynolog-settings-panel__about {
56
+ border-top: 1px solid var(--xynolog-border-primary);
57
+ padding-top: 0.75rem;
58
+ }
59
+
60
+ .xynolog-settings-panel__about-name {
61
+ margin: 0;
62
+ font-size: var(--xynolog-text-sm);
63
+ font-weight: 600;
64
+ color: var(--xynolog-text-primary);
65
+ }
66
+
67
+ .xynolog-settings-panel__about-tagline,
68
+ .xynolog-settings-panel__about-version {
69
+ margin: 0.15rem 0 0;
70
+ font-size: var(--xynolog-text-xs);
71
+ color: var(--xynolog-text-secondary);
72
+ }
73
+
74
+ .xynolog-settings-panel__about-links {
75
+ display: flex;
76
+ gap: 0.75rem;
77
+ margin-top: 0.5rem;
78
+ }
79
+
80
+ .xynolog-settings-panel__about-link {
81
+ font-size: var(--xynolog-text-xs);
82
+ color: var(--xynolog-color-primary-500);
83
+ background: none;
84
+ border: none;
85
+ padding: 0;
86
+ cursor: pointer;
87
+ text-decoration: underline;
88
+ }
89
+
90
+ [data-theme="dark"] .xynolog-settings-panel__about-link {
91
+ color: var(--xynolog-color-primary-400);
92
+ }
@@ -0,0 +1,245 @@
1
+ /**
2
+ * Toolbar Component
3
+ *
4
+ * Styles for toolbar including annotation toolbar and dropdown groups
5
+ */
6
+
7
+ .xynolog-annotate-toolbar {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 0.75rem;
11
+ padding: 0.75rem;
12
+ background: var(--xynolog-bg-primary);
13
+ border-bottom: 1px solid var(--xynolog-color-gray-200);
14
+ flex-shrink: 0; /* Don't shrink - stay fixed size */
15
+ }
16
+
17
+ [data-theme="dark"] .xynolog-annotate-toolbar {
18
+ background: var(--xynolog-bg-primary);
19
+ border-bottom-color: var(--xynolog-color-gray-700);
20
+ }
21
+
22
+ .xynolog-toolbar-separator {
23
+ height: 2rem;
24
+ width: 1px;
25
+ background: var(--xynolog-color-gray-300);
26
+ }
27
+
28
+ [data-theme="dark"] .xynolog-toolbar-separator {
29
+ background: var(--xynolog-color-gray-600);
30
+ }
31
+
32
+ .xynolog-dropdown-group {
33
+ position: relative;
34
+ }
35
+
36
+ .xynolog-dropdown-trigger {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 0.5rem;
40
+ cursor: pointer;
41
+ padding: 0.375rem 0.75rem;
42
+ border-radius: var(--xynolog-radius-md);
43
+ transition: all var(--xynolog-duration-base);
44
+ border: 1px solid transparent;
45
+ }
46
+
47
+ .xynolog-dropdown-trigger:hover {
48
+ background: var(--xynolog-color-primary-100);
49
+ border-color: var(--xynolog-color-primary-400);
50
+ }
51
+
52
+ [data-theme="dark"] .xynolog-dropdown-trigger:hover {
53
+ background: var(--xynolog-color-primary-900);
54
+ border-color: var(--xynolog-color-primary-600);
55
+ }
56
+
57
+ .xynolog-dropdown-trigger:focus-visible {
58
+ outline: 2px solid var(--xynolog-color-primary-500);
59
+ outline-offset: 2px;
60
+ }
61
+
62
+ .xynolog-dropdown-display {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 0.5rem;
66
+ }
67
+
68
+ .xynolog-dropdown-icon {
69
+ font-size: 1.125rem;
70
+ }
71
+
72
+ .xynolog-dropdown-label {
73
+ font-size: 0.875rem;
74
+ font-weight: 500;
75
+ color: var(--xynolog-color-gray-700);
76
+ }
77
+
78
+ [data-theme="dark"] .xynolog-dropdown-label {
79
+ color: var(--xynolog-color-gray-300);
80
+ }
81
+
82
+ .xynolog-dropdown-display[data-delete="true"] {
83
+ background: var(--xynolog-color-error);
84
+ color: var(--xynolog-color-white);
85
+ border-radius: var(--xynolog-radius-sm);
86
+ padding: 0.125rem 0.375rem;
87
+ }
88
+
89
+ .xynolog-dropdown-display[data-delete="true"] .xynolog-dropdown-label {
90
+ color: var(--xynolog-color-white);
91
+ }
92
+
93
+ [data-theme="dark"] .xynolog-dropdown-display[data-delete="true"] {
94
+ background: var(--xynolog-color-error-dark);
95
+ color: var(--xynolog-color-error-light);
96
+ }
97
+
98
+ [data-theme="dark"] .xynolog-dropdown-display[data-delete="true"] .xynolog-dropdown-label {
99
+ color: var(--xynolog-color-error-light);
100
+ }
101
+
102
+ .xynolog-dropdown-menu {
103
+ position: absolute;
104
+ top: 100%;
105
+ left: 0;
106
+ padding-top: 0.5rem;
107
+ z-index: 50;
108
+ }
109
+
110
+ .xynolog-dropdown-content {
111
+ background: var(--xynolog-bg-primary);
112
+ border: 1px solid var(--xynolog-color-gray-200);
113
+ border-radius: var(--xynolog-radius-lg);
114
+ box-shadow: var(--xynolog-shadow-lg);
115
+ padding: 0.5rem;
116
+ min-width: max-content;
117
+ display: flex;
118
+ flex-direction: column;
119
+ gap: 0.25rem;
120
+ }
121
+
122
+ [data-theme="dark"] .xynolog-dropdown-content {
123
+ border-color: var(--xynolog-color-gray-700);
124
+ }
125
+
126
+ .xynolog-dropdown-header {
127
+ font-size: 0.75rem;
128
+ font-weight: 600;
129
+ text-transform: uppercase;
130
+ letter-spacing: 0.05em;
131
+ color: var(--xynolog-color-gray-600);
132
+ padding: 0.25rem 0.5rem;
133
+ border-bottom: 1px solid var(--xynolog-color-gray-200);
134
+ }
135
+
136
+ [data-theme="dark"] .xynolog-dropdown-header {
137
+ color: var(--xynolog-color-gray-300);
138
+ border-bottom-color: var(--xynolog-color-gray-700);
139
+ }
140
+
141
+ .xynolog-toolbar-menu-button {
142
+ display: flex;
143
+ align-items: center;
144
+ gap: 0.375rem;
145
+ padding: 0.25rem 0.5rem;
146
+ border-radius: var(--xynolog-radius-md);
147
+ transition: all var(--xynolog-duration-base);
148
+ border: none;
149
+ background: transparent;
150
+ cursor: pointer;
151
+ font-weight: 500;
152
+ text-align: left;
153
+ white-space: nowrap;
154
+ }
155
+
156
+ .xynolog-toolbar-menu-button:focus-visible {
157
+ outline: 2px solid var(--xynolog-color-primary-500);
158
+ outline-offset: 2px;
159
+ }
160
+
161
+ .xynolog-toolbar-menu-button[data-selected="false"] {
162
+ color: var(--xynolog-color-gray-700);
163
+ }
164
+
165
+ .xynolog-toolbar-menu-button[data-selected="false"]:hover {
166
+ background: var(--xynolog-color-gray-50);
167
+ }
168
+
169
+ .xynolog-toolbar-menu-button[data-selected="true"] {
170
+ background: var(--xynolog-color-gray-300);
171
+ color: var(--xynolog-color-gray-900);
172
+ }
173
+
174
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-selected="false"] {
175
+ color: var(--xynolog-color-gray-300);
176
+ }
177
+
178
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-selected="false"]:hover {
179
+ background: var(--xynolog-bg-secondary);
180
+ }
181
+
182
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-selected="true"] {
183
+ background: var(--xynolog-color-gray-700);
184
+ color: var(--xynolog-color-gray-100);
185
+ }
186
+
187
+ .xynolog-toolbar-menu-button[data-delete="true"][data-selected="false"] {
188
+ color: var(--xynolog-color-error-dark);
189
+ }
190
+
191
+ .xynolog-toolbar-menu-button[data-delete="true"][data-selected="false"]:hover {
192
+ background: var(--xynolog-color-error-light);
193
+ }
194
+
195
+ .xynolog-toolbar-menu-button[data-delete="true"][data-selected="true"] {
196
+ background: var(--xynolog-color-error);
197
+ color: var(--xynolog-color-white);
198
+ }
199
+
200
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-delete="true"][data-selected="false"] {
201
+ color: var(--xynolog-color-error-light);
202
+ }
203
+
204
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-delete="true"][data-selected="false"]:hover {
205
+ background: rgba(239, 68, 68, 0.1);
206
+ }
207
+
208
+ [data-theme="dark"] .xynolog-toolbar-menu-button[data-delete="true"][data-selected="true"] {
209
+ background: var(--xynolog-color-error-dark);
210
+ color: var(--xynolog-color-error-light);
211
+ }
212
+
213
+ .xynolog-toolbar-menu-icon {
214
+ font-size: 1.125rem;
215
+ }
216
+
217
+ .xynolog-toolbar-menu-label {
218
+ font-size: 0.875rem;
219
+ }
220
+
221
+ /* ── Compact display form ────────────────────────────────────────────────────
222
+ * Display-only variant for inline embeds: icon-only, tight, chromeless. The
223
+ * bar's functionality is identical — only its form changes. */
224
+ .xynolog-annotate-toolbar--compact {
225
+ gap: 0.375rem;
226
+ padding: 0.25rem 0;
227
+ background: transparent; /* the host container owns the background */
228
+ border-bottom: none;
229
+ }
230
+
231
+ /* Icon-only collapsed triggers — but the label stays in the accessibility
232
+ tree rather than `display: none`. Its sibling is a bare emoji span with no
233
+ accessible name, so hiding the label outright would leave the trigger
234
+ unnamed for screen readers. Same technique as .xynolog-sr-only. */
235
+ .xynolog-annotate-toolbar--compact .xynolog-dropdown-label {
236
+ position: absolute;
237
+ width: 1px;
238
+ height: 1px;
239
+ padding: 0;
240
+ margin: -1px;
241
+ overflow: hidden;
242
+ clip: rect(0, 0, 0, 0);
243
+ white-space: nowrap;
244
+ border-width: 0;
245
+ }
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Icon rules, `.sr-only`, and the auth error display.
3
+ *
4
+ * No sign-in or sign-up form is styled here: a knowledge base trusts an
5
+ * issuer and the Browser sends the user there, so no component in this
6
+ * package collects a credential. The icon rules and `.sr-only`, which a
7
+ * dozen components render, are generic despite the file they live in.
8
+ */
9
+
10
+ /* Icon styles */
11
+ .xynolog-icon {
12
+ display: inline-block;
13
+ vertical-align: middle;
14
+ }
15
+
16
+ .xynolog-icon--small {
17
+ width: 1.25rem;
18
+ height: 1.25rem;
19
+ }
20
+
21
+ .xynolog-icon--inline {
22
+ margin-right: 0.5rem;
23
+ }
24
+
25
+ /* Accessibility - screen reader only text */
26
+ .sr-only {
27
+ position: absolute;
28
+ width: 1px;
29
+ height: 1px;
30
+ padding: 0;
31
+ margin: -1px;
32
+ overflow: hidden;
33
+ clip: rect(0, 0, 0, 0);
34
+ white-space: nowrap;
35
+ border-width: 0;
36
+ }
37
+
38
+ /* ──────────────────────────────────────────────────────────────────────────
39
+ * Auth error display — the classes `AuthErrorDisplay` renders.
40
+ * ────────────────────────────────────────────────────────────────────────── */
41
+
42
+ .xynolog-auth-error-display {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ padding: 3rem 1rem;
47
+ }
48
+
49
+ .xynolog-auth-error-display__container {
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 1.5rem;
53
+ width: 100%;
54
+ max-width: 28rem;
55
+ padding: 2rem;
56
+ background-color: var(--xynolog-bg-primary);
57
+ border: 1px solid var(--xynolog-border-primary);
58
+ border-radius: var(--xynolog-radius-lg);
59
+ text-align: center;
60
+ }
61
+
62
+ .xynolog-auth-error-display__title {
63
+ margin: 0;
64
+ font-size: var(--xynolog-text-2xl);
65
+ color: var(--xynolog-text-primary);
66
+ }
67
+
68
+ /* The error is the reason the reader is here: tinted, not merely bordered. */
69
+ .xynolog-auth-error-display__error-box {
70
+ padding: 1rem;
71
+ background-color: var(--xynolog-color-error-light);
72
+ border: 1px solid var(--xynolog-color-error);
73
+ border-radius: var(--xynolog-radius-base);
74
+ }
75
+
76
+ .xynolog-auth-error-display__error-message {
77
+ color: var(--xynolog-color-error-dark);
78
+ font-size: var(--xynolog-text-base);
79
+ }
80
+
81
+ [data-theme="dark"] .xynolog-auth-error-display__error-box {
82
+ /* The light tint is unreadable on a dark ground; carry the hue in the
83
+ border and the text instead of the fill. */
84
+ background-color: transparent;
85
+ }
86
+
87
+ [data-theme="dark"] .xynolog-auth-error-display__error-message {
88
+ color: var(--xynolog-color-error-light);
89
+ }
90
+
91
+ .xynolog-auth-error-display__actions {
92
+ display: flex;
93
+ justify-content: center;
94
+ }
95
+
96
+ .xynolog-auth-error-display__link {
97
+ display: inline-block;
98
+ padding: 0.625rem 1.25rem;
99
+ background-color: var(--xynolog-color-primary-600);
100
+ color: var(--xynolog-text-inverse);
101
+ border-radius: var(--xynolog-radius-base);
102
+ font-size: var(--xynolog-text-sm);
103
+ text-decoration: none;
104
+ }
105
+
106
+ .xynolog-auth-error-display__link:hover {
107
+ background-color: var(--xynolog-color-primary-700);
108
+ }
109
+
110
+ .xynolog-auth-error-display__link:focus-visible {
111
+ outline: 2px solid var(--xynolog-color-primary-500);
112
+ outline-offset: 2px;
113
+ }
114
+
115
+ [data-theme="dark"] .xynolog-auth-error-display__link {
116
+ /* `--xynolog-text-inverse` FLIPS between themes, so on a dark ground the
117
+ label would turn dark on a blue button. The fill stays blue in both
118
+ themes, so the label must be pinned, not inherited. */
119
+ color: var(--xynolog-color-white);
120
+ }