@landform.io/sdk 0.1.2

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 (63) hide show
  1. package/dist/api/index.cjs +17 -0
  2. package/dist/api/index.cjs.map +1 -0
  3. package/dist/api/index.d.cts +48 -0
  4. package/dist/api/index.d.ts +48 -0
  5. package/dist/api/index.js +4 -0
  6. package/dist/api/index.js.map +1 -0
  7. package/dist/chunk-52W6RI6C.cjs +4 -0
  8. package/dist/chunk-52W6RI6C.cjs.map +1 -0
  9. package/dist/chunk-DASQI7IA.cjs +4 -0
  10. package/dist/chunk-DASQI7IA.cjs.map +1 -0
  11. package/dist/chunk-EL7YGOTY.js +3 -0
  12. package/dist/chunk-EL7YGOTY.js.map +1 -0
  13. package/dist/chunk-GVOTY5NG.js +3 -0
  14. package/dist/chunk-GVOTY5NG.js.map +1 -0
  15. package/dist/chunk-HUIMGLDC.js +488 -0
  16. package/dist/chunk-HUIMGLDC.js.map +1 -0
  17. package/dist/chunk-I6L5OCM3.js +1657 -0
  18. package/dist/chunk-I6L5OCM3.js.map +1 -0
  19. package/dist/chunk-IQXKFO6Q.cjs +55 -0
  20. package/dist/chunk-IQXKFO6Q.cjs.map +1 -0
  21. package/dist/chunk-P2GUKJHH.cjs +117 -0
  22. package/dist/chunk-P2GUKJHH.cjs.map +1 -0
  23. package/dist/chunk-PDUJU32P.js +687 -0
  24. package/dist/chunk-PDUJU32P.js.map +1 -0
  25. package/dist/chunk-PKHTPGWQ.js +114 -0
  26. package/dist/chunk-PKHTPGWQ.js.map +1 -0
  27. package/dist/chunk-V7WAYO2Q.js +48 -0
  28. package/dist/chunk-V7WAYO2Q.js.map +1 -0
  29. package/dist/chunk-WHV333XL.cjs +1684 -0
  30. package/dist/chunk-WHV333XL.cjs.map +1 -0
  31. package/dist/chunk-WIFNU3FA.cjs +497 -0
  32. package/dist/chunk-WIFNU3FA.cjs.map +1 -0
  33. package/dist/chunk-ZLOP4BTK.cjs +695 -0
  34. package/dist/chunk-ZLOP4BTK.cjs.map +1 -0
  35. package/dist/components/index.cjs +99 -0
  36. package/dist/components/index.cjs.map +1 -0
  37. package/dist/components/index.d.cts +166 -0
  38. package/dist/components/index.d.ts +166 -0
  39. package/dist/components/index.js +6 -0
  40. package/dist/components/index.js.map +1 -0
  41. package/dist/hooks/index.cjs +35 -0
  42. package/dist/hooks/index.cjs.map +1 -0
  43. package/dist/hooks/index.d.cts +75 -0
  44. package/dist/hooks/index.d.ts +75 -0
  45. package/dist/hooks/index.js +6 -0
  46. package/dist/hooks/index.js.map +1 -0
  47. package/dist/index-DoRZImTl.d.cts +590 -0
  48. package/dist/index-DoRZImTl.d.ts +590 -0
  49. package/dist/index.cjs +186 -0
  50. package/dist/index.cjs.map +1 -0
  51. package/dist/index.d.cts +8 -0
  52. package/dist/index.d.ts +8 -0
  53. package/dist/index.js +9 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/theme/index.cjs +61 -0
  56. package/dist/theme/index.cjs.map +1 -0
  57. package/dist/theme/index.d.cts +65 -0
  58. package/dist/theme/index.d.ts +65 -0
  59. package/dist/theme/index.js +4 -0
  60. package/dist/theme/index.js.map +1 -0
  61. package/dist/useForm-D1mB6REv.d.ts +48 -0
  62. package/dist/useForm-kF8xK1mJ.d.cts +48 -0
  63. package/package.json +101 -0
