@consilioweb/payload-support 0.6.0 → 0.6.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 (84) hide show
  1. package/dist/{styles/theme.css → components/TicketConversation.css} +13 -326
  2. package/dist/components/TicketConversation.js +3004 -0
  3. package/dist/index.cjs +11 -11
  4. package/dist/index.js +11 -11
  5. package/dist/views.cjs +6184 -0
  6. package/dist/{views/TicketingSettingsView/TicketingSettings.module.scss → views.css} +66 -138
  7. package/dist/views.d.cts +30 -0
  8. package/dist/views.d.ts +30 -0
  9. package/dist/views.js +6165 -0
  10. package/package.json +14 -7
  11. package/src/plugin.ts +11 -11
  12. package/src/views.ts +17 -0
  13. package/dist/components/TicketConversation/components/AISummaryPanel.js +0 -76
  14. package/dist/components/TicketConversation/components/ActionPanels.js +0 -118
  15. package/dist/components/TicketConversation/components/ActivityLog.js +0 -23
  16. package/dist/components/TicketConversation/components/ClientBar.js +0 -42
  17. package/dist/components/TicketConversation/components/ClientHistory.js +0 -137
  18. package/dist/components/TicketConversation/components/CodeBlock.js +0 -152
  19. package/dist/components/TicketConversation/components/CodeBlockInserter.js +0 -155
  20. package/dist/components/TicketConversation/components/QuickActions.js +0 -65
  21. package/dist/components/TicketConversation/components/TicketHeader.js +0 -92
  22. package/dist/components/TicketConversation/components/TimeTrackingPanel.js +0 -133
  23. package/dist/components/TicketConversation/config.js +0 -41
  24. package/dist/components/TicketConversation/constants.js +0 -96
  25. package/dist/components/TicketConversation/context.js +0 -11
  26. package/dist/components/TicketConversation/hooks/useAI.js +0 -176
  27. package/dist/components/TicketConversation/hooks/useMessageActions.js +0 -135
  28. package/dist/components/TicketConversation/hooks/useReply.js +0 -187
  29. package/dist/components/TicketConversation/hooks/useTicketActions.js +0 -230
  30. package/dist/components/TicketConversation/hooks/useTimeTracking.js +0 -122
  31. package/dist/components/TicketConversation/hooks/useTranslation.js +0 -70
  32. package/dist/components/TicketConversation/index.js +0 -1123
  33. package/dist/components/TicketConversation/locales/en.json +0 -878
  34. package/dist/components/TicketConversation/locales/fr.json +0 -878
  35. package/dist/components/TicketConversation/types.js +0 -2
  36. package/dist/components/TicketConversation/utils.js +0 -25
  37. package/dist/styles/BillingView.module.scss +0 -311
  38. package/dist/styles/ChatView.module.scss +0 -438
  39. package/dist/styles/CommandPalette.module.scss +0 -160
  40. package/dist/styles/CrmView.module.scss +0 -554
  41. package/dist/styles/EmailTracking.module.scss +0 -238
  42. package/dist/styles/ImportConversation.module.scss +0 -267
  43. package/dist/styles/Layout.module.scss +0 -55
  44. package/dist/styles/Logs.module.scss +0 -164
  45. package/dist/styles/NewTicket.module.scss +0 -143
  46. package/dist/styles/PendingEmails.module.scss +0 -629
  47. package/dist/styles/SupportDashboard.module.scss +0 -649
  48. package/dist/styles/TicketDetail.module.scss +0 -1050
  49. package/dist/styles/TicketInbox.module.scss +0 -296
  50. package/dist/styles/TicketingSettings.module.scss +0 -358
  51. package/dist/styles/TimeDashboard.module.scss +0 -287
  52. package/dist/styles/_tokens.scss +0 -78
  53. package/dist/views/BillingView/client.js +0 -204
  54. package/dist/views/BillingView/index.js +0 -29
  55. package/dist/views/ChatView/client.js +0 -252
  56. package/dist/views/ChatView/index.js +0 -29
  57. package/dist/views/CrmView/client.js +0 -232
  58. package/dist/views/CrmView/index.js +0 -29
  59. package/dist/views/EmailTrackingView/client.js +0 -154
  60. package/dist/views/EmailTrackingView/index.js +0 -29
  61. package/dist/views/ImportConversationView/client.js +0 -204
  62. package/dist/views/ImportConversationView/index.js +0 -29
  63. package/dist/views/LogsView/client.js +0 -148
  64. package/dist/views/LogsView/index.js +0 -27
  65. package/dist/views/NewTicketView/client.js +0 -224
  66. package/dist/views/NewTicketView/index.js +0 -27
  67. package/dist/views/PendingEmailsView/client.js +0 -172
  68. package/dist/views/PendingEmailsView/index.js +0 -29
  69. package/dist/views/SupportDashboardView/client.js +0 -296
  70. package/dist/views/SupportDashboardView/index.js +0 -29
  71. package/dist/views/TicketDetailView/client.js +0 -844
  72. package/dist/views/TicketDetailView/index.js +0 -29
  73. package/dist/views/TicketInboxView/client.js +0 -294
  74. package/dist/views/TicketInboxView/index.js +0 -27
  75. package/dist/views/TicketingSettingsView/client.js +0 -728
  76. package/dist/views/TicketingSettingsView/index.js +0 -29
  77. package/dist/views/TimeDashboardView/client.js +0 -164
  78. package/dist/views/TimeDashboardView/index.js +0 -29
  79. package/dist/views/shared/AdminViewHeader.js +0 -67
  80. package/dist/views/shared/ErrorBoundary.js +0 -50
  81. package/dist/views/shared/Skeleton.js +0 -72
  82. package/dist/views/shared/adminTokens.js +0 -32
  83. package/dist/views/shared/config.js +0 -41
  84. package/dist/views/shared/index.js +0 -6
