@consilioweb/payload-support 0.6.2 → 0.6.3

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 (65) hide show
  1. package/dist/components/TicketConversation/components/AISummaryPanel.cjs +77 -0
  2. package/dist/components/TicketConversation/components/AISummaryPanel.js +76 -0
  3. package/dist/components/TicketConversation/components/ActionPanels.cjs +121 -0
  4. package/dist/components/TicketConversation/components/ActionPanels.js +118 -0
  5. package/dist/components/TicketConversation/components/ActivityLog.cjs +24 -0
  6. package/dist/components/TicketConversation/components/ActivityLog.js +23 -0
  7. package/dist/components/TicketConversation/components/ClientBar.cjs +43 -0
  8. package/dist/components/TicketConversation/components/ClientBar.js +42 -0
  9. package/dist/components/TicketConversation/components/ClientHistory.cjs +138 -0
  10. package/dist/components/TicketConversation/components/ClientHistory.js +137 -0
  11. package/dist/components/TicketConversation/components/CodeBlock.cjs +154 -0
  12. package/dist/components/TicketConversation/components/CodeBlock.js +152 -0
  13. package/dist/components/TicketConversation/components/CodeBlockInserter.cjs +156 -0
  14. package/dist/components/TicketConversation/components/CodeBlockInserter.js +155 -0
  15. package/dist/components/TicketConversation/components/QuickActions.cjs +66 -0
  16. package/dist/components/TicketConversation/components/QuickActions.js +65 -0
  17. package/dist/components/TicketConversation/components/TicketHeader.cjs +93 -0
  18. package/dist/components/TicketConversation/components/TicketHeader.js +92 -0
  19. package/dist/components/TicketConversation/components/TimeTrackingPanel.cjs +134 -0
  20. package/dist/components/TicketConversation/components/TimeTrackingPanel.js +133 -0
  21. package/dist/components/TicketConversation/config.cjs +44 -0
  22. package/dist/components/TicketConversation/config.js +41 -0
  23. package/dist/components/TicketConversation/constants.cjs +100 -0
  24. package/dist/components/TicketConversation/constants.js +96 -0
  25. package/dist/components/TicketConversation/context.cjs +13 -0
  26. package/dist/components/TicketConversation/context.js +11 -0
  27. package/dist/components/TicketConversation/hooks/useAI.cjs +177 -0
  28. package/dist/components/TicketConversation/hooks/useAI.js +176 -0
  29. package/dist/components/TicketConversation/hooks/useMessageActions.cjs +136 -0
  30. package/dist/components/TicketConversation/hooks/useMessageActions.js +135 -0
  31. package/dist/components/TicketConversation/hooks/useReply.cjs +188 -0
  32. package/dist/components/TicketConversation/hooks/useReply.js +187 -0
  33. package/dist/components/TicketConversation/hooks/useTicketActions.cjs +231 -0
  34. package/dist/components/TicketConversation/hooks/useTicketActions.js +230 -0
  35. package/dist/components/TicketConversation/hooks/useTimeTracking.cjs +123 -0
  36. package/dist/components/TicketConversation/hooks/useTimeTracking.js +122 -0
  37. package/dist/components/TicketConversation/hooks/useTranslation.cjs +78 -0
  38. package/dist/components/TicketConversation/hooks/useTranslation.js +70 -0
  39. package/dist/components/TicketConversation/index.cjs +1128 -0
  40. package/dist/components/TicketConversation/index.js +1123 -0
  41. package/dist/components/TicketConversation/locales/en.json +878 -0
  42. package/dist/components/TicketConversation/locales/fr.json +878 -0
  43. package/dist/components/TicketConversation/types.cjs +2 -0
  44. package/dist/components/TicketConversation/types.js +2 -0
  45. package/dist/components/TicketConversation/utils.cjs +27 -0
  46. package/dist/components/TicketConversation/utils.js +25 -0
  47. package/dist/styles/BillingView.module.scss +311 -0
  48. package/dist/styles/ChatView.module.scss +438 -0
  49. package/dist/styles/CommandPalette.module.scss +160 -0
  50. package/dist/styles/CrmView.module.scss +554 -0
  51. package/dist/styles/EmailTracking.module.scss +238 -0
  52. package/dist/styles/ImportConversation.module.scss +267 -0
  53. package/dist/styles/Layout.module.scss +55 -0
  54. package/dist/styles/Logs.module.scss +164 -0
  55. package/dist/styles/NewTicket.module.scss +143 -0
  56. package/dist/styles/PendingEmails.module.scss +629 -0
  57. package/dist/styles/SupportDashboard.module.scss +649 -0
  58. package/dist/styles/TicketDetail.module.scss +1050 -0
  59. package/dist/styles/TicketInbox.module.scss +296 -0
  60. package/dist/styles/TicketingSettings.module.scss +358 -0
  61. package/dist/styles/TimeDashboard.module.scss +287 -0
  62. package/dist/styles/_tokens.scss +78 -0
  63. package/dist/{components/TicketConversation.css → styles/theme.css} +326 -13
  64. package/package.json +2 -2
  65. package/dist/components/TicketConversation.js +0 -3004
