@visns-studio/visns-components 5.13.8 → 5.13.10

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.
@@ -0,0 +1,491 @@
1
+ /* Agreement Signature Editor Styles */
2
+ .signature-editor-container {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 1.5rem;
6
+ max-width: 1000px;
7
+ margin: 0 auto;
8
+ }
9
+
10
+ .signature-editor-header {
11
+ text-align: center;
12
+ padding: 1rem;
13
+ background: var(--bg-color, #f8fafc);
14
+ border-radius: 8px;
15
+ border: 1px solid var(--paragraph-color, #e2e8f0);
16
+ }
17
+
18
+ .signature-editor-header h3 {
19
+ font-size: 1.25rem;
20
+ font-weight: 600;
21
+ color: var(--header-color, #1e293b);
22
+ margin: 0 0 0.5rem 0;
23
+ }
24
+
25
+ .signature-editor-header p {
26
+ color: var(--paragraph-color, #64748b);
27
+ margin: 0;
28
+ font-size: 0.875rem;
29
+ }
30
+
31
+ .signature-editor-content {
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 1.5rem;
35
+ }
36
+
37
+ .signature-editor-section {
38
+ background: var(--tertiary-color, white);
39
+ padding: 1.5rem;
40
+ border-radius: 8px;
41
+ border: 1px solid var(--paragraph-color, #e2e8f0);
42
+ }
43
+
44
+ .signature-editor-label {
45
+ display: block;
46
+ font-size: 0.875rem;
47
+ font-weight: 600;
48
+ color: var(--header-color, #374151);
49
+ margin-bottom: 0.5rem;
50
+ }
51
+
52
+ .signature-editor-input,
53
+ .signature-editor-textarea {
54
+ width: 100%;
55
+ padding: 0.75rem;
56
+ border: 1px solid var(--paragraph-color, #d1d5db);
57
+ border-radius: 6px;
58
+ font-size: 0.875rem;
59
+ background: var(--tertiary-color, white);
60
+ color: var(--paragraph-color, #374151);
61
+ transition: border-color 0.2s;
62
+ }
63
+
64
+ .signature-editor-input:focus,
65
+ .signature-editor-textarea:focus {
66
+ outline: none;
67
+ border-color: var(--primary-color, #3cbf7d);
68
+ box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 60, 191, 125), 0.1);
69
+ }
70
+
71
+ .signature-editor-textarea {
72
+ resize: vertical;
73
+ min-height: 80px;
74
+ }
75
+
76
+ .signature-editor-help {
77
+ display: block;
78
+ font-size: 0.75rem;
79
+ color: var(--paragraph-color, #9ca3af);
80
+ margin-top: 0.25rem;
81
+ }
82
+
83
+ .signature-editor-fields-header {
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: space-between;
87
+ margin-bottom: 1rem;
88
+ }
89
+
90
+ .signature-btn {
91
+ display: inline-flex;
92
+ align-items: center;
93
+ gap: 0.5rem;
94
+ padding: 0.5rem 1rem;
95
+ font-size: 0.875rem;
96
+ font-weight: 600;
97
+ border-radius: 6px;
98
+ cursor: pointer;
99
+ transition: all 0.2s;
100
+ border: none;
101
+ text-decoration: none;
102
+ user-select: none;
103
+ }
104
+
105
+ .signature-btn.small {
106
+ padding: 0.375rem 0.75rem;
107
+ font-size: 0.8rem;
108
+ }
109
+
110
+ .signature-btn.primary {
111
+ background: var(--primary-color, #3cbf7d);
112
+ color: var(--tertiary-color, white);
113
+ border: 1px solid var(--primary-color, #3cbf7d);
114
+ }
115
+
116
+ .signature-btn.primary:hover:not(:disabled) {
117
+ background: var(--header-color, #2da967);
118
+ border-color: var(--header-color, #2da967);
119
+ transform: translateY(-1px);
120
+ }
121
+
122
+ .signature-btn.secondary {
123
+ background: var(--tertiary-color, white);
124
+ color: var(--paragraph-color, #6b7280);
125
+ border: 1px solid var(--paragraph-color, #d1d5db);
126
+ }
127
+
128
+ .signature-btn.secondary:hover:not(:disabled) {
129
+ background: var(--bg-color, #f9fafb);
130
+ border-color: var(--paragraph-color, #9ca3af);
131
+ }
132
+
133
+ .signature-btn:disabled {
134
+ opacity: 0.5;
135
+ cursor: not-allowed;
136
+ transform: none;
137
+ }
138
+
139
+ /* Fields List */
140
+ .signature-fields-list {
141
+ display: flex;
142
+ flex-direction: column;
143
+ gap: 0.5rem;
144
+ }
145
+
146
+ .signature-field-item {
147
+ background: var(--bg-color, #f8fafc);
148
+ border: 1px solid var(--paragraph-color, #e2e8f0);
149
+ border-radius: 6px;
150
+ padding: 1rem;
151
+ transition: all 0.2s;
152
+ }
153
+
154
+ .signature-field-item:hover {
155
+ border-color: var(--primary-color, #3cbf7d);
156
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
157
+ }
158
+
159
+ .signature-field-header {
160
+ display: flex;
161
+ align-items: center;
162
+ gap: 0.75rem;
163
+ }
164
+
165
+ .signature-drag-handle {
166
+ cursor: grab;
167
+ color: var(--paragraph-color, #9ca3af);
168
+ padding: 0.25rem;
169
+ border-radius: 4px;
170
+ transition: all 0.2s;
171
+ }
172
+
173
+ .signature-drag-handle:hover {
174
+ color: var(--primary-color, #3cbf7d);
175
+ background: rgba(var(--primary-rgb, 60, 191, 125), 0.1);
176
+ }
177
+
178
+ .signature-drag-handle:active {
179
+ cursor: grabbing;
180
+ }
181
+
182
+ .signature-field-info {
183
+ flex: 1;
184
+ display: flex;
185
+ flex-direction: column;
186
+ gap: 0.25rem;
187
+ }
188
+
189
+ .signature-field-label {
190
+ font-weight: 600;
191
+ color: var(--header-color, #1e293b);
192
+ font-size: 0.875rem;
193
+ }
194
+
195
+ .signature-field-type {
196
+ font-size: 0.75rem;
197
+ color: var(--paragraph-color, #64748b);
198
+ text-transform: capitalize;
199
+ }
200
+
201
+ .signature-field-actions {
202
+ display: flex;
203
+ align-items: center;
204
+ gap: 0.5rem;
205
+ }
206
+
207
+ .signature-field-btn {
208
+ padding: 0.375rem;
209
+ border: none;
210
+ border-radius: 4px;
211
+ cursor: pointer;
212
+ transition: all 0.2s;
213
+ display: flex;
214
+ align-items: center;
215
+ justify-content: center;
216
+ }
217
+
218
+ .signature-field-btn.edit {
219
+ background: var(--bg-color, #eff6ff);
220
+ color: var(--primary-color, #2563eb);
221
+ }
222
+
223
+ .signature-field-btn.edit:hover {
224
+ background: var(--primary-color, #dbeafe);
225
+ color: var(--primary-color, #1d4ed8);
226
+ }
227
+
228
+ .signature-field-btn.delete {
229
+ background: var(--bg-color, #fef2f2);
230
+ color: var(--paragraph-color, #dc2626);
231
+ }
232
+
233
+ .signature-field-btn.delete:hover {
234
+ background: var(--bg-color, #fee2e2);
235
+ color: var(--paragraph-color, #b91c1c);
236
+ }
237
+
238
+ .signature-field-placeholder {
239
+ margin-top: 0.5rem;
240
+ font-size: 0.75rem;
241
+ color: var(--paragraph-color, #9ca3af);
242
+ padding-left: 2.5rem;
243
+ }
244
+
245
+ .signature-field-helper {
246
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
247
+ border-color: var(--primary-color, #3cbf7d) !important;
248
+ transform: rotate(2deg) !important;
249
+ z-index: 9999 !important;
250
+ }
251
+
252
+ /* Empty State */
253
+ .signature-editor-empty {
254
+ text-align: center;
255
+ padding: 3rem;
256
+ color: var(--paragraph-color, #9ca3af);
257
+ background: var(--bg-color, #f8fafc);
258
+ border: 2px dashed var(--paragraph-color, #cbd5e1);
259
+ border-radius: 8px;
260
+ }
261
+
262
+ .signature-editor-empty svg {
263
+ margin-bottom: 1rem;
264
+ }
265
+
266
+ .signature-editor-empty p {
267
+ margin-bottom: 1rem;
268
+ color: var(--paragraph-color, #64748b);
269
+ }
270
+
271
+ /* Preview */
272
+ .signature-editor-preview {
273
+ background: var(--tertiary-color, white);
274
+ padding: 1.5rem;
275
+ border-radius: 8px;
276
+ border: 1px solid var(--paragraph-color, #e2e8f0);
277
+ }
278
+
279
+ .signature-editor-preview h4 {
280
+ font-size: 1rem;
281
+ font-weight: 600;
282
+ color: var(--header-color, #1e293b);
283
+ margin: 0 0 1rem 0;
284
+ }
285
+
286
+ .signature-editor-preview-content {
287
+ border: 1px solid var(--paragraph-color, #e2e8f0);
288
+ border-radius: 6px;
289
+ overflow: hidden;
290
+ }
291
+
292
+ /* Actions */
293
+ .signature-editor-actions {
294
+ display: flex;
295
+ justify-content: flex-end;
296
+ gap: 0.75rem;
297
+ padding: 1rem;
298
+ background: var(--bg-color, #f8fafc);
299
+ border-radius: 8px;
300
+ border: 1px solid var(--paragraph-color, #e2e8f0);
301
+ }
302
+
303
+ /* Loading */
304
+ .signature-editor-loading {
305
+ display: flex;
306
+ flex-direction: column;
307
+ align-items: center;
308
+ justify-content: center;
309
+ padding: 3rem;
310
+ text-align: center;
311
+ }
312
+
313
+ .signature-editor-spinner {
314
+ width: 2rem;
315
+ height: 2rem;
316
+ border: 2px solid var(--paragraph-color, #e2e8f0);
317
+ border-top: 2px solid var(--primary-color, #3cbf7d);
318
+ border-radius: 50%;
319
+ animation: spin 1s linear infinite;
320
+ margin-bottom: 1rem;
321
+ }
322
+
323
+ @keyframes spin {
324
+ 0% { transform: rotate(0deg); }
325
+ 100% { transform: rotate(360deg); }
326
+ }
327
+
328
+ /* Field Editor Modal */
329
+ .signature-editor-overlay {
330
+ position: fixed;
331
+ inset: 0;
332
+ background: rgba(0, 0, 0, 0.5);
333
+ backdrop-filter: blur(4px);
334
+ display: flex;
335
+ align-items: center;
336
+ justify-content: center;
337
+ z-index: 1000;
338
+ }
339
+
340
+ .signature-editor-modal {
341
+ background: var(--tertiary-color, white);
342
+ border-radius: 8px;
343
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
344
+ max-width: 600px;
345
+ width: 90%;
346
+ max-height: 90vh;
347
+ overflow-y: auto;
348
+ }
349
+
350
+ .signature-field-editor {
351
+ padding: 1.5rem;
352
+ }
353
+
354
+ .signature-field-editor-header {
355
+ display: flex;
356
+ align-items: center;
357
+ justify-content: space-between;
358
+ margin-bottom: 1.5rem;
359
+ padding-bottom: 1rem;
360
+ border-bottom: 1px solid var(--paragraph-color, #e2e8f0);
361
+ }
362
+
363
+ .signature-field-editor-header h4 {
364
+ font-size: 1.125rem;
365
+ font-weight: 600;
366
+ color: var(--header-color, #1e293b);
367
+ margin: 0;
368
+ }
369
+
370
+ .signature-field-editor-close {
371
+ padding: 0.5rem;
372
+ border: none;
373
+ background: none;
374
+ color: var(--paragraph-color, #9ca3af);
375
+ cursor: pointer;
376
+ border-radius: 4px;
377
+ transition: all 0.2s;
378
+ }
379
+
380
+ .signature-field-editor-close:hover {
381
+ background: var(--bg-color, #f3f4f6);
382
+ color: var(--paragraph-color, #6b7280);
383
+ }
384
+
385
+ .signature-field-editor-form {
386
+ display: flex;
387
+ flex-direction: column;
388
+ gap: 1rem;
389
+ }
390
+
391
+ .signature-field-editor-grid {
392
+ display: grid;
393
+ grid-template-columns: 1fr 1fr;
394
+ gap: 1rem;
395
+ }
396
+
397
+ .signature-field-editor-group {
398
+ display: flex;
399
+ flex-direction: column;
400
+ }
401
+
402
+ .signature-field-editor-group label {
403
+ font-size: 0.875rem;
404
+ font-weight: 600;
405
+ color: var(--header-color, #374151);
406
+ margin-bottom: 0.5rem;
407
+ }
408
+
409
+ .signature-field-editor-group input,
410
+ .signature-field-editor-group select {
411
+ padding: 0.5rem;
412
+ border: 1px solid var(--paragraph-color, #d1d5db);
413
+ border-radius: 4px;
414
+ font-size: 0.875rem;
415
+ background: var(--tertiary-color, white);
416
+ color: var(--paragraph-color, #374151);
417
+ }
418
+
419
+ .signature-field-editor-group input:focus,
420
+ .signature-field-editor-group select:focus {
421
+ outline: none;
422
+ border-color: var(--primary-color, #3cbf7d);
423
+ box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 60, 191, 125), 0.1);
424
+ }
425
+
426
+ .signature-field-editor-checkbox {
427
+ display: flex;
428
+ align-items: center;
429
+ gap: 0.5rem;
430
+ padding: 0.5rem;
431
+ background: var(--bg-color, #f8fafc);
432
+ border-radius: 4px;
433
+ }
434
+
435
+ .signature-field-editor-checkbox label {
436
+ display: flex;
437
+ align-items: center;
438
+ gap: 0.5rem;
439
+ font-size: 0.875rem;
440
+ color: var(--paragraph-color, #374151);
441
+ cursor: pointer;
442
+ }
443
+
444
+ .signature-field-editor-checkbox input[type="checkbox"] {
445
+ accent-color: var(--primary-color, #3cbf7d);
446
+ }
447
+
448
+ .signature-field-editor-actions {
449
+ display: flex;
450
+ justify-content: flex-end;
451
+ gap: 0.75rem;
452
+ padding-top: 1rem;
453
+ border-top: 1px solid var(--paragraph-color, #e2e8f0);
454
+ }
455
+
456
+ /* Responsive Design */
457
+ @media (max-width: 768px) {
458
+ .signature-editor-container {
459
+ padding: 1rem;
460
+ }
461
+
462
+ .signature-editor-fields-header {
463
+ flex-direction: column;
464
+ align-items: flex-start;
465
+ gap: 1rem;
466
+ }
467
+
468
+ .signature-field-header {
469
+ flex-direction: column;
470
+ align-items: flex-start;
471
+ gap: 0.5rem;
472
+ }
473
+
474
+ .signature-field-actions {
475
+ width: 100%;
476
+ justify-content: flex-end;
477
+ }
478
+
479
+ .signature-editor-actions {
480
+ flex-direction: column;
481
+ }
482
+
483
+ .signature-field-editor-grid {
484
+ grid-template-columns: 1fr;
485
+ }
486
+
487
+ .signature-editor-modal {
488
+ width: 95%;
489
+ margin: 1rem;
490
+ }
491
+ }