@imjp/writenex-astro 0.1.0

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 (141) hide show
  1. package/README.md +539 -0
  2. package/dist/chunk-5PM6EQE5.js +151 -0
  3. package/dist/chunk-5PM6EQE5.js.map +1 -0
  4. package/dist/chunk-7XU5X6CW.js +1331 -0
  5. package/dist/chunk-7XU5X6CW.js.map +1 -0
  6. package/dist/chunk-AAOQHQPU.js +574 -0
  7. package/dist/chunk-AAOQHQPU.js.map +1 -0
  8. package/dist/chunk-CF2XXJFF.js +1410 -0
  9. package/dist/chunk-CF2XXJFF.js.map +1 -0
  10. package/dist/chunk-CRPZUUDU.js +52 -0
  11. package/dist/chunk-CRPZUUDU.js.map +1 -0
  12. package/dist/chunk-CYLDJ3HZ.js +310 -0
  13. package/dist/chunk-CYLDJ3HZ.js.map +1 -0
  14. package/dist/chunk-KIKIPIFA.js +1 -0
  15. package/dist/chunk-KIKIPIFA.js.map +1 -0
  16. package/dist/chunk-XNTQTTJU.js +145 -0
  17. package/dist/chunk-XNTQTTJU.js.map +1 -0
  18. package/dist/client/index.css +2 -0
  19. package/dist/client/index.css.map +1 -0
  20. package/dist/client/index.js +375 -0
  21. package/dist/client/index.js.map +1 -0
  22. package/dist/client/styles.css +584 -0
  23. package/dist/client/variables.css +304 -0
  24. package/dist/config/index.d.ts +54 -0
  25. package/dist/config/index.js +38 -0
  26. package/dist/config/index.js.map +1 -0
  27. package/dist/config-BmEdBDo_.d.ts +220 -0
  28. package/dist/content-BWR52vD-.d.ts +64 -0
  29. package/dist/discovery/index.d.ts +310 -0
  30. package/dist/discovery/index.js +38 -0
  31. package/dist/discovery/index.js.map +1 -0
  32. package/dist/errors-C0iYiDTv.d.ts +107 -0
  33. package/dist/filesystem/index.d.ts +1292 -0
  34. package/dist/filesystem/index.js +203 -0
  35. package/dist/filesystem/index.js.map +1 -0
  36. package/dist/image-FP7w5ZIs.d.ts +47 -0
  37. package/dist/index.d.ts +64 -0
  38. package/dist/index.js +151 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/loader-55LWCXHA.js +12 -0
  41. package/dist/loader-55LWCXHA.js.map +1 -0
  42. package/dist/loader-CrdnaAWR.d.ts +327 -0
  43. package/dist/server/index.d.ts +357 -0
  44. package/dist/server/index.js +37 -0
  45. package/dist/server/index.js.map +1 -0
  46. package/package.json +94 -0
  47. package/src/client/App.tsx +900 -0
  48. package/src/client/components/ConfigPanel/ConfigPanel.css +553 -0
  49. package/src/client/components/ConfigPanel/ConfigPanel.tsx +396 -0
  50. package/src/client/components/ConfigPanel/index.ts +6 -0
  51. package/src/client/components/CreateContentModal/CreateContentModal.css +327 -0
  52. package/src/client/components/CreateContentModal/CreateContentModal.tsx +216 -0
  53. package/src/client/components/CreateContentModal/index.ts +7 -0
  54. package/src/client/components/Editor/Editor.css +885 -0
  55. package/src/client/components/Editor/Editor.tsx +484 -0
  56. package/src/client/components/Editor/ImageDialog.css +344 -0
  57. package/src/client/components/Editor/ImageDialog.tsx +367 -0
  58. package/src/client/components/Editor/LinkDialog.css +326 -0
  59. package/src/client/components/Editor/LinkDialog.tsx +332 -0
  60. package/src/client/components/Editor/index.ts +6 -0
  61. package/src/client/components/FrontmatterForm/FrontmatterForm.css +468 -0
  62. package/src/client/components/FrontmatterForm/FrontmatterForm.tsx +914 -0
  63. package/src/client/components/FrontmatterForm/index.ts +7 -0
  64. package/src/client/components/Header/Header.css +300 -0
  65. package/src/client/components/Header/Header.tsx +300 -0
  66. package/src/client/components/Header/index.ts +7 -0
  67. package/src/client/components/KeyboardShortcuts/KeyboardShortcuts.css +239 -0
  68. package/src/client/components/KeyboardShortcuts/KeyboardShortcuts.tsx +151 -0
  69. package/src/client/components/KeyboardShortcuts/index.ts +6 -0
  70. package/src/client/components/LazyEditor.tsx +75 -0
  71. package/src/client/components/LiveRegion/LiveRegion.css +19 -0
  72. package/src/client/components/LiveRegion/LiveRegion.tsx +60 -0
  73. package/src/client/components/LiveRegion/index.ts +7 -0
  74. package/src/client/components/SearchReplace/SearchReplacePanel.css +300 -0
  75. package/src/client/components/SearchReplace/SearchReplacePanel.tsx +332 -0
  76. package/src/client/components/SearchReplace/index.ts +7 -0
  77. package/src/client/components/SelectCollectionModal/SelectCollectionModal.css +308 -0
  78. package/src/client/components/SelectCollectionModal/SelectCollectionModal.tsx +223 -0
  79. package/src/client/components/SelectCollectionModal/index.ts +7 -0
  80. package/src/client/components/Sidebar/Sidebar.css +570 -0
  81. package/src/client/components/Sidebar/Sidebar.tsx +617 -0
  82. package/src/client/components/Sidebar/index.ts +7 -0
  83. package/src/client/components/SkipLink/SkipLink.css +51 -0
  84. package/src/client/components/SkipLink/SkipLink.tsx +67 -0
  85. package/src/client/components/SkipLink/index.ts +7 -0
  86. package/src/client/components/UnsavedChangesModal/UnsavedChangesModal.css +233 -0
  87. package/src/client/components/UnsavedChangesModal/UnsavedChangesModal.tsx +160 -0
  88. package/src/client/components/UnsavedChangesModal/index.ts +1 -0
  89. package/src/client/components/VersionHistory/DiffViewer.css +430 -0
  90. package/src/client/components/VersionHistory/DiffViewer.tsx +383 -0
  91. package/src/client/components/VersionHistory/VersionActions.css +318 -0
  92. package/src/client/components/VersionHistory/VersionActions.tsx +277 -0
  93. package/src/client/components/VersionHistory/VersionHistoryPanel.css +369 -0
  94. package/src/client/components/VersionHistory/VersionHistoryPanel.tsx +469 -0
  95. package/src/client/components/VersionHistory/index.ts +9 -0
  96. package/src/client/context/ApiContext.tsx +154 -0
  97. package/src/client/context/ThemeContext.tsx +172 -0
  98. package/src/client/hooks/useAnnounce.ts +201 -0
  99. package/src/client/hooks/useApi.ts +374 -0
  100. package/src/client/hooks/useArrowNavigation.ts +286 -0
  101. package/src/client/hooks/useAutosave.ts +241 -0
  102. package/src/client/hooks/useFocusTrap.ts +178 -0
  103. package/src/client/hooks/useKeyboardShortcuts.ts +203 -0
  104. package/src/client/hooks/useSearch.ts +206 -0
  105. package/src/client/hooks/useVersionHistory.ts +451 -0
  106. package/src/client/index.tsx +70 -0
  107. package/src/client/styles.css +584 -0
  108. package/src/client/utils/focus.ts +57 -0
  109. package/src/client/utils/openInEditor.ts +130 -0
  110. package/src/client/variables.css +304 -0
  111. package/src/config/defaults.ts +109 -0
  112. package/src/config/index.ts +32 -0
  113. package/src/config/loader.ts +174 -0
  114. package/src/config/schema.ts +161 -0
  115. package/src/core/constants.ts +39 -0
  116. package/src/core/errors.ts +739 -0
  117. package/src/core/index.ts +11 -0
  118. package/src/discovery/collections.ts +216 -0
  119. package/src/discovery/index.ts +33 -0
  120. package/src/discovery/patterns.ts +702 -0
  121. package/src/discovery/schema.ts +453 -0
  122. package/src/filesystem/images.ts +798 -0
  123. package/src/filesystem/index.ts +107 -0
  124. package/src/filesystem/reader.ts +452 -0
  125. package/src/filesystem/version-config.ts +390 -0
  126. package/src/filesystem/versions.ts +1339 -0
  127. package/src/filesystem/watcher.ts +226 -0
  128. package/src/filesystem/writer.ts +540 -0
  129. package/src/index.ts +61 -0
  130. package/src/integration.ts +228 -0
  131. package/src/server/assets.ts +254 -0
  132. package/src/server/cache.ts +355 -0
  133. package/src/server/index.ts +33 -0
  134. package/src/server/middleware.ts +209 -0
  135. package/src/server/routes.ts +1428 -0
  136. package/src/types/api.ts +61 -0
  137. package/src/types/config.ts +134 -0
  138. package/src/types/content.ts +64 -0
  139. package/src/types/image.ts +48 -0
  140. package/src/types/index.ts +58 -0
  141. package/src/types/version.ts +117 -0