@@ -1,80 +1,33 @@
1
- /* ============================================
2
- * Support Module — Theme Variables
3
- * ============================================
4
- * Override these variables to customize the
5
- * support module's appearance.
6
- *
7
- * Usage: Import this file or copy the variables
8
- * into your project's global CSS.
9
- *
10
- * The module integrates with Payload CMS theme
11
- * variables (--theme-*) for seamless dark/light
12
- * mode support.
13
- * ============================================ */
14
-
1
+ /* src/styles/theme.css */
15
2
  :root {
16
-
17
- /* ------------------------------------------
18
- * 1. PRIMARY BRAND COLORS
19
- * ------------------------------------------
20
- * Main action color used for buttons, links,
21
- * active states, and focus rings.
22
- * ------------------------------------------ */
23
3
  --support-primary: #2563eb;
24
4
  --support-primary-hover: #1d4ed8;
25
5
  --support-primary-light: #dbeafe;
26
6
  --support-primary-text: #1e40af;
27
-
28
- /* ------------------------------------------
29
- * 2. SEMANTIC COLORS
30
- * ------------------------------------------
31
- * Contextual colors for success, warning,
32
- * error, and informational states.
33
- * ------------------------------------------ */
34
7
  --support-success: #16a34a;
35
8
  --support-success-light: #dcfce7;
36
9
  --support-success-text: #166534;
37
-
38
10
  --support-warning: #d97706;
39
11
  --support-warning-light: #fef3c7;
40
12
  --support-warning-text: #92400e;
41
-
42
13
  --support-error: #dc2626;
43
14
  --support-error-light: #fef2f2;
44
15
  --support-error-text: #991b1b;
45
-
46
16
  --support-info: #0891b2;
47
17
  --support-info-light: #ecfeff;
48
18
  --support-info-text: #155e75;
49
-
50
- /* ------------------------------------------
51
- * 3. TICKET STATUS COLORS
52
- * ------------------------------------------
53
- * Background + text pairs for each ticket
54
- * status badge.
55
- * ------------------------------------------ */
56
19
  --support-status-open-bg: #dbeafe;
57
20
  --support-status-open-text: #1e40af;
58
21
  --support-status-open-dot: #2563eb;
59
-
60
22
  --support-status-waiting-bg: #fef3c7;
61
23
  --support-status-waiting-text: #92400e;
62
24
  --support-status-waiting-dot: #d97706;
63
-
64
25
  --support-status-resolved-bg: #dcfce7;
65
26
  --support-status-resolved-text: #166534;
66
27
  --support-status-resolved-dot: #16a34a;
67
-
68
28
  --support-status-closed-bg: #e5e7eb;
69
29
  --support-status-closed-text: #374151;
70
30
  --support-status-closed-dot: #6b7280;
71
-
72
- /* ------------------------------------------
73
- * 4. PRIORITY COLORS
74
- * ------------------------------------------
75
- * Left-border or badge accent for ticket
76
- * priority levels.
77
- * ------------------------------------------ */
78
31
  --support-priority-urgent: #dc2626;
79
32
  --support-priority-urgent-bg: #fef2f2;
80
33
  --support-priority-high: #ea580c;
@@ -83,105 +36,60 @@
83
36
  --support-priority-normal-bg: transparent;
84
37
  --support-priority-low: #94a3b8;
85
38
  --support-priority-low-bg: transparent;
86
-
87
- /* ------------------------------------------
88
- * 5. SENTIMENT COLORS
89
- * ------------------------------------------
90
- * AI-detected client sentiment indicators.
91
- * ------------------------------------------ */
92
39
  --support-sentiment-frustrated: #dc2626;
93
40
  --support-sentiment-unhappy: #ea580c;
94
41
  --support-sentiment-urgent: #dc2626;
95
42
  --support-sentiment-neutral: #6b7280;
96
43
  --support-sentiment-satisfied: #16a34a;
97
-
98
- /* ------------------------------------------
99
- * 6. MESSAGE BUBBLES
100
- * ------------------------------------------
101
- * Background, border, and text colors for
102
- * each message type in the conversation.
103
- * ------------------------------------------ */
104
-
105
- /* Admin messages (agent replies) */
106
44
  --support-msg-admin-bg: #f8fafc;
107
45
  --support-msg-admin-border: #2563eb;
108
46
  --support-msg-admin-text: var(--theme-text, #1e293b);
109
-
110
- /* Client messages */
111
47
  --support-msg-client-bg: #fafafa;
112
48
  --support-msg-client-border: #e2e8f0;
113
49
  --support-msg-client-text: var(--theme-text, #1e293b);
114
-
115
- /* Inbound email messages */
116
50
  --support-msg-email-bg: #fffbeb;
117
51
  --support-msg-email-border: #ea580c;
118
52
  --support-msg-email-text: var(--theme-text, #1e293b);
119
-
120
- /* Internal notes (visible only to agents) */
121
53
  --support-msg-internal-bg: #fefce8;
122
54
  --support-msg-internal-border: #d97706;
123
55
  --support-msg-internal-text: var(--theme-text, #1e293b);
124
-
125
- /* System/automated messages */
126
56
  --support-msg-system-bg: #f1f5f9;
127
57
  --support-msg-system-border: #cbd5e1;
128
58
  --support-msg-system-text: #64748b;
129
-
130
- /* ------------------------------------------
131
- * 7. CATEGORY COLORS
132
- * ------------------------------------------
133
- * Feature flag category indicators used on
134
- * the settings page.
135
- * ------------------------------------------ */
136
59
  --support-cat-core: #2563eb;
137
60
  --support-cat-communication: #16a34a;
138
61
  --support-cat-productivity: #d97706;
139
62
  --support-cat-advanced: #7c3aed;
140
-
141
- /* ------------------------------------------
142
- * 8. PROJECT STATUS COLORS
143
- * ------------------------------------------
144
- * Displayed in client history sidebar for
145
- * associated projects.
146
- * ------------------------------------------ */
147
63
  --support-project-active-bg: #dcfce7;
148
64
  --support-project-active-text: #166534;
149
65
  --support-project-paused-bg: #fef3c7;
150
66
  --support-project-paused-text: #92400e;
151
67
  --support-project-completed-bg: #e5e7eb;
152
68
  --support-project-completed-text: #374151;
153
-
154
- /* ------------------------------------------
155
- * 9. TYPOGRAPHY
156
- * ------------------------------------------
157
- * Font families, sizes, weights, and line
158
- * heights used across the module.
159
- * ------------------------------------------ */
160
- --support-font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
161
- --support-font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
162
-
69
+ --support-font-family:
70
+ -apple-system,
71
+ BlinkMacSystemFont,
72
+ "Inter",
73
+ system-ui,
74
+ sans-serif;
75
+ --support-font-mono:
76
+ "SF Mono",
77
+ "Fira Code",
78
+ "Cascadia Code",
79
+ monospace;
163
80
  --support-font-size-xs: 10px;
164
81
  --support-font-size-sm: 11px;
165
82
  --support-font-size-base: 13px;
166
83
  --support-font-size-md: 14px;
167
84
  --support-font-size-lg: 16px;
168
85
  --support-font-size-xl: 22px;
169
-
170
86
  --support-font-weight-normal: 400;
171
87
  --support-font-weight-medium: 500;
172
88
  --support-font-weight-semibold: 600;
173
89
  --support-font-weight-bold: 700;
174
-
175
90
  --support-line-height-tight: 1.3;
176
91
  --support-line-height-base: 1.5;
177
92
  --support-line-height-relaxed: 1.6;
178
-
179
- /* ------------------------------------------
180
- * 10. SPACING
181
- * ------------------------------------------
182
- * Consistent spacing scale used for padding,
183
- * margins, and gaps.
184
- * ------------------------------------------ */
185
93
  --support-space-xs: 4px;
186
94
  --support-space-sm: 6px;
187
95
  --support-space-md: 8px;
@@ -190,13 +98,6 @@
190
98
  --support-space-xl: 20px;
191
99
  --support-space-2xl: 24px;
192
100
  --support-space-3xl: 32px;
193
-
194
- /* ------------------------------------------
195
- * 11. BORDER RADIUS
196
- * ------------------------------------------
197
- * Corner rounding for cards, buttons,
198
- * badges, and inputs.
199
- * ------------------------------------------ */
200
101
  --support-radius-xs: 4px;
201
102
  --support-radius-sm: 6px;
202
103
  --support-radius: 8px;
@@ -204,37 +105,17 @@
204
105
  --support-radius-xl: 16px;
205
106
  --support-radius-pill: 9999px;
206
107
  --support-radius-circle: 50%;
207
-
208
- /* ------------------------------------------
209
- * 12. BORDERS
210
- * ------------------------------------------
211
- * Default border color and widths used
212
- * throughout the module.
213
- * ------------------------------------------ */
214
108
  --support-border-color: #e2e8f0;
215
109
  --support-border-light: #f1f5f9;
216
110
  --support-border-width: 1px;
217
111
  --support-border-width-thick: 2px;
218
112
  --support-border-width-accent: 3px;
219
-
220
- /* ------------------------------------------
221
- * 13. BACKGROUNDS
222
- * ------------------------------------------
223
- * Surface, card, and page-level backgrounds.
224
- * Integrates with Payload CMS theme vars.
225
- * ------------------------------------------ */
226
113
  --support-bg-page: var(--theme-elevation-50, #f8fafc);
227
114
  --support-bg-card: var(--theme-elevation-100, #f1f5f9);
228
115
  --support-bg-surface: var(--theme-elevation-0, #ffffff);
229
116
  --support-bg-hover: var(--theme-elevation-150, #e2e8f0);
230
117
  --support-bg-active: var(--theme-elevation-200, #cbd5e1);
231
118
  --support-bg-overlay: rgba(0, 0, 0, 0.5);
232
-
233
- /* ------------------------------------------
234
- * 14. TEXT COLORS
235
- * ------------------------------------------
236
- * Primary, secondary, and muted text levels.
237
- * ------------------------------------------ */
238
119
  --support-text-primary: var(--theme-text, #1e293b);
239
120
  --support-text-secondary: #6b7280;
240
121
  --support-text-muted: #9ca3af;
@@ -243,13 +124,6 @@
243
124
  --support-text-link-hover: #1d4ed8;
244
125
  --support-text-on-primary: #ffffff;
245
126
  --support-text-on-dark: #f8fafc;
246
-
247
- /* ------------------------------------------
248
- * 15. SHADOWS
249
- * ------------------------------------------
250
- * Elevation shadows for cards, modals,
251
- * dropdowns, and tooltips.
252
- * ------------------------------------------ */
253
127
  --support-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
254
128
  --support-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
255
129
  --support-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
@@ -257,22 +131,10 @@
257
131
  --support-shadow-focus: 0 0 0 2px rgba(37, 99, 235, 0.15);
258
132
  --support-shadow-error-focus: 0 0 0 2px rgba(220, 38, 38, 0.15);
259
133
  --support-shadow-toggle: 0 1px 3px rgba(0, 0, 0, 0.15);
260
-
261
- /* ------------------------------------------
262
- * 16. TRANSITIONS & ANIMATIONS
263
- * ------------------------------------------
264
- * Duration and easing for interactive states.
265
- * ------------------------------------------ */
266
134
  --support-transition-fast: 100ms ease;
267
135
  --support-transition-base: 150ms ease;
268
136
  --support-transition-slow: 300ms ease;
269
137
  --support-transition-spring: 200ms cubic-bezier(0.4, 0, 0.2, 1);
270
-
271
- /* ------------------------------------------
272
- * 17. Z-INDEX LAYERS
273
- * ------------------------------------------
274
- * Stacking order for overlapping elements.
275
- * ------------------------------------------ */
276
138
  --support-z-base: 1;
277
139
  --support-z-sticky: 10;
278
140
  --support-z-dropdown: 100;
@@ -280,25 +142,11 @@
280
142
  --support-z-modal: 510;
281
143
  --support-z-toast: 600;
282
144
  --support-z-tooltip: 700;
283
-
284
- /* ------------------------------------------
285
- * 18. LAYOUT
286
- * ------------------------------------------
287
- * Page structure: sidebar width, max-width,
288
- * header height, breakpoints.
289
- * ------------------------------------------ */
290
145
  --support-sidebar-width: 320px;
291
146
  --support-content-max-width: 800px;
292
147
  --support-header-height: 56px;
293
148
  --support-reply-box-min-height: 120px;
294
149
  --support-reply-box-max-height: 400px;
295
-
296
- /* ------------------------------------------
297
- * 19. BUTTONS
298
- * ------------------------------------------
299
- * Padding, font-size, and border styles for
300
- * button size variants.
301
- * ------------------------------------------ */
302
150
  --support-btn-padding-sm: 6px 12px;
303
151
  --support-btn-padding-md: 7px 14px;
304
152
  --support-btn-padding-lg: 10px 18px;
@@ -307,13 +155,6 @@
307
155
  --support-btn-font-lg: 14px;
308
156
  --support-btn-radius: var(--support-radius-sm);
309
157
  --support-btn-disabled-opacity: 0.5;
310
-
311
- /* ------------------------------------------
312
- * 20. INPUTS & FORM CONTROLS
313
- * ------------------------------------------
314
- * Styling for text inputs, textareas,
315
- * selects, and other form elements.
316
- * ------------------------------------------ */
317
158
  --support-input-padding: 8px 12px;
318
159
  --support-input-radius: var(--support-radius-sm);
319
160
  --support-input-border: var(--support-border-color);
@@ -324,24 +165,10 @@
324
165
  --support-input-focus-shadow: var(--support-shadow-focus);
325
166
  --support-input-disabled-bg: var(--support-bg-card);
326
167
  --support-input-disabled-opacity: 0.6;
327
-
328
- /* ------------------------------------------
329
- * 21. BADGES & TAGS
330
- * ------------------------------------------
331
- * Small inline labels used for statuses,
332
- * categories, and metadata.
333
- * ------------------------------------------ */
334
168
  --support-badge-padding: 2px 8px;
335
169
  --support-badge-radius: var(--support-radius-xs);
336
170
  --support-badge-font-size: 11px;
337
171
  --support-badge-font-weight: 600;
338
-
339
- /* ------------------------------------------
340
- * 22. TOGGLE SWITCH
341
- * ------------------------------------------
342
- * Custom toggle control used in feature
343
- * flags and boolean settings.
344
- * ------------------------------------------ */
345
172
  --support-toggle-width: 40px;
346
173
  --support-toggle-height: 22px;
347
174
  --support-toggle-knob-size: 18px;
@@ -350,86 +177,38 @@
350
177
  --support-toggle-on-bg: var(--support-primary);
351
178
  --support-toggle-knob-color: #ffffff;
352
179
  --support-toggle-knob-shadow: var(--support-shadow-toggle);
353
-
354
- /* ------------------------------------------
355
- * 23. TIME TRACKING
356
- * ------------------------------------------
357
- * Timer display, entries table, and related
358
- * indicators.
359
- * ------------------------------------------ */
360
180
  --support-timer-running-bg: #fef2f2;
361
181
  --support-timer-running-border: #fca5a5;
362
182
  --support-timer-running-dot: #dc2626;
363
183
  --support-timer-idle-bg: var(--support-bg-card);
364
184
  --support-timer-idle-border: var(--support-border-color);
365
-
366
- /* ------------------------------------------
367
- * 25. SATISFACTION SURVEY
368
- * ------------------------------------------
369
- * CSAT rating colors (1-5 stars or emoji).
370
- * ------------------------------------------ */
371
185
  --support-csat-1: #dc2626;
372
186
  --support-csat-2: #ea580c;
373
187
  --support-csat-3: #d97706;
374
188
  --support-csat-4: #16a34a;
375
189
  --support-csat-5: #059669;
376
190
  --support-csat-bg: #f0fdf4;
377
-
378
- /* ------------------------------------------
379
- * 26. ACTIVITY LOG
380
- * ------------------------------------------
381
- * Timeline dots, connector lines, and
382
- * entry backgrounds.
383
- * ------------------------------------------ */
384
191
  --support-activity-dot-size: 8px;
385
192
  --support-activity-line-color: var(--support-border-color);
386
193
  --support-activity-dot-default: var(--support-text-muted);
387
194
  --support-activity-dot-status: var(--support-primary);
388
195
  --support-activity-dot-assign: #7c3aed;
389
196
  --support-activity-dot-merge: #0891b2;
390
-
391
- /* ------------------------------------------
392
- * 27. NOTIFICATION INDICATORS
393
- * ------------------------------------------
394
- * Unread counts, typing indicator, and
395
- * real-time notification badges.
396
- * ------------------------------------------ */
397
197
  --support-notification-dot: #dc2626;
398
198
  --support-notification-dot-size: 8px;
399
199
  --support-typing-dot-color: #94a3b8;
400
200
  --support-typing-dot-size: 6px;
401
201
  --support-unread-bg: #dc2626;
402
202
  --support-unread-text: #ffffff;
403
-
404
- /* ------------------------------------------
405
- * 28. SEARCH & FILTERS
406
- * ------------------------------------------
407
- * Search bar, filter dropdowns, and
408
- * highlighted match styles.
409
- * ------------------------------------------ */
410
203
  --support-search-bg: var(--support-bg-surface);
411
204
  --support-search-border: var(--support-border-color);
412
205
  --support-search-focus-border: var(--support-primary);
413
206
  --support-search-highlight-bg: #fef08a;
414
207
  --support-search-highlight-text: #1e293b;
415
-
416
- /* ------------------------------------------
417
- * 29. SCROLLBAR
418
- * ------------------------------------------
419
- * Custom scrollbar styling for conversation
420
- * panels and sidebars.
421
- * ------------------------------------------ */
422
208
  --support-scrollbar-width: 6px;
423
209
  --support-scrollbar-track: transparent;
424
210
  --support-scrollbar-thumb: #cbd5e1;
425
211
  --support-scrollbar-thumb-hover: #94a3b8;
426
-
427
- /* ------------------------------------------
428
- * 30. RICH TEXT EDITOR
429
- * ------------------------------------------
430
- * Editor area, toolbar, and content styling
431
- * within the reply box.
432
- * ------------------------------------------ */
433
212
  --support-rte-bg: var(--support-bg-surface);
434
213
  --support-rte-border: var(--support-border-color);
435
214
  --support-rte-toolbar-bg: var(--support-bg-card);
@@ -437,56 +216,22 @@
437
216
  --support-rte-blockquote-border: var(--support-primary);
438
217
  --support-rte-blockquote-bg: var(--support-bg-page);
439
218
  --support-rte-link-color: var(--support-primary);
440
-
441
- /* ------------------------------------------
442
- * 31. SNOOZE INDICATOR
443
- * ------------------------------------------
444
- * Visual cues when a ticket is snoozed
445
- * (hidden temporarily).
446
- * ------------------------------------------ */
447
219
  --support-snooze-bg: #eff6ff;
448
220
  --support-snooze-border: #93c5fd;
449
221
  --support-snooze-text: #1d4ed8;
450
222
  --support-snooze-icon: #3b82f6;
451
-
452
- /* ------------------------------------------
453
- * 32. MERGE INDICATOR
454
- * ------------------------------------------
455
- * Visual treatment for merged tickets
456
- * and their source references.
457
- * ------------------------------------------ */
458
223
  --support-merge-bg: #ecfeff;
459
224
  --support-merge-border: #06b6d4;
460
225
  --support-merge-text: #155e75;
461
-
462
- /* ------------------------------------------
463
- * 33. SCHEDULED REPLY
464
- * ------------------------------------------
465
- * Indicator for messages scheduled to be
466
- * sent at a future date/time.
467
- * ------------------------------------------ */
468
226
  --support-scheduled-bg: #f5f3ff;
469
227
  --support-scheduled-border: #a78bfa;
470
228
  --support-scheduled-text: #5b21b6;
471
229
  --support-scheduled-icon: #7c3aed;
472
-
473
- /* ------------------------------------------
474
- * 34. EMAIL TRACKING
475
- * ------------------------------------------
476
- * Delivery and open status indicators for
477
- * outbound email notifications.
478
- * ------------------------------------------ */
479
230
  --support-email-sent: #2563eb;
480
231
  --support-email-delivered: #16a34a;
481
232
  --support-email-opened: #059669;
482
233
  --support-email-bounced: #dc2626;
483
234
  --support-email-pending: #9ca3af;
484
-
485
- /* ------------------------------------------
486
- * 35. CANNED RESPONSE PICKER
487
- * ------------------------------------------
488
- * Quick reply template selector dropdown.
489
- * ------------------------------------------ */
490
235
  --support-canned-bg: var(--support-bg-surface);
491
236
  --support-canned-hover-bg: var(--support-bg-card);
492
237
  --support-canned-border: var(--support-border-color);
@@ -494,140 +239,82 @@
494
239
  --support-canned-shortcut-bg: var(--support-bg-card);
495
240
  --support-canned-shortcut-text: var(--support-text-secondary);
496
241
  }
497
-
498
-
499
- /* ============================================
500
- * DARK MODE OVERRIDES
501
- * ============================================
502
- * Applied when Payload CMS is in dark mode.
503
- * Uses [data-theme="dark"] selector to match
504
- * Payload's native theme switching.
505
- * ============================================ */
506
-
507
- [data-theme="dark"] {
508
-
509
- /* Primary */
242
+ [data-theme=dark] {
510
243
  --support-primary: #3b82f6;
511
244
  --support-primary-hover: #60a5fa;
512
245
  --support-primary-light: #1e3a5f;
513
246
  --support-primary-text: #93c5fd;
514
-
515
- /* Semantic */
516
247
  --support-success: #22c55e;
517
248
  --support-success-light: #14532d;
518
249
  --support-success-text: #86efac;
519
-
520
250
  --support-warning: #eab308;
521
251
  --support-warning-light: #422006;
522
252
  --support-warning-text: #fde047;
523
-
524
253
  --support-error: #ef4444;
525
254
  --support-error-light: #450a0a;
526
255
  --support-error-text: #fca5a5;
527
-
528
256
  --support-info: #22d3ee;
529
257
  --support-info-light: #083344;
530
258
  --support-info-text: #67e8f9;
531
-
532
- /* Ticket statuses */
533
259
  --support-status-open-bg: #1e3a5f;
534
260
  --support-status-open-text: #93c5fd;
535
261
  --support-status-open-dot: #3b82f6;
536
-
537
262
  --support-status-waiting-bg: #422006;
538
263
  --support-status-waiting-text: #fde047;
539
264
  --support-status-waiting-dot: #eab308;
540
-
541
265
  --support-status-resolved-bg: #14532d;
542
266
  --support-status-resolved-text: #86efac;
543
267
  --support-status-resolved-dot: #22c55e;
544
-
545
268
  --support-status-closed-bg: #374151;
546
269
  --support-status-closed-text: #d1d5db;
547
270
  --support-status-closed-dot: #9ca3af;
548
-
549
- /* Priority */
550
271
  --support-priority-urgent: #ef4444;
551
272
  --support-priority-urgent-bg: #450a0a;
552
273
  --support-priority-high: #f97316;
553
274
  --support-priority-high-bg: #431407;
554
-
555
- /* Message bubbles */
556
275
  --support-msg-admin-bg: #1e293b;
557
276
  --support-msg-admin-border: #3b82f6;
558
-
559
277
  --support-msg-client-bg: #0f172a;
560
278
  --support-msg-client-border: #334155;
561
-
562
279
  --support-msg-email-bg: #1c1917;
563
280
  --support-msg-email-border: #ea580c;
564
-
565
281
  --support-msg-internal-bg: #1a1a0e;
566
282
  --support-msg-internal-border: #eab308;
567
-
568
283
  --support-msg-system-bg: #1e293b;
569
284
  --support-msg-system-border: #475569;
570
285
  --support-msg-system-text: #94a3b8;
571
-
572
- /* Backgrounds */
573
286
  --support-bg-overlay: rgba(0, 0, 0, 0.7);
574
-
575
- /* Text */
576
287
  --support-text-secondary: #94a3b8;
577
288
  --support-text-muted: #64748b;
578
289
  --support-text-disabled: #475569;
579
290
  --support-text-link: #60a5fa;
580
291
  --support-text-link-hover: #93c5fd;
581
-
582
- /* Borders */
583
292
  --support-border-color: #334155;
584
293
  --support-border-light: #1e293b;
585
-
586
- /* Shadows (reduced in dark mode) */
587
294
  --support-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
588
295
  --support-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
589
296
  --support-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
590
297
  --support-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
591
298
  --support-shadow-focus: 0 0 0 2px rgba(59, 130, 246, 0.25);
592
299
  --support-shadow-error-focus: 0 0 0 2px rgba(239, 68, 68, 0.25);
593
-
594
- /* Timer */
595
300
  --support-timer-running-bg: #450a0a;
596
301
  --support-timer-running-border: #7f1d1d;
597
-
598
- /* Search */
599
302
  --support-search-highlight-bg: #854d0e;
600
303
  --support-search-highlight-text: #fef08a;
601
-
602
- /* Scrollbar */
603
304
  --support-scrollbar-thumb: #475569;
604
305
  --support-scrollbar-thumb-hover: #64748b;
605
-
606
- /* Snooze */
607
306
  --support-snooze-bg: #1e3a5f;
608
307
  --support-snooze-border: #1d4ed8;
609
308
  --support-snooze-text: #93c5fd;
610
-
611
- /* Merge */
612
309
  --support-merge-bg: #083344;
613
310
  --support-merge-border: #0891b2;
614
311
  --support-merge-text: #67e8f9;
615
-
616
- /* Scheduled */
617
312
  --support-scheduled-bg: #2e1065;
618
313
  --support-scheduled-border: #7c3aed;
619
314
  --support-scheduled-text: #c4b5fd;
620
-
621
- /* Email tracking */
622
315
  --support-email-pending: #64748b;
623
-
624
- /* CSAT */
625
316
  --support-csat-bg: #14532d;
626
-
627
- /* Activity log */
628
317
  --support-activity-line-color: #334155;
629
-
630
- /* Notification */
631
318
  --support-notification-dot: #ef4444;
632
319
  --support-typing-dot-color: #64748b;
633
320
  }