@@ -0,0 +1,695 @@
1
+ 'use strict';
2
+
3
+ // src/theme/generateCSS.ts
4
+ function radiusToCSS(radius) {
5
+ switch (radius) {
6
+ case "none":
7
+ return "0";
8
+ case "small":
9
+ return "4px";
10
+ case "medium":
11
+ return "8px";
12
+ case "large":
13
+ return "12px";
14
+ case "full":
15
+ return "9999px";
16
+ default:
17
+ return "0";
18
+ }
19
+ }
20
+ function generateThemeCSS(theme) {
21
+ const t = theme;
22
+ return `
23
+ :root {
24
+ /* Colors - Base */
25
+ --lf-color-primary: ${t.colors.primary};
26
+ --lf-color-secondary: ${t.colors.secondary};
27
+ --lf-color-accent: ${t.colors.accent};
28
+
29
+ /* Colors - Backgrounds */
30
+ --lf-color-background: ${t.colors.background};
31
+ --lf-color-surface: ${t.colors.surfaceBackground};
32
+ --lf-color-input-bg: ${t.colors.inputBackground};
33
+ --lf-color-input-border: ${t.colors.inputBorder};
34
+
35
+ /* Colors - Text */
36
+ --lf-color-question: ${t.colors.questionText};
37
+ --lf-color-answer: ${t.colors.answerText};
38
+ --lf-color-placeholder: ${t.colors.placeholderText};
39
+
40
+ /* Colors - Buttons */
41
+ --lf-color-button-bg: ${t.colors.buttonBackground};
42
+ --lf-color-button-text: ${t.colors.buttonText};
43
+ --lf-color-button-hover: ${t.colors.buttonHoverBackground};
44
+
45
+ /* Colors - Selection */
46
+ --lf-color-selected-bg: ${t.colors.selectedBackground};
47
+ --lf-color-selected-border: ${t.colors.selectedBorder};
48
+
49
+ /* Colors - Feedback */
50
+ --lf-color-error: ${t.colors.errorColor};
51
+ --lf-color-success: ${t.colors.successColor};
52
+
53
+ /* Colors - Progress */
54
+ --lf-color-progress-bg: ${t.colors.progressBackground};
55
+ --lf-color-progress-fill: ${t.colors.progressFill};
56
+
57
+ /* Typography - Question */
58
+ --lf-font-question: ${t.typography.questionFont.family};
59
+ --lf-font-size-question: ${t.typography.questionFont.size};
60
+ --lf-font-weight-question: ${t.typography.questionFont.weight};
61
+ --lf-line-height-question: ${t.typography.questionFont.lineHeight};
62
+ ${t.typography.questionFont.letterSpacing ? `--lf-letter-spacing-question: ${t.typography.questionFont.letterSpacing};` : ""}
63
+
64
+ /* Typography - Answer */
65
+ --lf-font-answer: ${t.typography.answerFont.family};
66
+ --lf-font-size-answer: ${t.typography.answerFont.size};
67
+ --lf-font-weight-answer: ${t.typography.answerFont.weight};
68
+ --lf-line-height-answer: ${t.typography.answerFont.lineHeight};
69
+ ${t.typography.answerFont.letterSpacing ? `--lf-letter-spacing-answer: ${t.typography.answerFont.letterSpacing};` : ""}
70
+
71
+ /* Typography - Button */
72
+ --lf-font-button: ${t.typography.buttonFont.family};
73
+ --lf-font-size-button: ${t.typography.buttonFont.size};
74
+ --lf-font-weight-button: ${t.typography.buttonFont.weight};
75
+ --lf-line-height-button: ${t.typography.buttonFont.lineHeight};
76
+
77
+ /* Spacing */
78
+ --lf-spacing-question: ${t.spacing.questionGap};
79
+ --lf-spacing-option: ${t.spacing.optionGap};
80
+ --lf-spacing-container: ${t.spacing.containerPadding};
81
+
82
+ /* Borders */
83
+ --lf-border-width: ${t.borders.inputBorderWidth};
84
+ --lf-border-style: ${t.borders.inputBorderStyle};
85
+ --lf-border-radius: ${radiusToCSS(t.borders.radius)};
86
+
87
+ /* Animations */
88
+ --lf-transition-duration: ${t.animations.transitionDuration};
89
+ --lf-transition-easing: ${t.animations.transitionEasing};
90
+ }
91
+ `.trim();
92
+ }
93
+ function generateComponentStyles() {
94
+ return `
95
+ /* ============================================================================
96
+ Landform SDK - Component Styles
97
+ ============================================================================ */
98
+
99
+ /* Form Container */
100
+ .lf-form {
101
+ min-height: 100vh;
102
+ display: flex;
103
+ flex-direction: column;
104
+ background-color: var(--lf-color-background);
105
+ font-family: var(--lf-font-answer);
106
+ color: var(--lf-color-answer);
107
+ }
108
+
109
+ /* Question Container */
110
+ .lf-question-container {
111
+ flex: 1;
112
+ display: flex;
113
+ flex-direction: column;
114
+ justify-content: center;
115
+ padding: var(--lf-spacing-container);
116
+ max-width: 720px;
117
+ margin: 0 auto;
118
+ width: 100%;
119
+ }
120
+
121
+ /* Question Title */
122
+ .lf-question-title {
123
+ font-family: var(--lf-font-question);
124
+ font-size: var(--lf-font-size-question);
125
+ font-weight: var(--lf-font-weight-question);
126
+ line-height: var(--lf-line-height-question);
127
+ color: var(--lf-color-question);
128
+ margin: 0 0 0.5rem 0;
129
+ }
130
+
131
+ /* Question Description */
132
+ .lf-question-description {
133
+ color: var(--lf-color-answer);
134
+ opacity: 0.8;
135
+ margin: 0;
136
+ }
137
+
138
+ /* Required Indicator */
139
+ .lf-required {
140
+ color: var(--lf-color-error);
141
+ }
142
+
143
+ /* Input Base */
144
+ .lf-input {
145
+ width: 100%;
146
+ padding: 0.75rem 1rem;
147
+ font-family: var(--lf-font-answer);
148
+ font-size: var(--lf-font-size-answer);
149
+ color: var(--lf-color-answer);
150
+ background-color: var(--lf-color-input-bg);
151
+ border: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
152
+ border-radius: var(--lf-border-radius);
153
+ outline: none;
154
+ transition: border-color var(--lf-transition-duration) var(--lf-transition-easing);
155
+ }
156
+
157
+ .lf-input:focus {
158
+ border-color: var(--lf-color-primary);
159
+ }
160
+
161
+ .lf-input::placeholder {
162
+ color: var(--lf-color-placeholder);
163
+ }
164
+
165
+ /* Input Underline Style */
166
+ .lf-input-underline {
167
+ width: 100%;
168
+ padding: 0.75rem 0;
169
+ font-family: var(--lf-font-answer);
170
+ font-size: var(--lf-font-size-answer);
171
+ color: var(--lf-color-answer);
172
+ background-color: transparent;
173
+ border: none;
174
+ border-bottom: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
175
+ border-radius: 0;
176
+ outline: none;
177
+ transition: border-color var(--lf-transition-duration) var(--lf-transition-easing);
178
+ }
179
+
180
+ .lf-input-underline:focus {
181
+ border-bottom-color: var(--lf-color-primary);
182
+ }
183
+
184
+ .lf-input-underline::placeholder {
185
+ color: var(--lf-color-placeholder);
186
+ }
187
+
188
+ /* Choice Button */
189
+ .lf-choice {
190
+ display: flex;
191
+ align-items: center;
192
+ gap: 0.75rem;
193
+ width: 100%;
194
+ padding: 1rem 1.25rem;
195
+ font-family: var(--lf-font-answer);
196
+ font-size: var(--lf-font-size-answer);
197
+ color: var(--lf-color-answer);
198
+ background-color: var(--lf-color-surface);
199
+ border: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
200
+ border-radius: var(--lf-border-radius);
201
+ cursor: pointer;
202
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
203
+ text-align: left;
204
+ }
205
+
206
+ .lf-choice:hover {
207
+ border-color: var(--lf-color-primary);
208
+ }
209
+
210
+ .lf-choice-selected {
211
+ background-color: var(--lf-color-selected-bg);
212
+ border-color: var(--lf-color-selected-border);
213
+ }
214
+
215
+ /* Key Hint */
216
+ .lf-key-hint {
217
+ display: inline-flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ min-width: 1.75rem;
221
+ height: 1.75rem;
222
+ padding: 0 0.5rem;
223
+ font-size: 0.875rem;
224
+ font-weight: 500;
225
+ color: var(--lf-color-answer);
226
+ background-color: var(--lf-color-background);
227
+ border: 1px solid var(--lf-color-input-border);
228
+ border-radius: var(--lf-border-radius);
229
+ }
230
+
231
+ .lf-choice-selected .lf-key-hint {
232
+ background-color: var(--lf-color-primary);
233
+ border-color: var(--lf-color-primary);
234
+ color: var(--lf-color-button-text);
235
+ }
236
+
237
+ /* Button */
238
+ .lf-button {
239
+ display: inline-flex;
240
+ align-items: center;
241
+ justify-content: center;
242
+ gap: 0.5rem;
243
+ padding: 0.75rem 1.5rem;
244
+ font-family: var(--lf-font-button);
245
+ font-size: var(--lf-font-size-button);
246
+ font-weight: var(--lf-font-weight-button);
247
+ line-height: var(--lf-line-height-button);
248
+ color: var(--lf-color-button-text);
249
+ background-color: var(--lf-color-button-bg);
250
+ border: none;
251
+ border-radius: var(--lf-border-radius);
252
+ cursor: pointer;
253
+ transition: background-color var(--lf-transition-duration) var(--lf-transition-easing);
254
+ }
255
+
256
+ .lf-button:hover {
257
+ background-color: var(--lf-color-button-hover);
258
+ }
259
+
260
+ .lf-button:disabled {
261
+ opacity: 0.5;
262
+ cursor: not-allowed;
263
+ }
264
+
265
+ /* Progress Bar */
266
+ .lf-progress {
267
+ background-color: var(--lf-color-progress-bg);
268
+ overflow: hidden;
269
+ }
270
+
271
+ .lf-progress-fill {
272
+ background-color: var(--lf-color-progress-fill);
273
+ transition: width var(--lf-transition-duration) var(--lf-transition-easing);
274
+ }
275
+
276
+ /* Rating Stars */
277
+ .lf-rating-star {
278
+ cursor: pointer;
279
+ color: var(--lf-color-input-border);
280
+ transition: color var(--lf-transition-duration) var(--lf-transition-easing);
281
+ }
282
+
283
+ .lf-rating-star-active {
284
+ color: var(--lf-color-primary);
285
+ }
286
+
287
+ .lf-rating-star:hover {
288
+ color: var(--lf-color-primary);
289
+ }
290
+
291
+ /* Scale Button (Opinion Scale, NPS) */
292
+ .lf-scale-button {
293
+ display: flex;
294
+ align-items: center;
295
+ justify-content: center;
296
+ min-width: 2.5rem;
297
+ height: 2.5rem;
298
+ padding: 0.5rem;
299
+ font-family: var(--lf-font-answer);
300
+ font-size: var(--lf-font-size-answer);
301
+ color: var(--lf-color-answer);
302
+ background-color: var(--lf-color-surface);
303
+ border: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
304
+ border-radius: var(--lf-border-radius);
305
+ cursor: pointer;
306
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
307
+ }
308
+
309
+ .lf-scale-button:hover {
310
+ border-color: var(--lf-color-primary);
311
+ }
312
+
313
+ .lf-scale-button-selected {
314
+ background-color: var(--lf-color-primary);
315
+ border-color: var(--lf-color-primary);
316
+ color: var(--lf-color-button-text);
317
+ }
318
+
319
+ /* Navigation */
320
+ .lf-navigation {
321
+ position: fixed;
322
+ bottom: 0;
323
+ left: 0;
324
+ right: 0;
325
+ display: flex;
326
+ align-items: center;
327
+ justify-content: space-between;
328
+ padding: 1rem var(--lf-spacing-container);
329
+ background-color: var(--lf-color-background);
330
+ border-top: 1px solid var(--lf-color-input-border);
331
+ }
332
+
333
+ .lf-navigation-button {
334
+ display: inline-flex;
335
+ align-items: center;
336
+ gap: 0.5rem;
337
+ padding: 0.5rem 1rem;
338
+ font-family: var(--lf-font-button);
339
+ font-size: 0.875rem;
340
+ color: var(--lf-color-answer);
341
+ background-color: transparent;
342
+ border: 1px solid var(--lf-color-input-border);
343
+ border-radius: var(--lf-border-radius);
344
+ cursor: pointer;
345
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
346
+ }
347
+
348
+ .lf-navigation-button:hover {
349
+ border-color: var(--lf-color-primary);
350
+ color: var(--lf-color-primary);
351
+ }
352
+
353
+ .lf-navigation-button:disabled {
354
+ opacity: 0.3;
355
+ cursor: not-allowed;
356
+ }
357
+
358
+ /* Error Message */
359
+ .lf-error {
360
+ color: var(--lf-color-error);
361
+ font-size: 0.875rem;
362
+ margin-top: 0.5rem;
363
+ }
364
+
365
+ /* Branding */
366
+ .lf-branding {
367
+ padding: 1rem;
368
+ text-align: center;
369
+ font-size: 0.75rem;
370
+ color: var(--lf-color-placeholder);
371
+ }
372
+
373
+ .lf-branding a {
374
+ color: var(--lf-color-primary);
375
+ text-decoration: none;
376
+ }
377
+
378
+ .lf-branding a:hover {
379
+ text-decoration: underline;
380
+ }
381
+
382
+ /* Picture Choice Grid */
383
+ .lf-picture-grid {
384
+ display: grid;
385
+ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
386
+ gap: var(--lf-spacing-option);
387
+ }
388
+
389
+ .lf-picture-card {
390
+ display: flex;
391
+ flex-direction: column;
392
+ overflow: hidden;
393
+ background-color: var(--lf-color-surface);
394
+ border: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
395
+ border-radius: var(--lf-border-radius);
396
+ cursor: pointer;
397
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
398
+ }
399
+
400
+ .lf-picture-card:hover {
401
+ border-color: var(--lf-color-primary);
402
+ }
403
+
404
+ .lf-picture-card-selected {
405
+ border-color: var(--lf-color-selected-border);
406
+ background-color: var(--lf-color-selected-bg);
407
+ }
408
+
409
+ .lf-picture-card img {
410
+ width: 100%;
411
+ aspect-ratio: 4/3;
412
+ object-fit: cover;
413
+ }
414
+
415
+ .lf-picture-card-label {
416
+ padding: 0.75rem;
417
+ text-align: center;
418
+ font-size: 0.875rem;
419
+ }
420
+
421
+ /* Welcome & Thank You Screens */
422
+ .lf-screen {
423
+ display: flex;
424
+ flex-direction: column;
425
+ align-items: center;
426
+ justify-content: center;
427
+ text-align: center;
428
+ min-height: 100vh;
429
+ padding: var(--lf-spacing-container);
430
+ }
431
+
432
+ .lf-screen-title {
433
+ font-family: var(--lf-font-question);
434
+ font-size: calc(var(--lf-font-size-question) * 1.25);
435
+ font-weight: var(--lf-font-weight-question);
436
+ color: var(--lf-color-question);
437
+ margin: 0 0 1rem 0;
438
+ }
439
+
440
+ .lf-screen-description {
441
+ font-size: var(--lf-font-size-answer);
442
+ color: var(--lf-color-answer);
443
+ opacity: 0.8;
444
+ margin: 0 0 2rem 0;
445
+ max-width: 480px;
446
+ }
447
+
448
+ /* Slider */
449
+ .lf-slider {
450
+ width: 100%;
451
+ height: 8px;
452
+ appearance: none;
453
+ background: var(--lf-color-progress-bg);
454
+ border-radius: var(--lf-border-radius);
455
+ outline: none;
456
+ }
457
+
458
+ .lf-slider::-webkit-slider-thumb {
459
+ appearance: none;
460
+ width: 24px;
461
+ height: 24px;
462
+ background: var(--lf-color-primary);
463
+ border-radius: 50%;
464
+ cursor: pointer;
465
+ }
466
+
467
+ .lf-slider::-moz-range-thumb {
468
+ width: 24px;
469
+ height: 24px;
470
+ background: var(--lf-color-primary);
471
+ border-radius: 50%;
472
+ cursor: pointer;
473
+ border: none;
474
+ }
475
+
476
+ /* Signature Canvas */
477
+ .lf-signature-canvas {
478
+ border: var(--lf-border-width) var(--lf-border-style) var(--lf-color-input-border);
479
+ border-radius: var(--lf-border-radius);
480
+ background-color: var(--lf-color-input-bg);
481
+ cursor: crosshair;
482
+ }
483
+
484
+ /* ============================================================================
485
+ Component Variants - Card Style Choices (Quiz Template)
486
+ ============================================================================ */
487
+
488
+ .lf-choice-card {
489
+ display: flex;
490
+ align-items: center;
491
+ justify-content: space-between;
492
+ width: 100%;
493
+ padding: 1rem 1.25rem;
494
+ font-family: var(--lf-font-answer);
495
+ font-size: var(--lf-font-size-answer);
496
+ color: var(--lf-color-answer);
497
+ background-color: var(--lf-color-surface);
498
+ border: none;
499
+ border-radius: var(--lf-border-radius);
500
+ cursor: pointer;
501
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
502
+ text-align: left;
503
+ }
504
+
505
+ .lf-choice-card:hover {
506
+ background-color: var(--lf-color-input-bg);
507
+ transform: translateY(-1px);
508
+ }
509
+
510
+ .lf-choice-card-selected {
511
+ background-color: var(--lf-color-selected-bg);
512
+ color: var(--lf-color-button-text);
513
+ }
514
+
515
+ .lf-choice-card-selected:hover {
516
+ background-color: var(--lf-color-selected-bg);
517
+ transform: none;
518
+ }
519
+
520
+ /* Circular indicator for card choices */
521
+ .lf-choice-indicator {
522
+ display: flex;
523
+ align-items: center;
524
+ justify-content: center;
525
+ width: 24px;
526
+ height: 24px;
527
+ flex-shrink: 0;
528
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
529
+ }
530
+
531
+ /* Checkmark indicator style (default) */
532
+ .lf-choice-indicator-checkmark {
533
+ border-radius: 50%;
534
+ border: 2px solid var(--lf-color-input-border);
535
+ }
536
+
537
+ .lf-choice-card-selected .lf-choice-indicator-checkmark {
538
+ background-color: var(--lf-color-button-text);
539
+ border-color: var(--lf-color-button-text);
540
+ color: var(--lf-color-selected-bg);
541
+ }
542
+
543
+ /* Arrow indicator style - no border, SVG handles circle */
544
+ .lf-choice-indicator svg {
545
+ width: 18px;
546
+ height: 18px;
547
+ }
548
+
549
+ /* ============================================================================
550
+ Component Variants - Bottom Bar Navigation (Quiz Template)
551
+ ============================================================================ */
552
+
553
+ .lf-navigation-bottom-bar {
554
+ position: fixed;
555
+ bottom: 0;
556
+ left: 0;
557
+ right: 0;
558
+ display: flex;
559
+ align-items: center;
560
+ justify-content: center;
561
+ gap: 1rem;
562
+ padding: 1.5rem var(--lf-spacing-container);
563
+ background-color: var(--lf-color-background);
564
+ }
565
+
566
+ .lf-nav-btn-back {
567
+ display: inline-flex;
568
+ align-items: center;
569
+ gap: 0.5rem;
570
+ padding: 0.875rem 1.5rem;
571
+ font-family: var(--lf-font-button);
572
+ font-size: var(--lf-font-size-button);
573
+ font-weight: var(--lf-font-weight-button);
574
+ color: var(--lf-color-answer);
575
+ background-color: var(--lf-color-background);
576
+ border: 1px solid var(--lf-color-input-border);
577
+ border-radius: var(--lf-border-radius);
578
+ cursor: pointer;
579
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
580
+ }
581
+
582
+ .lf-nav-btn-back:hover {
583
+ background-color: var(--lf-color-surface);
584
+ }
585
+
586
+ .lf-nav-btn-back:disabled {
587
+ opacity: 0.4;
588
+ cursor: not-allowed;
589
+ }
590
+
591
+ .lf-nav-btn-next {
592
+ display: inline-flex;
593
+ align-items: center;
594
+ gap: 0.5rem;
595
+ padding: 0.875rem 2rem;
596
+ font-family: var(--lf-font-button);
597
+ font-size: var(--lf-font-size-button);
598
+ font-weight: var(--lf-font-weight-button);
599
+ color: var(--lf-color-button-text);
600
+ background-color: var(--lf-color-button-bg);
601
+ border: none;
602
+ border-radius: var(--lf-border-radius);
603
+ cursor: pointer;
604
+ transition: all var(--lf-transition-duration) var(--lf-transition-easing);
605
+ }
606
+
607
+ .lf-nav-btn-next:hover {
608
+ background-color: var(--lf-color-button-hover);
609
+ }
610
+
611
+ .lf-nav-btn-next:disabled {
612
+ opacity: 0.5;
613
+ cursor: not-allowed;
614
+ }
615
+
616
+ /* ============================================================================
617
+ Component Variants - Centered Header (Quiz Template)
618
+ ============================================================================ */
619
+
620
+ .lf-header-centered {
621
+ display: flex;
622
+ flex-direction: column;
623
+ align-items: center;
624
+ padding: 1.5rem var(--lf-spacing-container);
625
+ }
626
+
627
+ .lf-header-logo {
628
+ max-height: 48px;
629
+ width: auto;
630
+ }
631
+
632
+ .lf-header-brand {
633
+ margin-top: 0.5rem;
634
+ font-size: 0.875rem;
635
+ color: var(--lf-color-placeholder);
636
+ }
637
+ `.trim();
638
+ }
639
+ function generateThemeStyleTag(theme) {
640
+ const cssVariables = generateThemeCSS(theme);
641
+ const componentStyles = generateComponentStyles();
642
+ return `${cssVariables}
643
+
644
+ ${componentStyles}`;
645
+ }
646
+
647
+ // src/theme/injection.ts
648
+ var STYLE_ID = "lf-form-theme-variables";
649
+ var CUSTOM_STYLE_ID = "lf-form-custom-css";
650
+ function isBrowser() {
651
+ return typeof window !== "undefined" && typeof document !== "undefined";
652
+ }
653
+ function injectThemeCSS(theme) {
654
+ if (!isBrowser()) {
655
+ return () => {
656
+ };
657
+ }
658
+ let styleEl = document.getElementById(STYLE_ID);
659
+ if (!styleEl) {
660
+ styleEl = document.createElement("style");
661
+ styleEl.id = STYLE_ID;
662
+ document.head.appendChild(styleEl);
663
+ }
664
+ styleEl.textContent = generateThemeStyleTag(theme);
665
+ if (theme.customCSS) {
666
+ let customStyleEl = document.getElementById(
667
+ CUSTOM_STYLE_ID
668
+ );
669
+ if (!customStyleEl) {
670
+ customStyleEl = document.createElement("style");
671
+ customStyleEl.id = CUSTOM_STYLE_ID;
672
+ document.head.appendChild(customStyleEl);
673
+ }
674
+ customStyleEl.textContent = theme.customCSS;
675
+ }
676
+ return () => {
677
+ const el = document.getElementById(STYLE_ID);
678
+ if (el) el.remove();
679
+ const customEl = document.getElementById(CUSTOM_STYLE_ID);
680
+ if (customEl) customEl.remove();
681
+ };
682
+ }
683
+ function getThemeCSSForSSR(theme) {
684
+ return generateThemeStyleTag(theme);
685
+ }
686
+
687
+ exports.generateComponentStyles = generateComponentStyles;
688
+ exports.generateThemeCSS = generateThemeCSS;
689
+ exports.generateThemeStyleTag = generateThemeStyleTag;
690
+ exports.getThemeCSSForSSR = getThemeCSSForSSR;
691
+ exports.injectThemeCSS = injectThemeCSS;
692
+ exports.isBrowser = isBrowser;
693
+ exports.radiusToCSS = radiusToCSS;
694
+ //# sourceMappingURL=chunk-ZLOP4BTK.cjs.map
695
+ //# sourceMappingURL=chunk-ZLOP4BTK.cjs.map