@@ -0,0 +1,553 @@
1
+ /**
2
+ * @fileoverview ConfigPanel modal styles
3
+ *
4
+ * Modal styling for configuration panel, matches Writenex Editor design.
5
+ */
6
+
7
+ /* ============================================================================
8
+ MODAL OVERLAY
9
+ ============================================================================ */
10
+
11
+ .wn-config-overlay {
12
+ position: fixed;
13
+ inset: 0;
14
+ z-index: var(--wn-z-modal);
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ background-color: var(--wn-backdrop);
19
+ animation: fadeIn var(--wn-transition-fast) ease-out;
20
+ }
21
+
22
+ @keyframes fadeIn {
23
+ from {
24
+ opacity: 0;
25
+ }
26
+ to {
27
+ opacity: 1;
28
+ }
29
+ }
30
+
31
+ /* ============================================================================
32
+ MODAL CONTAINER
33
+ ============================================================================ */
34
+
35
+ .wn-config-modal {
36
+ width: 100%;
37
+ max-width: var(--wn-modal-lg);
38
+ max-height: 80vh;
39
+ display: flex;
40
+ flex-direction: column;
41
+ border-radius: var(--wn-radius-lg);
42
+ border: 1px solid var(--wn-zinc-700);
43
+ background-color: var(--wn-zinc-900);
44
+ box-shadow: var(--wn-shadow-lg);
45
+ animation: zoomIn var(--wn-transition-fast) ease-out;
46
+ }
47
+
48
+ @keyframes zoomIn {
49
+ from {
50
+ opacity: 0;
51
+ transform: scale(0.95);
52
+ }
53
+ to {
54
+ opacity: 1;
55
+ transform: scale(1);
56
+ }
57
+ }
58
+
59
+ /* ============================================================================
60
+ MODAL HEADER
61
+ ============================================================================ */
62
+
63
+ .wn-config-header {
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: space-between;
67
+ padding: var(--wn-space-5) var(--wn-space-6);
68
+ border-bottom: 1px solid var(--wn-zinc-700);
69
+ flex-shrink: 0;
70
+ }
71
+
72
+ .wn-config-title {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: var(--wn-space-3);
76
+ font-size: var(--wn-font-md);
77
+ font-weight: 600;
78
+ color: var(--wn-zinc-50);
79
+ margin: 0;
80
+ }
81
+
82
+ .wn-config-close {
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ width: var(--wn-icon-btn-lg);
87
+ height: var(--wn-icon-btn-lg);
88
+ padding: 0;
89
+ border: none;
90
+ border-radius: var(--wn-radius-md);
91
+ background-color: transparent;
92
+ color: var(--wn-zinc-400);
93
+ cursor: pointer;
94
+ transition:
95
+ background-color var(--wn-transition-fast),
96
+ color var(--wn-transition-fast);
97
+ }
98
+
99
+ .wn-config-close:hover {
100
+ background-color: var(--wn-overlay-10);
101
+ color: var(--wn-zinc-50);
102
+ }
103
+
104
+ /* ============================================================================
105
+ MODAL CONTENT
106
+ ============================================================================ */
107
+
108
+ .wn-config-content {
109
+ flex: 1;
110
+ overflow-y: auto;
111
+ padding: var(--wn-space-6);
112
+ }
113
+
114
+ /* ============================================================================
115
+ SECTIONS
116
+ ============================================================================ */
117
+
118
+ .wn-config-section {
119
+ margin-bottom: var(--wn-space-7);
120
+ }
121
+
122
+ .wn-config-section:last-child {
123
+ margin-bottom: 0;
124
+ }
125
+
126
+ .wn-config-section-title {
127
+ display: flex;
128
+ align-items: center;
129
+ gap: var(--wn-space-3);
130
+ padding-bottom: var(--wn-space-3);
131
+ margin-bottom: var(--wn-space-4);
132
+ border-bottom: 1px solid var(--wn-zinc-700);
133
+ font-size: var(--wn-font-xs);
134
+ font-weight: 600;
135
+ text-transform: uppercase;
136
+ letter-spacing: 0.05em;
137
+ color: var(--wn-zinc-400);
138
+ }
139
+
140
+ /* ============================================================================
141
+ CONFIG ITEMS
142
+ ============================================================================ */
143
+
144
+ .wn-config-items {
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: var(--wn-space-4);
148
+ }
149
+
150
+ .wn-config-item {
151
+ display: grid;
152
+ grid-template-columns: 100px 1fr;
153
+ gap: var(--wn-space-3);
154
+ align-items: start;
155
+ }
156
+
157
+ .wn-config-item-label {
158
+ font-size: var(--wn-font-xs);
159
+ color: var(--wn-zinc-500);
160
+ }
161
+
162
+ .wn-config-item-value {
163
+ font-size: var(--wn-font-base);
164
+ font-weight: 500;
165
+ color: var(--wn-zinc-50);
166
+ }
167
+
168
+ .wn-config-item-value--violet {
169
+ color: var(--wn-info-400);
170
+ }
171
+
172
+ .wn-config-item-value--emerald {
173
+ color: var(--wn-success-400);
174
+ }
175
+
176
+ .wn-config-item-value--amber {
177
+ color: var(--wn-warning-400);
178
+ }
179
+
180
+ .wn-config-item-value--muted {
181
+ color: var(--wn-zinc-500);
182
+ }
183
+
184
+ .wn-config-item-description {
185
+ margin-top: var(--wn-space-1);
186
+ font-size: var(--wn-font-xs);
187
+ color: var(--wn-zinc-600);
188
+ }
189
+
190
+ /* ============================================================================
191
+ COLLECTION CARDS
192
+ ============================================================================ */
193
+
194
+ .wn-config-collections {
195
+ display: flex;
196
+ flex-direction: column;
197
+ gap: var(--wn-space-4);
198
+ }
199
+
200
+ .wn-config-collection {
201
+ padding: var(--wn-space-4);
202
+ border-radius: var(--wn-radius-md);
203
+ border: 1px solid var(--wn-zinc-700);
204
+ background-color: var(--wn-zinc-950);
205
+ }
206
+
207
+ .wn-config-collection-header {
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: space-between;
211
+ margin-bottom: var(--wn-space-3);
212
+ }
213
+
214
+ .wn-config-collection-name {
215
+ font-weight: 500;
216
+ color: var(--wn-zinc-50);
217
+ }
218
+
219
+ .wn-config-collection-count {
220
+ padding: var(--wn-space-1) var(--wn-space-3);
221
+ border-radius: var(--wn-radius-sm);
222
+ background-color: var(--wn-zinc-800);
223
+ font-size: var(--wn-font-xs);
224
+ color: var(--wn-zinc-400);
225
+ }
226
+
227
+ .wn-config-collection-details {
228
+ display: flex;
229
+ flex-direction: column;
230
+ gap: var(--wn-space-1);
231
+ font-size: var(--wn-font-xs);
232
+ }
233
+
234
+ .wn-config-collection-detail {
235
+ color: var(--wn-zinc-500);
236
+ }
237
+
238
+ .wn-config-collection-detail span {
239
+ color: var(--wn-zinc-600);
240
+ }
241
+
242
+ .wn-config-collection-detail--blue {
243
+ color: var(--wn-brand-400);
244
+ }
245
+
246
+ .wn-config-collection-detail--violet {
247
+ color: var(--wn-info-400);
248
+ }
249
+
250
+ /* ============================================================================
251
+ HELP SECTION
252
+ ============================================================================ */
253
+
254
+ .wn-config-help {
255
+ padding: var(--wn-space-5);
256
+ border-radius: var(--wn-radius-md);
257
+ border: 1px solid var(--wn-zinc-700);
258
+ background-color: var(--wn-zinc-950);
259
+ }
260
+
261
+ .wn-config-help-title {
262
+ margin-bottom: var(--wn-space-3);
263
+ font-size: var(--wn-font-xs);
264
+ font-weight: 600;
265
+ text-transform: uppercase;
266
+ letter-spacing: 0.05em;
267
+ color: var(--wn-zinc-400);
268
+ }
269
+
270
+ .wn-config-help-text {
271
+ margin-bottom: var(--wn-space-4);
272
+ font-size: var(--wn-font-base);
273
+ color: var(--wn-zinc-400);
274
+ }
275
+
276
+ .wn-config-help-code {
277
+ padding: var(--wn-space-1) var(--wn-space-2);
278
+ border-radius: var(--wn-radius-sm);
279
+ background-color: var(--wn-zinc-800);
280
+ font-size: var(--wn-font-xs);
281
+ font-family: ui-monospace, monospace;
282
+ color: var(--wn-zinc-50);
283
+ }
284
+
285
+ .wn-config-help-pre {
286
+ margin: 0;
287
+ padding: var(--wn-space-4);
288
+ border-radius: var(--wn-radius-md);
289
+ border: 1px solid var(--wn-zinc-700);
290
+ background-color: var(--wn-zinc-900);
291
+ font-size: var(--wn-font-xs);
292
+ font-family: ui-monospace, monospace;
293
+ color: var(--wn-zinc-400);
294
+ overflow-x: auto;
295
+ white-space: pre;
296
+ }
297
+
298
+ /* ============================================================================
299
+ EMPTY STATE
300
+ ============================================================================ */
301
+
302
+ .wn-config-empty {
303
+ padding: var(--wn-space-5);
304
+ text-align: center;
305
+ font-size: var(--wn-font-base);
306
+ color: var(--wn-zinc-500);
307
+ }
308
+
309
+ /* ============================================================================
310
+ LIGHT MODE OVERRIDES
311
+ ============================================================================ */
312
+
313
+ .wn-light .wn-config-overlay {
314
+ background-color: var(--wn-backdrop-light);
315
+ }
316
+
317
+ .wn-light .wn-config-modal {
318
+ border-color: var(--wn-zinc-200);
319
+ background-color: #fff;
320
+ }
321
+
322
+ .wn-light .wn-config-header {
323
+ border-bottom-color: var(--wn-zinc-200);
324
+ }
325
+
326
+ .wn-light .wn-config-title {
327
+ color: var(--wn-zinc-900);
328
+ }
329
+
330
+ .wn-light .wn-config-close {
331
+ color: var(--wn-zinc-500);
332
+ }
333
+
334
+ .wn-light .wn-config-close:hover {
335
+ background-color: var(--wn-overlay-light-5);
336
+ color: var(--wn-zinc-900);
337
+ }
338
+
339
+ .wn-light .wn-config-section-title {
340
+ border-bottom-color: var(--wn-zinc-200);
341
+ color: var(--wn-zinc-500);
342
+ }
343
+
344
+ .wn-light .wn-config-item-label {
345
+ color: var(--wn-zinc-400);
346
+ }
347
+
348
+ .wn-light .wn-config-item-value {
349
+ color: var(--wn-zinc-900);
350
+ }
351
+
352
+ .wn-light .wn-config-collection {
353
+ border-color: var(--wn-zinc-200);
354
+ background-color: var(--wn-zinc-50);
355
+ }
356
+
357
+ .wn-light .wn-config-collection-name {
358
+ color: var(--wn-zinc-900);
359
+ }
360
+
361
+ .wn-light .wn-config-collection-count {
362
+ background-color: var(--wn-zinc-200);
363
+ color: var(--wn-zinc-500);
364
+ }
365
+
366
+ .wn-light .wn-config-collection-detail {
367
+ color: var(--wn-zinc-500);
368
+ }
369
+
370
+ .wn-light .wn-config-collection-detail span {
371
+ color: var(--wn-zinc-400);
372
+ }
373
+
374
+ .wn-light .wn-config-help {
375
+ border-color: var(--wn-zinc-200);
376
+ background-color: var(--wn-zinc-50);
377
+ }
378
+
379
+ .wn-light .wn-config-help-title {
380
+ color: var(--wn-zinc-500);
381
+ }
382
+
383
+ .wn-light .wn-config-help-text {
384
+ color: var(--wn-zinc-500);
385
+ }
386
+
387
+ .wn-light .wn-config-help-code {
388
+ background-color: var(--wn-zinc-200);
389
+ color: var(--wn-zinc-900);
390
+ }
391
+
392
+ .wn-light .wn-config-help-pre {
393
+ border-color: var(--wn-zinc-200);
394
+ background-color: #fff;
395
+ color: var(--wn-zinc-500);
396
+ }
397
+
398
+ .wn-light .wn-config-empty {
399
+ color: var(--wn-zinc-500);
400
+ }
401
+
402
+ /* ============================================================================
403
+ CONFIG ACTIONS (Open in Editor buttons)
404
+ ============================================================================ */
405
+
406
+ .wn-config-actions {
407
+ display: flex;
408
+ gap: var(--wn-space-3);
409
+ margin-top: var(--wn-space-4);
410
+ }
411
+
412
+ .wn-config-btn {
413
+ display: inline-flex;
414
+ align-items: center;
415
+ gap: var(--wn-space-2);
416
+ padding: var(--wn-space-2) var(--wn-space-4);
417
+ border: none;
418
+ border-radius: var(--wn-radius-md);
419
+ font-size: var(--wn-font-sm);
420
+ font-weight: 500;
421
+ cursor: pointer;
422
+ transition:
423
+ background-color 0.15s,
424
+ color 0.15s;
425
+ }
426
+
427
+ .wn-config-btn--primary {
428
+ background-color: var(--wn-brand-500);
429
+ color: #fff;
430
+ border-top-right-radius: 0;
431
+ border-bottom-right-radius: 0;
432
+ }
433
+
434
+ .wn-config-btn--primary:hover {
435
+ background-color: var(--wn-brand-600);
436
+ }
437
+
438
+ .wn-config-btn--secondary {
439
+ background-color: transparent;
440
+ border: 1px solid var(--wn-zinc-700);
441
+ color: var(--wn-zinc-300);
442
+ }
443
+
444
+ .wn-config-btn--secondary:hover {
445
+ background-color: var(--wn-zinc-800);
446
+ color: var(--wn-zinc-100);
447
+ }
448
+
449
+ .wn-config-btn--dropdown {
450
+ padding: var(--wn-space-2) var(--wn-space-2);
451
+ background-color: var(--wn-brand-500);
452
+ color: #fff;
453
+ border-top-left-radius: 0;
454
+ border-bottom-left-radius: 0;
455
+ border-left: 1px solid var(--wn-brand-400);
456
+ }
457
+
458
+ .wn-config-btn--dropdown:hover {
459
+ background-color: var(--wn-brand-600);
460
+ }
461
+
462
+ /* Editor select container */
463
+ .wn-config-editor-select {
464
+ position: relative;
465
+ display: inline-flex;
466
+ }
467
+
468
+ /* Dropdown menu */
469
+ .wn-config-dropdown {
470
+ position: absolute;
471
+ top: 100%;
472
+ left: 0;
473
+ right: 0;
474
+ margin-top: var(--wn-space-1);
475
+ padding: var(--wn-space-2);
476
+ display: flex;
477
+ flex-direction: column;
478
+ gap: var(--wn-space-1);
479
+ border-radius: var(--wn-radius-md);
480
+ border: 1px solid var(--wn-zinc-700);
481
+ background-color: var(--wn-zinc-800);
482
+ box-shadow: var(--wn-shadow-lg);
483
+ z-index: 10;
484
+ }
485
+
486
+ .wn-config-dropdown-item {
487
+ display: block;
488
+ width: 100%;
489
+ padding: var(--wn-space-2) var(--wn-space-3);
490
+ border: none;
491
+ border-radius: var(--wn-radius-sm);
492
+ background-color: transparent;
493
+ color: var(--wn-zinc-300);
494
+ font-size: var(--wn-font-sm);
495
+ text-align: left;
496
+ cursor: pointer;
497
+ transition: background-color var(--wn-transition-fast);
498
+ }
499
+
500
+ .wn-config-dropdown-item:hover {
501
+ background-color: var(--wn-zinc-700);
502
+ }
503
+
504
+ .wn-config-dropdown-item--active {
505
+ background-color: var(--wn-brand-500);
506
+ color: #fff;
507
+ }
508
+
509
+ .wn-config-dropdown-item--active:hover {
510
+ background-color: var(--wn-brand-600);
511
+ }
512
+
513
+ /* ============================================================================
514
+ LIGHT MODE - CONFIG ACTIONS
515
+ ============================================================================ */
516
+
517
+ .wn-light .wn-config-btn--secondary {
518
+ border-color: var(--wn-zinc-300);
519
+ color: var(--wn-zinc-700);
520
+ }
521
+
522
+ .wn-light .wn-config-btn--secondary:hover {
523
+ background-color: var(--wn-zinc-100);
524
+ color: var(--wn-zinc-900);
525
+ }
526
+
527
+ .wn-light .wn-config-dropdown {
528
+ border-color: var(--wn-zinc-200);
529
+ background-color: #fff;
530
+ }
531
+
532
+ .wn-light .wn-config-dropdown-item {
533
+ color: var(--wn-zinc-700);
534
+ }
535
+
536
+ .wn-light .wn-config-dropdown-item:hover {
537
+ background-color: var(--wn-zinc-100);
538
+ color: var(--wn-zinc-900);
539
+ }
540
+
541
+ .wn-light .wn-config-dropdown-item--active {
542
+ background-color: var(--wn-brand-500);
543
+ color: #fff;
544
+ }
545
+
546
+ .wn-light .wn-config-dropdown-item--active:hover {
547
+ background-color: var(--wn-brand-600);
548
+ color: #fff;
549
+ }
550
+
551
+ .wn-light .wn-config-dropdown-item:hover {
552
+ background-color: var(--wn-zinc-100);
553
+ }