@@ -0,0 +1,287 @@
1
+ // TimeDashboard — Clean admin aesthetic, 2026
2
+
3
+ .page {
4
+ max-width: 1920px;
5
+ margin: 0 auto;
6
+ padding: 20px 24px 60px;
7
+ font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
8
+ }
9
+
10
+ // Header
11
+ .header {
12
+ display: flex;
13
+ align-items: flex-start;
14
+ justify-content: space-between;
15
+ margin-bottom: 20px;
16
+ }
17
+
18
+ .headerLeft {
19
+ display: flex;
20
+ flex-direction: column;
21
+ }
22
+
23
+ .title {
24
+ font-size: 24px;
25
+ font-weight: 800;
26
+ color: var(--theme-text);
27
+ margin: 0;
28
+ }
29
+
30
+ .subtitle {
31
+ color: var(--theme-elevation-500);
32
+ margin: 4px 0 0;
33
+ font-size: 14px;
34
+ }
35
+
36
+ .newEntryBtn {
37
+ padding: 8px 18px;
38
+ border-radius: 8px;
39
+ border: 1px solid var(--theme-elevation-200);
40
+ background: #2563eb;
41
+ color: #fff;
42
+ font-size: 13px;
43
+ font-weight: 600;
44
+ cursor: pointer;
45
+ text-decoration: none;
46
+ white-space: nowrap;
47
+ transition: opacity 100ms;
48
+
49
+ &:hover { opacity: 0.9; }
50
+ }
51
+
52
+ // Filters
53
+ .filters {
54
+ padding: 14px;
55
+ border: 1px solid var(--theme-elevation-300);
56
+ border-radius: 8px;
57
+ background: var(--theme-elevation-100);
58
+ margin-bottom: 16px;
59
+ }
60
+
61
+ .quickPeriod {
62
+ display: flex;
63
+ gap: 8px;
64
+ margin-bottom: 10px;
65
+ flex-wrap: wrap;
66
+ }
67
+
68
+ .filterRow {
69
+ display: flex;
70
+ gap: 12px;
71
+ align-items: flex-end;
72
+ flex-wrap: wrap;
73
+ }
74
+
75
+ .fieldGroup {
76
+ display: flex;
77
+ flex-direction: column;
78
+ }
79
+
80
+ .label {
81
+ font-size: 11px;
82
+ font-weight: 700;
83
+ color: var(--theme-elevation-500);
84
+ margin-bottom: 3px;
85
+ }
86
+
87
+ .input {
88
+ padding: 6px 10px;
89
+ border-radius: 6px;
90
+ border: 1px solid var(--theme-elevation-300);
91
+ font-size: 13px;
92
+ background: var(--theme-elevation-100);
93
+ color: var(--theme-text);
94
+ transition: border-color 150ms, box-shadow 150ms;
95
+
96
+ &:focus {
97
+ outline: none;
98
+ border-color: #2563eb;
99
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
100
+ }
101
+ }
102
+
103
+ .select {
104
+ composes: input;
105
+ }
106
+
107
+ // Buttons
108
+ .btn {
109
+ padding: 6px 12px;
110
+ border-radius: 6px;
111
+ border: 1px solid var(--theme-elevation-300);
112
+ color: #fff;
113
+ font-weight: 600;
114
+ font-size: 12px;
115
+ cursor: pointer;
116
+ white-space: nowrap;
117
+ transition: opacity 100ms;
118
+
119
+ &:hover { opacity: 0.9; }
120
+ }
121
+
122
+ .btnPrimary { composes: btn; background: #2563eb; }
123
+ .btnSecondary { composes: btn; background: var(--theme-elevation-100); color: var(--theme-text); }
124
+ .btnAmber { composes: btn; background: #d97706; }
125
+
126
+ // KPI cards
127
+ .kpis {
128
+ display: flex;
129
+ gap: 12px;
130
+ margin-bottom: 16px;
131
+ flex-wrap: wrap;
132
+ }
133
+
134
+ .kpiCard {
135
+ padding: 10px 16px;
136
+ border-radius: 8px;
137
+ background: var(--theme-elevation-100);
138
+ border: 1px solid var(--theme-elevation-300);
139
+ }
140
+
141
+ .kpiCardPrimary { composes: kpiCard; border-color: #2563eb; }
142
+ .kpiCardAmber { composes: kpiCard; border-color: #d97706; }
143
+ .kpiCardOrange { composes: kpiCard; border-color: #ea580c; }
144
+
145
+ .kpiLabel {
146
+ font-size: 10px;
147
+ font-weight: 700;
148
+ text-transform: uppercase;
149
+ color: var(--theme-elevation-500);
150
+ }
151
+
152
+ .kpiValue {
153
+ font-size: 24px;
154
+ font-weight: 600;
155
+ }
156
+
157
+ .kpiPrimary { composes: kpiValue; color: #2563eb; }
158
+ .kpiAmber { composes: kpiValue; color: #d97706; }
159
+ .kpiOrange { composes: kpiValue; color: #ea580c; }
160
+
161
+ // Chart
162
+ .chartWrap {
163
+ border: 1px solid #2563eb;
164
+ border-radius: 10px;
165
+ overflow: hidden;
166
+ margin-bottom: 16px;
167
+ }
168
+
169
+ .chartHeader {
170
+ padding: 8px 14px;
171
+ font-size: 12px;
172
+ font-weight: 600;
173
+ text-transform: uppercase;
174
+ background: var(--theme-elevation-50);
175
+ border-bottom: 1px solid var(--theme-elevation-300);
176
+ color: var(--theme-text);
177
+ }
178
+
179
+ .chartBars {
180
+ padding: 14px;
181
+ display: flex;
182
+ align-items: flex-end;
183
+ gap: 2px;
184
+ height: 80px;
185
+ }
186
+
187
+ .chartBar {
188
+ flex: 1;
189
+ background: #2563eb;
190
+ border-radius: 2px 2px 0 0;
191
+ min-width: 4px;
192
+ transition: opacity 150ms;
193
+
194
+ &:hover { opacity: 0.8; }
195
+ }
196
+
197
+ // Empty state
198
+ .empty {
199
+ padding: 40px;
200
+ text-align: center;
201
+ border: 1px solid var(--theme-elevation-300);
202
+ border-radius: 8px;
203
+ background: var(--theme-elevation-100);
204
+ color: var(--theme-elevation-500);
205
+ font-size: 14px;
206
+ }
207
+
208
+ // Group cards
209
+ .groupCard {
210
+ border: 1px solid var(--theme-elevation-300);
211
+ border-radius: 8px;
212
+ overflow: hidden;
213
+ margin-bottom: 10px;
214
+ }
215
+
216
+ .groupHeader {
217
+ display: flex;
218
+ justify-content: space-between;
219
+ align-items: center;
220
+ padding: 8px 14px;
221
+ background: var(--theme-elevation-50);
222
+ border-bottom: 1px solid var(--theme-elevation-300);
223
+ }
224
+
225
+ .groupLabel {
226
+ font-weight: 600;
227
+ font-size: 13px;
228
+ color: var(--theme-text);
229
+ }
230
+
231
+ .groupTotal {
232
+ font-weight: 600;
233
+ font-size: 14px;
234
+ color: #2563eb;
235
+ }
236
+
237
+ // Entry table
238
+ .table {
239
+ width: 100%;
240
+ border-collapse: collapse;
241
+ font-size: 13px;
242
+ }
243
+
244
+ .entryRow {
245
+ border-bottom: 1px solid var(--theme-elevation-200);
246
+
247
+ &:last-child { border-bottom: none; }
248
+ }
249
+
250
+ .tdTicket {
251
+ padding: 6px 14px;
252
+ font-weight: 700;
253
+ font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
254
+ font-size: 11px;
255
+ width: 80px;
256
+ }
257
+
258
+ .tdSubject {
259
+ padding: 6px 8px;
260
+ color: var(--theme-elevation-500);
261
+ font-size: 12px;
262
+ }
263
+
264
+ .tdDescription {
265
+ padding: 6px 8px;
266
+ color: var(--theme-elevation-500);
267
+ font-size: 12px;
268
+ }
269
+
270
+ .tdDuration {
271
+ padding: 6px 14px;
272
+ text-align: right;
273
+ font-weight: 600;
274
+ color: #2563eb;
275
+ }
276
+
277
+ .ticketLink {
278
+ color: var(--theme-text);
279
+ text-decoration: underline;
280
+
281
+ &:hover { color: #2563eb; }
282
+ }
283
+
284
+ // Loading
285
+ .loading {
286
+ padding: 40px;
287
+ }
@@ -0,0 +1,78 @@
1
+ // Design tokens — based on Payload CMS CSS variables
2
+ $text: var(--theme-text);
3
+ $text-secondary: var(--theme-elevation-500);
4
+ $text-muted: var(--theme-elevation-400);
5
+ $bg: var(--theme-elevation-50);
6
+ $bg-card: var(--theme-elevation-100);
7
+ $bg-surface: var(--theme-elevation-0);
8
+ $border: var(--theme-elevation-300);
9
+ $border-light: var(--theme-elevation-200);
10
+ $radius: 8px;
11
+ $radius-sm: 6px;
12
+ $radius-lg: 12px;
13
+ $transition: 150ms ease;
14
+
15
+ // Semantic colors
16
+ $blue: #2563eb;
17
+ $green: #16a34a;
18
+ $amber: #d97706;
19
+ $orange: #ea580c;
20
+ $red: #dc2626;
21
+ $purple: #7c3aed;
22
+ $cyan: #0891b2;
23
+
24
+ // Mixins
25
+ @mixin btn($bg-color: $blue) {
26
+ padding: 7px 14px;
27
+ border-radius: $radius-sm;
28
+ border: 1px solid $border;
29
+ background: $bg-color;
30
+ color: #fff;
31
+ font-weight: 600;
32
+ font-size: 13px;
33
+ cursor: pointer;
34
+ transition: opacity $transition;
35
+ white-space: nowrap;
36
+ &:hover { opacity: 0.85; }
37
+ &:disabled { opacity: 0.45; cursor: not-allowed; }
38
+ }
39
+
40
+ @mixin ghost-btn($color: $text-secondary) {
41
+ @include btn(transparent);
42
+ color: $color;
43
+ &:hover { background: $bg-card; }
44
+ }
45
+
46
+ @mixin badge($bg-color, $text-color) {
47
+ display: inline-flex;
48
+ align-items: center;
49
+ padding: 2px 8px;
50
+ border-radius: 4px;
51
+ font-size: 11px;
52
+ font-weight: 600;
53
+ background: $bg-color;
54
+ color: $text-color;
55
+ white-space: nowrap;
56
+ }
57
+
58
+ @mixin card {
59
+ padding: 14px 18px;
60
+ border-radius: $radius;
61
+ border: 1px solid $border;
62
+ background: $bg-card;
63
+ }
64
+
65
+ @mixin input {
66
+ padding: 8px 12px;
67
+ border-radius: $radius-sm;
68
+ border: 1px solid $border;
69
+ background: $bg-surface;
70
+ color: $text;
71
+ font-size: 13px;
72
+ transition: border-color $transition;
73
+ &:focus {
74
+ outline: none;
75
+ border-color: $blue;
76
+ box-shadow: 0 0 0 2px rgba($blue, 0.1);
77
+ }
78
+ }