@semiont/react-ui 0.2.30 → 0.2.31

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 (225) hide show
  1. package/README.md +34 -1
  2. package/dist/{ar-TQSFB35U.mjs → ar-6QTTYSKD.mjs} +44 -2
  3. package/dist/ar-6QTTYSKD.mjs.map +1 -0
  4. package/dist/{bn-525U24T3.mjs → bn-AHD2VP4T.mjs} +44 -2
  5. package/dist/bn-AHD2VP4T.mjs.map +1 -0
  6. package/dist/{chunk-BHAP6MVA.mjs → chunk-GDEHLKCO.mjs} +44 -2
  7. package/dist/chunk-GDEHLKCO.mjs.map +1 -0
  8. package/dist/{chunk-W6E2UESX.mjs → chunk-WHI4ECK4.mjs} +89 -47
  9. package/dist/chunk-WHI4ECK4.mjs.map +1 -0
  10. package/dist/{cs-OYWTGLFM.mjs → cs-WKZ5PTM3.mjs} +44 -2
  11. package/dist/cs-WKZ5PTM3.mjs.map +1 -0
  12. package/dist/{da-BDXG2ITK.mjs → da-JLWQLEH2.mjs} +44 -2
  13. package/dist/da-JLWQLEH2.mjs.map +1 -0
  14. package/dist/{de-NB5JLMES.mjs → de-TOCT63PC.mjs} +44 -2
  15. package/dist/de-TOCT63PC.mjs.map +1 -0
  16. package/dist/{el-3SVXEAJI.mjs → el-2XXDPBHO.mjs} +44 -2
  17. package/dist/el-2XXDPBHO.mjs.map +1 -0
  18. package/dist/{en-DVB4OE2R.mjs → en-OAKDUA6C.mjs} +10 -2
  19. package/dist/{es-YBOFA3W5.mjs → es-VQZSZSKB.mjs} +44 -2
  20. package/dist/es-VQZSZSKB.mjs.map +1 -0
  21. package/dist/{fa-7MU36AMY.mjs → fa-HFYV6XFA.mjs} +44 -2
  22. package/dist/fa-HFYV6XFA.mjs.map +1 -0
  23. package/dist/{fi-PQKJB32G.mjs → fi-GYTT42QN.mjs} +44 -2
  24. package/dist/fi-GYTT42QN.mjs.map +1 -0
  25. package/dist/{fr-U4HK5GM6.mjs → fr-RBOM5A35.mjs} +44 -2
  26. package/dist/fr-RBOM5A35.mjs.map +1 -0
  27. package/dist/{he-F5MNZHAL.mjs → he-KNB7K2AV.mjs} +44 -2
  28. package/dist/he-KNB7K2AV.mjs.map +1 -0
  29. package/dist/{hi-2PHI37ZX.mjs → hi-QJ6E72XH.mjs} +44 -2
  30. package/dist/hi-QJ6E72XH.mjs.map +1 -0
  31. package/dist/{id-JPRBNCGS.mjs → id-EKQVDHC7.mjs} +44 -2
  32. package/dist/id-EKQVDHC7.mjs.map +1 -0
  33. package/dist/index.d.mts +775 -127
  34. package/dist/index.mjs +8786 -2892
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{it-MRLWI5OS.mjs → it-43QKJZRF.mjs} +44 -2
  37. package/dist/it-43QKJZRF.mjs.map +1 -0
  38. package/dist/{ja-YQ6RPI2T.mjs → ja-SZUXDDO5.mjs} +44 -2
  39. package/dist/ja-SZUXDDO5.mjs.map +1 -0
  40. package/dist/{ko-DUAVCEXX.mjs → ko-HIR2TG2Q.mjs} +44 -2
  41. package/dist/ko-HIR2TG2Q.mjs.map +1 -0
  42. package/dist/{ms-FBHSR4PG.mjs → ms-6EJXSDHO.mjs} +44 -2
  43. package/dist/ms-6EJXSDHO.mjs.map +1 -0
  44. package/dist/{nl-IC2MPZXN.mjs → nl-AAAXD3KD.mjs} +44 -2
  45. package/dist/nl-AAAXD3KD.mjs.map +1 -0
  46. package/dist/{no-LLD43NRM.mjs → no-CEBS75VU.mjs} +44 -2
  47. package/dist/no-CEBS75VU.mjs.map +1 -0
  48. package/dist/{pl-DDOJBR4D.mjs → pl-SIB6PH3I.mjs} +44 -2
  49. package/dist/pl-SIB6PH3I.mjs.map +1 -0
  50. package/dist/{pt-7TFHQRRN.mjs → pt-6BMNSQTQ.mjs} +44 -2
  51. package/dist/pt-6BMNSQTQ.mjs.map +1 -0
  52. package/dist/{ro-P4PJEGDU.mjs → ro-63CZRSZ7.mjs} +44 -2
  53. package/dist/ro-63CZRSZ7.mjs.map +1 -0
  54. package/dist/{sv-LF3VEQD2.mjs → sv-BRAAQGIC.mjs} +44 -2
  55. package/dist/sv-BRAAQGIC.mjs.map +1 -0
  56. package/dist/test-utils.mjs +2 -2
  57. package/dist/{th-YUQAOFXF.mjs → th-DQEDBNDR.mjs} +44 -2
  58. package/dist/th-DQEDBNDR.mjs.map +1 -0
  59. package/dist/{tr-CSIGLMJC.mjs → tr-IR5MEUEU.mjs} +44 -2
  60. package/dist/tr-IR5MEUEU.mjs.map +1 -0
  61. package/dist/{uk-LW3QBKSR.mjs → uk-BVRTOFAO.mjs} +44 -2
  62. package/dist/uk-BVRTOFAO.mjs.map +1 -0
  63. package/dist/{vi-W464Y6ZC.mjs → vi-QRBKNVJA.mjs} +44 -2
  64. package/dist/vi-QRBKNVJA.mjs.map +1 -0
  65. package/dist/{zh-R5XLM3EI.mjs → zh-VQVBROMT.mjs} +44 -2
  66. package/dist/zh-VQVBROMT.mjs.map +1 -0
  67. package/package.json +44 -6
  68. package/public/favicons/android-chrome-192x192.png +0 -0
  69. package/public/favicons/android-chrome-512x512.png +0 -0
  70. package/public/favicons/apple-touch-icon.png +0 -0
  71. package/public/favicons/favicon-128x128.png +0 -0
  72. package/public/favicons/favicon-16x16.png +0 -0
  73. package/public/favicons/favicon-32x32.png +0 -0
  74. package/public/favicons/favicon-48x48.png +0 -0
  75. package/public/favicons/favicon-64x64.png +0 -0
  76. package/public/favicons/favicon-96x96.png +0 -0
  77. package/public/favicons/favicon.ico +0 -0
  78. package/public/favicons/favicon.svg +47 -0
  79. package/public/favicons/site.webmanifest +19 -0
  80. package/src/examples/ButtonUsageExample.tsx +242 -0
  81. package/src/examples/button-css-modules.module.css +164 -0
  82. package/src/examples/button-styled-components.tsx +215 -0
  83. package/src/examples/button-tailwind.css +51 -0
  84. package/src/integrations/css-modules-helper.tsx +223 -0
  85. package/src/integrations/styled-components-theme.ts +405 -0
  86. package/src/integrations/tailwind-plugin.js +224 -0
  87. package/src/styles/base/reset.css +105 -0
  88. package/src/styles/base/utilities.css +465 -0
  89. package/src/styles/components/annotation-entries.css +138 -0
  90. package/src/styles/components/annotations.css +51 -0
  91. package/src/styles/components/auth.css +309 -0
  92. package/src/styles/components/branding.css +131 -0
  93. package/src/styles/components/cards.css +136 -0
  94. package/src/styles/components/collapsible-resource-navigation.css +161 -0
  95. package/src/styles/components/detection-widget.css +499 -0
  96. package/src/styles/components/footer.css +98 -0
  97. package/src/styles/components/header.css +109 -0
  98. package/src/styles/components/left-sidebar.css +138 -0
  99. package/src/styles/components/modals.css +672 -0
  100. package/src/styles/components/navigation-menu.css +59 -0
  101. package/src/styles/components/navigation-tabs.css +474 -0
  102. package/src/styles/components/panel-sections.css +440 -0
  103. package/src/styles/components/panels-base.css +404 -0
  104. package/src/styles/components/panels.css +100 -0
  105. package/src/styles/components/references.css +430 -0
  106. package/src/styles/components/resize-handle.css +110 -0
  107. package/src/styles/components/search-modal.css +463 -0
  108. package/src/styles/components/skip-links.css +101 -0
  109. package/src/styles/components/status-display.css +409 -0
  110. package/src/styles/components/tables.css +199 -0
  111. package/src/styles/components/toast.css +130 -0
  112. package/src/styles/components/toolbar.css +201 -0
  113. package/src/styles/core/badges.css +209 -0
  114. package/src/styles/core/buttons.css +781 -0
  115. package/src/styles/core/checkboxes.css +92 -0
  116. package/src/styles/core/forms.css +254 -0
  117. package/src/styles/core/index.css +43 -0
  118. package/src/styles/core/indicators.css +225 -0
  119. package/src/styles/core/inputs.css +117 -0
  120. package/src/styles/core/progress.css +170 -0
  121. package/src/styles/core/selects.css +135 -0
  122. package/src/styles/core/sliders.css +236 -0
  123. package/src/styles/core/tags.css +203 -0
  124. package/src/styles/core/textareas.css +134 -0
  125. package/src/styles/core/toggles.css +86 -0
  126. package/src/styles/features/admin.css +293 -0
  127. package/src/styles/features/compose.css +192 -0
  128. package/src/styles/features/devops.css +154 -0
  129. package/src/styles/features/entity-tags.css +140 -0
  130. package/src/styles/features/recent-docs.css +97 -0
  131. package/src/styles/features/resource-discovery.css +387 -0
  132. package/src/styles/features/resource-viewer.css +508 -0
  133. package/src/styles/features/resource.css +506 -0
  134. package/src/styles/features/schemas.css +222 -0
  135. package/src/styles/features/static-pages.css +589 -0
  136. package/src/styles/features/welcome.css +81 -0
  137. package/src/styles/index.css +93 -0
  138. package/src/styles/layout/layout.css +85 -0
  139. package/src/styles/motivations/motivation-assessment.css +234 -0
  140. package/src/styles/motivations/motivation-comment.css +245 -0
  141. package/src/styles/motivations/motivation-highlight.css +195 -0
  142. package/src/styles/motivations/motivation-reference.css +210 -0
  143. package/src/styles/motivations/motivation-tag.css +254 -0
  144. package/src/styles/panels/assessment-panel.css +91 -0
  145. package/src/styles/panels/collaboration-panel.css +222 -0
  146. package/src/styles/panels/comments-panel.css +130 -0
  147. package/src/styles/panels/highlight-panel.css +63 -0
  148. package/src/styles/panels/history-panel.css +301 -0
  149. package/src/styles/panels/jsonld-panel.css +41 -0
  150. package/src/styles/panels/references-panel.css +85 -0
  151. package/src/styles/panels/resource-info-panel.css +230 -0
  152. package/src/styles/panels/settings-panel.css +58 -0
  153. package/src/styles/panels/statistics-panel.css +147 -0
  154. package/src/styles/panels/tagging-panel.css +59 -0
  155. package/src/styles/panels/unified-annotations-panel.css +133 -0
  156. package/src/styles/panels/user-panel.css +24 -0
  157. package/src/styles/patterns/errors.css +24 -0
  158. package/src/styles/patterns/loading.css +26 -0
  159. package/src/styles/utilities/contrast.css +443 -0
  160. package/src/styles/utilities/focus-extended.css +539 -0
  161. package/src/styles/utilities/focus.css +108 -0
  162. package/src/styles/utilities/motion-overrides.css +378 -0
  163. package/src/styles/utilities/motion.css +370 -0
  164. package/src/styles/utilities/semantic-indicators.css +321 -0
  165. package/src/styles/variables.css +354 -0
  166. package/translations/ar.json +35 -1
  167. package/translations/bn.json +35 -1
  168. package/translations/cs.json +35 -1
  169. package/translations/da.json +35 -1
  170. package/translations/de.json +35 -1
  171. package/translations/el.json +35 -1
  172. package/translations/en.json +35 -1
  173. package/translations/es.json +35 -1
  174. package/translations/fa.json +35 -1
  175. package/translations/fi.json +35 -1
  176. package/translations/fr.json +35 -1
  177. package/translations/he.json +35 -1
  178. package/translations/hi.json +35 -1
  179. package/translations/id.json +35 -1
  180. package/translations/it.json +35 -1
  181. package/translations/ja.json +35 -1
  182. package/translations/ko.json +35 -1
  183. package/translations/ms.json +35 -1
  184. package/translations/nl.json +35 -1
  185. package/translations/no.json +35 -1
  186. package/translations/pl.json +35 -1
  187. package/translations/pt.json +35 -1
  188. package/translations/ro.json +35 -1
  189. package/translations/sv.json +35 -1
  190. package/translations/th.json +35 -1
  191. package/translations/tr.json +35 -1
  192. package/translations/uk.json +35 -1
  193. package/translations/vi.json +35 -1
  194. package/translations/zh.json +35 -1
  195. package/dist/ar-TQSFB35U.mjs.map +0 -1
  196. package/dist/bn-525U24T3.mjs.map +0 -1
  197. package/dist/chunk-BHAP6MVA.mjs.map +0 -1
  198. package/dist/chunk-W6E2UESX.mjs.map +0 -1
  199. package/dist/cs-OYWTGLFM.mjs.map +0 -1
  200. package/dist/da-BDXG2ITK.mjs.map +0 -1
  201. package/dist/de-NB5JLMES.mjs.map +0 -1
  202. package/dist/el-3SVXEAJI.mjs.map +0 -1
  203. package/dist/es-YBOFA3W5.mjs.map +0 -1
  204. package/dist/fa-7MU36AMY.mjs.map +0 -1
  205. package/dist/fi-PQKJB32G.mjs.map +0 -1
  206. package/dist/fr-U4HK5GM6.mjs.map +0 -1
  207. package/dist/he-F5MNZHAL.mjs.map +0 -1
  208. package/dist/hi-2PHI37ZX.mjs.map +0 -1
  209. package/dist/id-JPRBNCGS.mjs.map +0 -1
  210. package/dist/it-MRLWI5OS.mjs.map +0 -1
  211. package/dist/ja-YQ6RPI2T.mjs.map +0 -1
  212. package/dist/ko-DUAVCEXX.mjs.map +0 -1
  213. package/dist/ms-FBHSR4PG.mjs.map +0 -1
  214. package/dist/nl-IC2MPZXN.mjs.map +0 -1
  215. package/dist/no-LLD43NRM.mjs.map +0 -1
  216. package/dist/pl-DDOJBR4D.mjs.map +0 -1
  217. package/dist/pt-7TFHQRRN.mjs.map +0 -1
  218. package/dist/ro-P4PJEGDU.mjs.map +0 -1
  219. package/dist/sv-LF3VEQD2.mjs.map +0 -1
  220. package/dist/th-YUQAOFXF.mjs.map +0 -1
  221. package/dist/tr-CSIGLMJC.mjs.map +0 -1
  222. package/dist/uk-LW3QBKSR.mjs.map +0 -1
  223. package/dist/vi-W464Y6ZC.mjs.map +0 -1
  224. package/dist/zh-R5XLM3EI.mjs.map +0 -1
  225. /package/dist/{en-DVB4OE2R.mjs.map → en-OAKDUA6C.mjs.map} +0 -0
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Motivation: Highlighting
3
+ * Color Theme: Yellow
4
+ * W3C Web Annotation: highlighting motivation
5
+ *
6
+ * This file defines all styles for highlight annotations
7
+ * across text, panels, and image annotations.
8
+ */
9
+
10
+ /* ============================================
11
+ Color Variables
12
+ ============================================ */
13
+ :root {
14
+ /* Light theme colors */
15
+ --semiont-motivation-highlight-primary: var(--semiont-color-yellow-500);
16
+ --semiont-motivation-highlight-bg: var(--semiont-color-yellow-200);
17
+ --semiont-motivation-highlight-bg-hover: var(--semiont-color-yellow-300);
18
+ --semiont-motivation-highlight-border: rgba(251, 191, 36, 0.3);
19
+ --semiont-motivation-highlight-border-hover: rgba(251, 191, 36, 0.5);
20
+ --semiont-motivation-highlight-text: var(--semiont-color-gray-900);
21
+
22
+ /* Dark theme colors */
23
+ --semiont-motivation-highlight-dark-bg: rgba(113, 63, 18, 0.5);
24
+ --semiont-motivation-highlight-dark-bg-hover: rgba(113, 63, 18, 0.6);
25
+ --semiont-motivation-highlight-dark-text: var(--semiont-color-white);
26
+ --semiont-motivation-highlight-dark-outline: rgba(251, 191, 36, 0.6);
27
+ --semiont-motivation-highlight-dark-primary: var(--semiont-color-yellow-300);
28
+
29
+ /* Panel backgrounds */
30
+ --semiont-motivation-highlight-panel-bg: rgba(254, 249, 195, 0.3);
31
+ --semiont-motivation-highlight-panel-bg-dark: rgba(113, 63, 18, 0.2);
32
+
33
+ /* Button colors */
34
+ --semiont-motivation-highlight-button-bg: var(--semiont-color-warning);
35
+ --semiont-motivation-highlight-button-bg-hover: var(--semiont-color-warning-dark);
36
+ }
37
+
38
+ /* ============================================
39
+ Inline Text Annotations
40
+ ============================================ */
41
+ .semiont-motivation-highlight,
42
+ .annotation-highlight {
43
+ border-radius: 0.25rem;
44
+ padding: 0 0.125rem;
45
+ cursor: pointer;
46
+ transition: all 200ms;
47
+ background: var(--semiont-motivation-highlight-bg);
48
+ color: var(--semiont-motivation-highlight-text);
49
+ }
50
+
51
+ .semiont-motivation-highlight:hover,
52
+ .annotation-highlight:hover {
53
+ background: var(--semiont-motivation-highlight-bg-hover);
54
+ }
55
+
56
+ [data-theme="dark"] .semiont-motivation-highlight,
57
+ [data-theme="dark"] .annotation-highlight {
58
+ background: var(--semiont-motivation-highlight-dark-bg);
59
+ color: var(--semiont-motivation-highlight-dark-text);
60
+ outline: 2px dashed var(--semiont-motivation-highlight-dark-outline);
61
+ outline-offset: 1px;
62
+ }
63
+
64
+ [data-theme="dark"] .semiont-motivation-highlight:hover,
65
+ [data-theme="dark"] .annotation-highlight:hover {
66
+ background: var(--semiont-motivation-highlight-dark-bg-hover);
67
+ }
68
+
69
+ /* ============================================
70
+ Panel Entry Styling
71
+ ============================================ */
72
+ .semiont-motivation-highlight-entry,
73
+ .semiont-annotation-entry[data-type="highlight"] {
74
+ border-color: var(--semiont-motivation-highlight-border);
75
+ }
76
+
77
+ .semiont-motivation-highlight-entry:hover,
78
+ .semiont-annotation-entry[data-type="highlight"]:hover {
79
+ background: var(--semiont-motivation-highlight-panel-bg);
80
+ border-color: var(--semiont-motivation-highlight-border-hover);
81
+ }
82
+
83
+ [data-theme="dark"] .semiont-motivation-highlight-entry,
84
+ [data-theme="dark"] .semiont-annotation-entry[data-type="highlight"] {
85
+ border-color: var(--semiont-motivation-highlight-border);
86
+ }
87
+
88
+ [data-theme="dark"] .semiont-motivation-highlight-entry:hover,
89
+ [data-theme="dark"] .semiont-annotation-entry[data-type="highlight"]:hover {
90
+ background: var(--semiont-motivation-highlight-panel-bg-dark);
91
+ }
92
+
93
+ /* ============================================
94
+ Quote/Excerpt Styling in Panels
95
+ ============================================ */
96
+ .semiont-motivation-highlight-quote,
97
+ .semiont-annotation-entry__quote[data-type="highlight"] {
98
+ background: var(--semiont-motivation-highlight-bg);
99
+ color: var(--semiont-motivation-highlight-text);
100
+ padding: 0.375rem 0.5rem;
101
+ border-radius: var(--semiont-radius-sm);
102
+ }
103
+
104
+ [data-theme="dark"] .semiont-motivation-highlight-quote,
105
+ [data-theme="dark"] .semiont-annotation-entry__quote[data-type="highlight"] {
106
+ background: var(--semiont-motivation-highlight-dark-bg);
107
+ color: var(--semiont-motivation-highlight-dark-primary);
108
+ }
109
+
110
+ /* ============================================
111
+ Detection Section in Unified Panel
112
+ ============================================ */
113
+ .semiont-motivation-highlight-section,
114
+ .semiont-detect-section[data-type="highlight"] {
115
+ border-color: var(--semiont-motivation-highlight-button-bg);
116
+ }
117
+
118
+ [data-theme="dark"] .semiont-motivation-highlight-section,
119
+ [data-theme="dark"] .semiont-detect-section[data-type="highlight"] {
120
+ border-color: var(--semiont-motivation-highlight-button-bg-hover);
121
+ }
122
+
123
+ /* ============================================
124
+ Button Styling
125
+ ============================================ */
126
+ .semiont-motivation-highlight-button,
127
+ .semiont-button[data-variant="detect"][data-type="highlight"] {
128
+ background: linear-gradient(to right, var(--semiont-motivation-highlight-button-bg), var(--semiont-motivation-highlight-button-bg-hover));
129
+ color: var(--semiont-color-white) !important;
130
+ border: 1px solid var(--semiont-motivation-highlight-border);
131
+ cursor: pointer;
132
+ transition: all 0.3s ease;
133
+ }
134
+
135
+ .semiont-motivation-highlight-button:hover,
136
+ .semiont-button[data-variant="detect"][data-type="highlight"]:hover {
137
+ background: var(--semiont-motivation-highlight-button-bg-hover);
138
+ border-color: var(--semiont-motivation-highlight-primary);
139
+ }
140
+
141
+ [data-theme="dark"] .semiont-motivation-highlight-button,
142
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="highlight"] {
143
+ border-color: var(--semiont-motivation-highlight-dark-outline);
144
+ }
145
+
146
+ [data-theme="dark"] .semiont-motivation-highlight-button:hover,
147
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="highlight"]:hover {
148
+ border-color: var(--semiont-motivation-highlight-dark-primary);
149
+ }
150
+
151
+ .semiont-motivation-highlight-button:focus-visible,
152
+ .semiont-button[data-variant="detect"][data-type="highlight"]:focus-visible {
153
+ outline: 2px solid var(--semiont-motivation-highlight-primary);
154
+ outline-offset: 2px;
155
+ }
156
+
157
+ [data-theme="dark"] .semiont-motivation-highlight-button:focus-visible,
158
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="highlight"]:focus-visible {
159
+ outline: 2px solid var(--semiont-motivation-highlight-dark-primary);
160
+ outline-offset: 2px;
161
+ }
162
+
163
+ /* ============================================
164
+ Image Annotation Overlays
165
+ ============================================ */
166
+ .semiont-image-annotation-highlight {
167
+ stroke: var(--semiont-motivation-highlight-primary);
168
+ stroke-width: 2px;
169
+ fill: var(--semiont-motivation-highlight-border);
170
+ }
171
+
172
+ .semiont-image-annotation-highlight:hover {
173
+ stroke-width: 3px;
174
+ fill: var(--semiont-motivation-highlight-border-hover);
175
+ }
176
+
177
+ [data-theme="dark"] .semiont-image-annotation-highlight {
178
+ stroke: var(--semiont-motivation-highlight-dark-primary);
179
+ fill: rgba(251, 191, 36, 0.2);
180
+ }
181
+
182
+ /* ============================================
183
+ Highlight-specific Visual Elements
184
+ ============================================ */
185
+ .semiont-highlight-marker {
186
+ background: var(--semiont-motivation-highlight-bg);
187
+ display: inline-block;
188
+ padding: 0 0.125rem;
189
+ border-radius: 0.125rem;
190
+ }
191
+
192
+ [data-theme="dark"] .semiont-highlight-marker {
193
+ background: var(--semiont-motivation-highlight-dark-bg);
194
+ outline: 1px dashed var(--semiont-motivation-highlight-dark-outline);
195
+ }
@@ -0,0 +1,210 @@
1
+ /**
2
+ * Motivation: Linking/References
3
+ * Color Theme: Blue/Cyan gradient
4
+ * W3C Web Annotation: linking motivation
5
+ *
6
+ * This file defines all styles for reference/linking annotations
7
+ * across text, panels, and image annotations.
8
+ */
9
+
10
+ /* ============================================
11
+ Color Variables
12
+ ============================================ */
13
+ :root {
14
+ /* Light theme colors */
15
+ --semiont-motivation-reference-primary: var(--semiont-color-cyan-600);
16
+ --semiont-motivation-reference-secondary: var(--semiont-color-blue-600);
17
+ --semiont-motivation-reference-bg: linear-gradient(to right, var(--semiont-color-cyan-200, #a5f3fc), var(--semiont-color-blue-200));
18
+ --semiont-motivation-reference-bg-hover: linear-gradient(to right, var(--semiont-color-cyan-300, #67e8f9), var(--semiont-color-blue-300));
19
+ --semiont-motivation-reference-border: rgba(6, 182, 212, 0.3);
20
+ --semiont-motivation-reference-border-hover: rgba(6, 182, 212, 0.5);
21
+ --semiont-motivation-reference-text: var(--semiont-color-gray-900);
22
+
23
+ /* Dark theme colors */
24
+ --semiont-motivation-reference-dark-bg: linear-gradient(to right, rgba(30, 58, 138, 0.5), rgba(8, 51, 68, 0.5));
25
+ --semiont-motivation-reference-dark-bg-hover: linear-gradient(to right, rgba(30, 58, 138, 0.6), rgba(8, 51, 68, 0.6));
26
+ --semiont-motivation-reference-dark-text: var(--semiont-color-white);
27
+ --semiont-motivation-reference-dark-outline: rgba(6, 182, 212, 0.6);
28
+ --semiont-motivation-reference-dark-primary: var(--semiont-color-cyan-400);
29
+
30
+ /* Button gradients */
31
+ --semiont-motivation-reference-button-bg: linear-gradient(to right, var(--semiont-color-cyan-600), var(--semiont-color-blue-500));
32
+ --semiont-motivation-reference-button-bg-hover: linear-gradient(to right, var(--semiont-color-cyan-500), var(--semiont-color-blue-500));
33
+ }
34
+
35
+ /* ============================================
36
+ Inline Text Annotations
37
+ ============================================ */
38
+ .semiont-motivation-reference,
39
+ .annotation-reference {
40
+ border-radius: 0.25rem;
41
+ padding: 0 0.125rem;
42
+ cursor: pointer;
43
+ transition: all 200ms;
44
+ background: var(--semiont-motivation-reference-bg);
45
+ color: var(--semiont-motivation-reference-text);
46
+ }
47
+
48
+ .semiont-motivation-reference:hover,
49
+ .annotation-reference:hover {
50
+ background: var(--semiont-motivation-reference-bg-hover);
51
+ }
52
+
53
+ [data-theme="dark"] .semiont-motivation-reference,
54
+ [data-theme="dark"] .annotation-reference {
55
+ background: var(--semiont-motivation-reference-dark-bg);
56
+ color: var(--semiont-motivation-reference-dark-text);
57
+ outline: 2px dashed var(--semiont-motivation-reference-dark-outline);
58
+ outline-offset: 1px;
59
+ }
60
+
61
+ [data-theme="dark"] .semiont-motivation-reference:hover,
62
+ [data-theme="dark"] .annotation-reference:hover {
63
+ background: var(--semiont-motivation-reference-dark-bg-hover);
64
+ }
65
+
66
+ /* ============================================
67
+ Panel Entry Styling
68
+ ============================================ */
69
+ .semiont-motivation-reference-entry,
70
+ .semiont-annotation-entry[data-type="reference"] {
71
+ border-color: var(--semiont-motivation-reference-border);
72
+ }
73
+
74
+ .semiont-motivation-reference-entry:hover,
75
+ .semiont-annotation-entry[data-type="reference"]:hover {
76
+ background: linear-gradient(to right, rgba(165, 243, 252, 0.1), rgba(191, 219, 254, 0.1));
77
+ border-color: var(--semiont-motivation-reference-border-hover);
78
+ }
79
+
80
+ [data-theme="dark"] .semiont-motivation-reference-entry,
81
+ [data-theme="dark"] .semiont-annotation-entry[data-type="reference"] {
82
+ border-color: var(--semiont-motivation-reference-border);
83
+ }
84
+
85
+ [data-theme="dark"] .semiont-motivation-reference-entry:hover,
86
+ [data-theme="dark"] .semiont-annotation-entry[data-type="reference"]:hover {
87
+ background: linear-gradient(to right, rgba(30, 58, 138, 0.2), rgba(8, 51, 68, 0.2));
88
+ }
89
+
90
+ /* ============================================
91
+ Quote/Excerpt Styling in Panels
92
+ ============================================ */
93
+ .semiont-motivation-reference-quote,
94
+ .semiont-annotation-entry__quote[data-type="reference"] {
95
+ background: linear-gradient(to right, rgba(165, 243, 252, 0.2), rgba(191, 219, 254, 0.2));
96
+ color: var(--semiont-color-cyan-700);
97
+ }
98
+
99
+ [data-theme="dark"] .semiont-motivation-reference-quote,
100
+ [data-theme="dark"] .semiont-annotation-entry__quote[data-type="reference"] {
101
+ background: linear-gradient(to right, rgba(30, 58, 138, 0.3), rgba(8, 51, 68, 0.3));
102
+ color: var(--semiont-color-cyan-300);
103
+ }
104
+
105
+ /* ============================================
106
+ Detection Section in Unified Panel
107
+ ============================================ */
108
+ .semiont-motivation-reference-section,
109
+ .semiont-detect-section[data-type="reference"] {
110
+ border-color: var(--semiont-color-cyan-500);
111
+ }
112
+
113
+ [data-theme="dark"] .semiont-motivation-reference-section,
114
+ [data-theme="dark"] .semiont-detect-section[data-type="reference"] {
115
+ border-color: var(--semiont-color-cyan-600);
116
+ }
117
+
118
+ /* ============================================
119
+ Button Styling
120
+ ============================================ */
121
+ .semiont-motivation-reference-button,
122
+ .semiont-button[data-variant="detect"][data-type="reference"] {
123
+ background: linear-gradient(to right, var(--semiont-color-cyan-600), var(--semiont-color-blue-500)) !important;
124
+ color: var(--semiont-color-white) !important;
125
+ border: 1px solid var(--semiont-motivation-reference-border);
126
+ cursor: pointer;
127
+ transition: all 0.3s ease;
128
+ }
129
+
130
+ .semiont-motivation-reference-button:hover,
131
+ .semiont-button[data-variant="detect"][data-type="reference"]:hover {
132
+ background: var(--semiont-motivation-reference-button-bg-hover);
133
+ border-color: var(--semiont-motivation-reference-primary);
134
+ }
135
+
136
+ [data-theme="dark"] .semiont-motivation-reference-button,
137
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="reference"] {
138
+ border-color: var(--semiont-motivation-reference-dark-outline);
139
+ }
140
+
141
+ [data-theme="dark"] .semiont-motivation-reference-button:hover,
142
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="reference"]:hover {
143
+ border-color: var(--semiont-motivation-reference-dark-primary);
144
+ }
145
+
146
+ .semiont-motivation-reference-button:focus-visible,
147
+ .semiont-button[data-variant="detect"][data-type="reference"]:focus-visible {
148
+ outline: 2px solid var(--semiont-motivation-reference-primary);
149
+ outline-offset: 2px;
150
+ }
151
+
152
+ [data-theme="dark"] .semiont-motivation-reference-button:focus-visible,
153
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="reference"]:focus-visible {
154
+ outline: 2px solid var(--semiont-motivation-reference-dark-primary);
155
+ outline-offset: 2px;
156
+ }
157
+
158
+ /* ============================================
159
+ Reference-specific Elements
160
+ ============================================ */
161
+ .semiont-reference-icon {
162
+ font-size: 1.25rem;
163
+ flex-shrink: 0;
164
+ color: var(--semiont-motivation-reference-primary);
165
+ }
166
+
167
+ [data-theme="dark"] .semiont-reference-icon {
168
+ color: var(--semiont-motivation-reference-dark-primary);
169
+ }
170
+
171
+ .semiont-reference-link {
172
+ font-size: var(--semiont-text-sm);
173
+ color: var(--semiont-motivation-reference-primary);
174
+ display: flex;
175
+ align-items: center;
176
+ gap: 0.25rem;
177
+ margin-top: 0.25rem;
178
+ }
179
+
180
+ [data-theme="dark"] .semiont-reference-link {
181
+ color: var(--semiont-motivation-reference-dark-primary);
182
+ }
183
+
184
+ .semiont-reference-link:focus-visible {
185
+ outline: 2px solid var(--semiont-motivation-reference-primary);
186
+ outline-offset: 2px;
187
+ border-radius: 2px;
188
+ }
189
+
190
+ [data-theme="dark"] .semiont-reference-link:focus-visible {
191
+ outline-color: var(--semiont-motivation-reference-dark-primary);
192
+ }
193
+
194
+ /* ============================================
195
+ Image Annotation Overlays
196
+ ============================================ */
197
+ .semiont-image-annotation-reference {
198
+ stroke: var(--semiont-motivation-reference-primary);
199
+ fill: var(--semiont-motivation-reference-border);
200
+ }
201
+
202
+ .semiont-image-annotation-reference:hover {
203
+ stroke-width: 3px;
204
+ fill: var(--semiont-motivation-reference-border-hover);
205
+ }
206
+
207
+ [data-theme="dark"] .semiont-image-annotation-reference {
208
+ stroke: var(--semiont-motivation-reference-dark-primary);
209
+ fill: rgba(6, 182, 212, 0.2);
210
+ }
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Motivation: Tagging
3
+ * Color Theme: Orange/Amber gradient
4
+ * W3C Web Annotation: tagging motivation
5
+ *
6
+ * This file defines all styles for tag annotations
7
+ * across text, panels, and image annotations.
8
+ */
9
+
10
+ /* ============================================
11
+ Color Variables
12
+ ============================================ */
13
+ :root {
14
+ /* Light theme colors */
15
+ --semiont-motivation-tag-primary: var(--semiont-color-orange-600);
16
+ --semiont-motivation-tag-secondary: var(--semiont-color-amber-600);
17
+ --semiont-motivation-tag-bg: linear-gradient(to right, var(--semiont-color-orange-200), var(--semiont-color-amber-200));
18
+ --semiont-motivation-tag-bg-hover: linear-gradient(to right, var(--semiont-color-orange-300), var(--semiont-color-amber-300));
19
+ --semiont-motivation-tag-border: rgba(251, 146, 60, 0.3);
20
+ --semiont-motivation-tag-border-hover: rgba(251, 146, 60, 0.5);
21
+ --semiont-motivation-tag-text: var(--semiont-color-orange-700);
22
+
23
+ /* Dark theme colors */
24
+ --semiont-motivation-tag-dark-bg: linear-gradient(to right, rgba(124, 45, 18, 0.5), rgba(120, 53, 15, 0.5));
25
+ --semiont-motivation-tag-dark-bg-hover: linear-gradient(to right, rgba(124, 45, 18, 0.6), rgba(120, 53, 15, 0.6));
26
+ --semiont-motivation-tag-dark-text: var(--semiont-color-orange-300);
27
+ --semiont-motivation-tag-dark-outline: rgba(251, 146, 60, 0.6);
28
+ --semiont-motivation-tag-dark-primary: var(--semiont-color-orange-400);
29
+
30
+ /* Panel backgrounds */
31
+ --semiont-motivation-tag-panel-bg: linear-gradient(to right, rgba(254, 237, 213, 0.2), rgba(254, 243, 199, 0.2));
32
+ --semiont-motivation-tag-panel-bg-dark: linear-gradient(to right, rgba(124, 45, 18, 0.2), rgba(120, 53, 15, 0.2));
33
+
34
+ /* Quote backgrounds */
35
+ --semiont-motivation-tag-quote-bg: linear-gradient(to right, rgba(254, 237, 213, 0.4), rgba(254, 243, 199, 0.4));
36
+ --semiont-motivation-tag-quote-bg-dark: linear-gradient(to right, rgba(124, 45, 18, 0.5), rgba(120, 53, 15, 0.5));
37
+
38
+ /* Button backgrounds */
39
+ --semiont-motivation-tag-button-bg: linear-gradient(to right, var(--semiont-color-orange-500), var(--semiont-color-amber-500));
40
+ --semiont-motivation-tag-button-bg-hover: linear-gradient(to right, var(--semiont-color-orange-600), var(--semiont-color-amber-600));
41
+ }
42
+
43
+ /* ============================================
44
+ Inline Text Annotations
45
+ ============================================ */
46
+ .semiont-motivation-tag,
47
+ .annotation-tag {
48
+ border-radius: 0.25rem;
49
+ padding: 0 0.125rem;
50
+ cursor: pointer;
51
+ transition: all 200ms;
52
+ background: var(--semiont-motivation-tag-bg);
53
+ color: var(--semiont-motivation-tag-text);
54
+ }
55
+
56
+ .semiont-motivation-tag:hover,
57
+ .annotation-tag:hover {
58
+ background: var(--semiont-motivation-tag-bg-hover);
59
+ }
60
+
61
+ [data-theme="dark"] .semiont-motivation-tag,
62
+ [data-theme="dark"] .annotation-tag {
63
+ background: var(--semiont-motivation-tag-dark-bg);
64
+ color: var(--semiont-color-white) !important;
65
+ outline: 2px dashed var(--semiont-motivation-tag-dark-outline);
66
+ outline-offset: 1px;
67
+ }
68
+
69
+ [data-theme="dark"] .semiont-motivation-tag:hover,
70
+ [data-theme="dark"] .annotation-tag:hover {
71
+ background: var(--semiont-motivation-tag-dark-bg-hover);
72
+ }
73
+
74
+ /* ============================================
75
+ Panel Entry Styling
76
+ ============================================ */
77
+ .semiont-motivation-tag-entry,
78
+ .semiont-annotation-entry[data-type="tag"] {
79
+ border-color: var(--semiont-motivation-tag-border);
80
+ }
81
+
82
+ .semiont-motivation-tag-entry:hover,
83
+ .semiont-annotation-entry[data-type="tag"]:hover {
84
+ background: var(--semiont-motivation-tag-panel-bg);
85
+ border-color: var(--semiont-motivation-tag-border-hover);
86
+ }
87
+
88
+ [data-theme="dark"] .semiont-motivation-tag-entry,
89
+ [data-theme="dark"] .semiont-annotation-entry[data-type="tag"] {
90
+ border-color: var(--semiont-motivation-tag-border);
91
+ }
92
+
93
+ [data-theme="dark"] .semiont-motivation-tag-entry:hover,
94
+ [data-theme="dark"] .semiont-annotation-entry[data-type="tag"]:hover {
95
+ background: var(--semiont-motivation-tag-panel-bg-dark);
96
+ }
97
+
98
+ /* ============================================
99
+ Quote/Excerpt Styling in Panels
100
+ ============================================ */
101
+ .semiont-motivation-tag-quote,
102
+ .semiont-annotation-entry__quote[data-type="tag"] {
103
+ background: var(--semiont-motivation-tag-quote-bg);
104
+ color: var(--semiont-motivation-tag-text);
105
+ padding: 0.375rem 0.5rem;
106
+ border-radius: var(--semiont-radius-sm);
107
+ }
108
+
109
+ [data-theme="dark"] .semiont-motivation-tag-quote,
110
+ [data-theme="dark"] .semiont-annotation-entry__quote[data-type="tag"] {
111
+ background: var(--semiont-motivation-tag-quote-bg-dark);
112
+ color: var(--semiont-motivation-tag-dark-text);
113
+ }
114
+
115
+ /* ============================================
116
+ Detection Section in Unified Panel
117
+ ============================================ */
118
+ .semiont-motivation-tag-section,
119
+ .semiont-detect-section[data-type="tag"] {
120
+ border-color: var(--semiont-motivation-tag-primary);
121
+ }
122
+
123
+ [data-theme="dark"] .semiont-motivation-tag-section,
124
+ [data-theme="dark"] .semiont-detect-section[data-type="tag"] {
125
+ border-color: var(--semiont-motivation-tag-dark-primary);
126
+ }
127
+
128
+ /* ============================================
129
+ Button Styling
130
+ ============================================ */
131
+ .semiont-motivation-tag-button,
132
+ .semiont-button[data-variant="detect"][data-type="tag"] {
133
+ background: linear-gradient(to right, var(--semiont-color-orange-500), var(--semiont-color-amber-500)) !important;
134
+ color: var(--semiont-color-white) !important;
135
+ border: 1px solid var(--semiont-motivation-tag-border);
136
+ cursor: pointer;
137
+ transition: all 0.3s ease;
138
+ }
139
+
140
+ .semiont-motivation-tag-button:hover,
141
+ .semiont-button[data-variant="detect"][data-type="tag"]:hover:not(:disabled) {
142
+ background: var(--semiont-motivation-tag-button-bg-hover);
143
+ border-color: var(--semiont-motivation-tag-primary);
144
+ }
145
+
146
+ [data-theme="dark"] .semiont-motivation-tag-button,
147
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="tag"] {
148
+ border-color: var(--semiont-motivation-tag-dark-outline);
149
+ }
150
+
151
+ [data-theme="dark"] .semiont-motivation-tag-button:hover,
152
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="tag"]:hover:not(:disabled) {
153
+ border-color: var(--semiont-motivation-tag-dark-primary);
154
+ }
155
+
156
+ .semiont-motivation-tag-button:focus-visible,
157
+ .semiont-button[data-variant="detect"][data-type="tag"]:focus-visible {
158
+ outline: 2px solid var(--semiont-motivation-tag-primary);
159
+ outline-offset: 2px;
160
+ }
161
+
162
+ [data-theme="dark"] .semiont-motivation-tag-button:focus-visible,
163
+ [data-theme="dark"] .semiont-button[data-variant="detect"][data-type="tag"]:focus-visible {
164
+ outline: 2px solid var(--semiont-motivation-tag-dark-primary);
165
+ outline-offset: 2px;
166
+ }
167
+
168
+ /* ============================================
169
+ Tag Input Areas
170
+ ============================================ */
171
+ .semiont-annotation-prompt[data-type="tag"] {
172
+ background: var(--semiont-motivation-tag-panel-bg);
173
+ padding: var(--semiont-panel-padding);
174
+ border-radius: var(--semiont-radius-md);
175
+ border: 2px solid var(--semiont-motivation-tag-border);
176
+ }
177
+
178
+ [data-theme="dark"] .semiont-annotation-prompt[data-type="tag"] {
179
+ background: var(--semiont-motivation-tag-panel-bg-dark);
180
+ border-color: var(--semiont-motivation-tag-dark-primary);
181
+ }
182
+
183
+ /* ============================================
184
+ Individual Tag Chips
185
+ ============================================ */
186
+ /* Tag chip when related to tag motivation */
187
+ .semiont-motivation-tag-chip {
188
+ background: var(--semiont-motivation-tag-primary);
189
+ color: var(--semiont-color-white) !important;
190
+ border-radius: var(--semiont-radius-full);
191
+ padding: 0.125rem 0.5rem;
192
+ font-size: var(--semiont-text-xs);
193
+ font-weight: var(--semiont-font-medium);
194
+ display: inline-flex;
195
+ align-items: center;
196
+ gap: 0.25rem;
197
+ }
198
+
199
+ [data-theme="dark"] .semiont-motivation-tag-chip {
200
+ background: var(--semiont-motivation-tag-dark-primary);
201
+ }
202
+
203
+ .semiont-motivation-tag-chip:hover {
204
+ background: var(--semiont-motivation-tag-secondary);
205
+ }
206
+
207
+ [data-theme="dark"] .semiont-motivation-tag-chip:hover {
208
+ background: var(--semiont-color-orange-500);
209
+ }
210
+
211
+ /* ============================================
212
+ Image Annotation Overlays
213
+ ============================================ */
214
+ .semiont-image-annotation-tag {
215
+ stroke: var(--semiont-motivation-tag-primary);
216
+ stroke-width: 2px;
217
+ fill: var(--semiont-motivation-tag-border);
218
+ }
219
+
220
+ .semiont-image-annotation-tag:hover {
221
+ stroke-width: 3px;
222
+ fill: var(--semiont-motivation-tag-border-hover);
223
+ }
224
+
225
+ [data-theme="dark"] .semiont-image-annotation-tag {
226
+ stroke: var(--semiont-motivation-tag-dark-primary);
227
+ fill: rgba(251, 146, 60, 0.2);
228
+ }
229
+
230
+ /* ============================================
231
+ Tag-specific Visual Elements
232
+ ============================================ */
233
+ .semiont-tag-icon {
234
+ color: var(--semiont-motivation-tag-primary);
235
+ font-size: 1.125rem;
236
+ }
237
+
238
+ [data-theme="dark"] .semiont-tag-icon {
239
+ color: var(--semiont-motivation-tag-dark-primary);
240
+ }
241
+
242
+ .semiont-tag-badge {
243
+ background: var(--semiont-motivation-tag-primary);
244
+ color: var(--semiont-color-white) !important;
245
+ border-radius: var(--semiont-radius-sm);
246
+ padding: 0.125rem 0.375rem;
247
+ font-size: var(--semiont-text-xs);
248
+ font-weight: var(--semiont-font-semibold);
249
+ display: inline-block;
250
+ }
251
+
252
+ [data-theme="dark"] .semiont-tag-badge {
253
+ background: var(--semiont-motivation-tag-dark-primary);
254
+ }