@jjlmoya/utils-finance 1.12.0 → 1.14.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 (26) hide show
  1. package/package.json +5 -3
  2. package/scripts/postinstall.mjs +27 -0
  3. package/src/tool/compoundInterest/component.astro +0 -376
  4. package/src/tool/compoundInterest/compound-interest-calculator.css +79 -0
  5. package/src/tool/courtFeeCalculator/component.astro +0 -237
  6. package/src/tool/courtFeeCalculator/spanish-court-fees-calculator.css +235 -0
  7. package/src/tool/debtSnowball/component.astro +0 -636
  8. package/src/tool/debtSnowball/debt-snowball-calculator.css +634 -0
  9. package/src/tool/fireCalculator/component.astro +0 -334
  10. package/src/tool/fireCalculator/four-percent-rule-fire-calculator.css +332 -0
  11. package/src/tool/ibanBicSwiftConverter/component.astro +0 -414
  12. package/src/tool/ibanBicSwiftConverter/iban-to-bic-swift-converter.css +412 -0
  13. package/src/tool/inflation/component.astro +0 -280
  14. package/src/tool/inflation/inflation-calculator-spain.css +278 -0
  15. package/src/tool/lateInterest/component.astro +0 -400
  16. package/src/tool/lateInterest/late-interest-calculator.css +398 -0
  17. package/src/tool/legalInterestRate/component.astro +0 -509
  18. package/src/tool/legalInterestRate/legal-interest-on-money-spain.css +507 -0
  19. package/src/tool/lotteryOptimizer/component.astro +0 -561
  20. package/src/tool/lotteryOptimizer/spain-lottery-optimizer.css +17 -0
  21. package/src/tool/mortgage/component.astro +0 -641
  22. package/src/tool/mortgage/mortgage-calculator.css +639 -0
  23. package/src/tool/percentageCalculator/component.astro +0 -336
  24. package/src/tool/percentageCalculator/percentage-calculator.css +289 -0
  25. package/src/tool/rentIncreaseCalculator/component.astro +0 -372
  26. package/src/tool/rentIncreaseCalculator/rent-increase-calculator.css +370 -0
@@ -0,0 +1,507 @@
1
+ :root {
2
+ --lir-primary: #856404;
3
+ --lir-secondary: #b8860b;
4
+ --lir-accent: #6c757d;
5
+ --lir-bg-glass: rgba(255, 255, 255, 0.9);
6
+ --lir-border-glass: rgba(184, 134, 11, 0.3);
7
+ --lir-text-main: #212529;
8
+ --lir-text-muted: #495057;
9
+ --lir-glow: rgba(184, 134, 11, 0.1);
10
+ }
11
+
12
+ .theme-dark {
13
+ --lir-bg-glass: rgba(15, 23, 42, 0.9);
14
+ --lir-border-glass: rgba(184, 134, 11, 0.3);
15
+ --lir-text-main: #f8fafc;
16
+ --lir-text-muted: #94a3b8;
17
+ --lir-glow: rgba(184, 134, 11, 0.15);
18
+ }
19
+
20
+ [data-theme='dark'] {
21
+ --lir-bg-glass: rgba(15, 23, 42, 0.9);
22
+ --lir-border-glass: rgba(184, 134, 11, 0.3);
23
+ --lir-text-main: #f8fafc;
24
+ --lir-text-muted: #94a3b8;
25
+ --lir-glow: rgba(184, 134, 11, 0.15);
26
+ }
27
+
28
+ .lir-wrapper {
29
+ max-width: 900px;
30
+ margin: 2rem auto;
31
+ padding: 1rem;
32
+ }
33
+
34
+ .lir-container {
35
+ background: var(--lir-bg-glass);
36
+ backdrop-filter: blur(20px);
37
+ -webkit-backdrop-filter: blur(20px);
38
+ border: 2px solid var(--lir-border-glass);
39
+ border-radius: 2rem;
40
+ padding: 2.5rem;
41
+ position: relative;
42
+ overflow: hidden;
43
+ box-shadow: 0 15px 35px -5px rgba(184, 134, 11, 0.1);
44
+ }
45
+
46
+ .lir-header {
47
+ text-align: center;
48
+ margin-bottom: 2.5rem;
49
+ }
50
+
51
+ .lir-badge {
52
+ display: inline-block;
53
+ padding: 0.25rem 1rem;
54
+ background: rgba(184, 134, 11, 0.1);
55
+ border: 1px solid var(--lir-primary);
56
+ color: var(--lir-primary);
57
+ border-radius: 2rem;
58
+ font-size: 0.75rem;
59
+ font-weight: 800;
60
+ text-transform: uppercase;
61
+ letter-spacing: 1.5px;
62
+ margin-bottom: 1rem;
63
+ }
64
+
65
+ .lir-title {
66
+ font-size: 2.25rem;
67
+ font-weight: 900;
68
+ color: var(--lir-text-main);
69
+ margin-bottom: 0.5rem;
70
+ line-height: 1.1;
71
+ }
72
+
73
+ .lir-subtitle {
74
+ color: var(--lir-text-muted);
75
+ font-size: 1.1rem;
76
+ max-width: 600px;
77
+ margin: 0 auto;
78
+ }
79
+
80
+ .lir-main-rates {
81
+ display: grid;
82
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
83
+ gap: 1.25rem;
84
+ margin-bottom: 2.5rem;
85
+ }
86
+
87
+ .rate-card {
88
+ background: white;
89
+ border: 1px solid rgba(184, 134, 11, 0.15);
90
+ border-radius: 1.5rem;
91
+ padding: 1.5rem;
92
+ text-align: center;
93
+ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
94
+ position: relative;
95
+ display: flex;
96
+ flex-direction: column;
97
+ justify-content: center;
98
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
99
+ }
100
+
101
+ .theme-dark .rate-card,
102
+ [data-theme='dark'] .rate-card {
103
+ background: rgba(255, 255, 255, 0.03);
104
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
105
+ }
106
+
107
+ .rate-card:hover {
108
+ transform: translateY(-5px);
109
+ border-color: var(--lir-primary);
110
+ }
111
+
112
+ .rate-label {
113
+ font-size: 0.85rem;
114
+ font-weight: 700;
115
+ color: var(--lir-text-muted);
116
+ margin-bottom: 0.5rem;
117
+ text-transform: uppercase;
118
+ letter-spacing: 1px;
119
+ }
120
+
121
+ .rate-value {
122
+ font-size: 3rem;
123
+ font-weight: 950;
124
+ color: var(--lir-secondary);
125
+ line-height: 1;
126
+ margin-bottom: 0.25rem;
127
+ }
128
+
129
+ .rate-subtext {
130
+ font-size: 0.95rem;
131
+ font-weight: 600;
132
+ color: var(--lir-text-main);
133
+ }
134
+
135
+ .lir-calculator-section {
136
+ background: #f8f9fa;
137
+ border: 1px solid rgba(0, 0, 0, 0.03);
138
+ border-radius: 1.75rem;
139
+ padding: 2rem;
140
+ }
141
+
142
+ .theme-dark .lir-calculator-section,
143
+ [data-theme='dark'] .lir-calculator-section {
144
+ background: rgba(255, 255, 255, 0.02);
145
+ }
146
+
147
+ .calculator-title {
148
+ font-size: 1.4rem;
149
+ font-weight: 800;
150
+ color: var(--lir-text-main);
151
+ margin-bottom: 1.5rem;
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 0.75rem;
155
+ }
156
+
157
+ .calculator-title svg {
158
+ color: var(--lir-primary);
159
+ }
160
+
161
+ .calculator-grid {
162
+ display: grid;
163
+ grid-template-columns: 1fr 1fr;
164
+ gap: 1.5rem;
165
+ }
166
+
167
+ .input-group {
168
+ display: flex;
169
+ flex-direction: column;
170
+ gap: 0.5rem;
171
+ }
172
+
173
+ .input-group label {
174
+ font-weight: 700;
175
+ color: var(--lir-text-muted);
176
+ font-size: 0.85rem;
177
+ }
178
+
179
+ .input-container {
180
+ position: relative;
181
+ }
182
+
183
+ .lir-input {
184
+ width: 100%;
185
+ background: white;
186
+ border: 2px solid #e9ecef;
187
+ padding: 0.85rem 1.25rem;
188
+ border-radius: 1rem;
189
+ color: #212529;
190
+ font-size: 1.1rem;
191
+ font-weight: 700;
192
+ transition: all 0.3s;
193
+ }
194
+
195
+ .theme-dark .lir-input,
196
+ [data-theme='dark'] .lir-input {
197
+ background: rgba(15, 23, 42, 0.6);
198
+ border-color: rgba(255, 255, 255, 0.1);
199
+ color: white;
200
+ }
201
+
202
+ .lir-input:focus {
203
+ outline: none;
204
+ border-color: var(--lir-primary);
205
+ box-shadow: 0 0 10px var(--lir-glow);
206
+ }
207
+
208
+ .currency-suffix {
209
+ position: absolute;
210
+ right: 1.25rem;
211
+ top: 50%;
212
+ transform: translateY(-50%);
213
+ color: var(--lir-text-muted);
214
+ font-weight: 800;
215
+ font-size: 0.9rem;
216
+ }
217
+
218
+ .lir-results-card {
219
+ grid-column: span 2;
220
+ background: linear-gradient(135deg, rgba(184, 134, 11, 0.03) 0%, #fff 100%);
221
+ border: 1px solid var(--lir-border-glass);
222
+ border-radius: 1.5rem;
223
+ padding: 1.5rem 2rem;
224
+ margin-top: 0.5rem;
225
+ display: flex;
226
+ justify-content: space-between;
227
+ align-items: center;
228
+ }
229
+
230
+ .theme-dark .lir-results-card,
231
+ [data-theme='dark'] .lir-results-card {
232
+ background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
233
+ }
234
+
235
+ .result-item {
236
+ display: flex;
237
+ flex-direction: column;
238
+ }
239
+
240
+ .result-label {
241
+ font-size: 0.95rem;
242
+ font-weight: 600;
243
+ color: var(--lir-text-muted);
244
+ }
245
+
246
+ .result-amount {
247
+ font-size: 2.25rem;
248
+ font-weight: 950;
249
+ color: var(--lir-secondary);
250
+ }
251
+
252
+ .result-total {
253
+ text-align: right;
254
+ }
255
+
256
+ .total-label {
257
+ font-size: 0.95rem;
258
+ font-weight: 800;
259
+ color: var(--lir-text-main);
260
+ }
261
+
262
+ .total-amount {
263
+ font-size: 2.5rem;
264
+ font-weight: 950;
265
+ color: var(--lir-primary);
266
+ }
267
+
268
+ .lir-info-msg {
269
+ margin-top: 1.5rem;
270
+ padding: 1.25rem;
271
+ background: rgba(184, 134, 11, 0.05);
272
+ border: 1px solid rgba(184, 134, 11, 0.1);
273
+ border-radius: 1.25rem;
274
+ display: flex;
275
+ gap: 1.25rem;
276
+ align-items: flex-start;
277
+ }
278
+
279
+ .theme-dark .lir-info-msg,
280
+ [data-theme='dark'] .lir-info-msg {
281
+ background: rgba(184, 134, 11, 0.08);
282
+ }
283
+
284
+ .info-icon {
285
+ background: var(--lir-primary);
286
+ color: white;
287
+ width: 32px;
288
+ height: 32px;
289
+ min-width: 32px;
290
+ border-radius: 50%;
291
+ display: flex;
292
+ align-items: center;
293
+ justify-content: center;
294
+ font-size: 1.2rem;
295
+ box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
296
+ }
297
+
298
+ .info-content {
299
+ display: flex;
300
+ flex-direction: column;
301
+ gap: 0.5rem;
302
+ min-width: 0;
303
+ }
304
+
305
+ .info-content p {
306
+ margin: 0;
307
+ font-size: 0.85rem;
308
+ color: var(--lir-text-muted);
309
+ line-height: 1.5;
310
+ }
311
+
312
+ .info-formula {
313
+ background: white;
314
+ padding: 0.5rem 1rem;
315
+ border-radius: 0.75rem;
316
+ font-size: 0.9rem;
317
+ font-weight: 700;
318
+ color: var(--lir-primary);
319
+ border: 1px solid rgba(184, 134, 11, 0.1);
320
+ display: inline-block;
321
+ align-self: flex-start;
322
+ margin: 0.25rem 0;
323
+ }
324
+
325
+ .theme-dark .info-formula,
326
+ [data-theme='dark'] .info-formula {
327
+ background: rgba(0, 0, 0, 0.2);
328
+ color: var(--lir-secondary);
329
+ }
330
+
331
+ @media (max-width: 768px) {
332
+ .lir-wrapper {
333
+ padding: 1rem;
334
+ margin: 0.5rem auto;
335
+ box-sizing: border-box;
336
+ }
337
+
338
+ .lir-container {
339
+ padding: 1.25rem;
340
+ border-radius: 1.25rem;
341
+ width: 100%;
342
+ box-sizing: border-box;
343
+ }
344
+
345
+ .lir-badge {
346
+ padding: 0.2rem 0.75rem;
347
+ font-size: 0.65rem;
348
+ margin-bottom: 0.5rem;
349
+ }
350
+
351
+ .lir-title {
352
+ font-size: 1.5rem;
353
+ padding: 0;
354
+ }
355
+
356
+ .lir-subtitle {
357
+ font-size: 0.9rem;
358
+ padding: 0;
359
+ }
360
+
361
+ .lir-main-rates {
362
+ grid-template-columns: 1fr;
363
+ gap: 0.75rem;
364
+ margin-bottom: 1.5rem;
365
+ }
366
+
367
+ .rate-card {
368
+ padding: 1rem;
369
+ border-radius: 1rem;
370
+ }
371
+
372
+ .rate-label {
373
+ font-size: 0.75rem;
374
+ }
375
+
376
+ .rate-value {
377
+ font-size: 2.25rem;
378
+ }
379
+
380
+ .rate-subtext {
381
+ font-size: 0.85rem;
382
+ }
383
+
384
+ .lir-calculator-section {
385
+ padding: 1rem;
386
+ border-radius: 1rem;
387
+ }
388
+
389
+ .calculator-title {
390
+ font-size: 1.2rem;
391
+ margin-bottom: 1rem;
392
+ }
393
+
394
+ .calculator-grid {
395
+ grid-template-columns: 1fr;
396
+ gap: 0.75rem;
397
+ }
398
+
399
+ .lir-input {
400
+ padding: 0.75rem 2.5rem 0.75rem 1rem;
401
+ font-size: 1rem;
402
+ box-sizing: border-box;
403
+ }
404
+
405
+ .lir-results-card {
406
+ grid-column: span 1;
407
+ flex-direction: column;
408
+ padding: 1rem;
409
+ gap: 1rem;
410
+ margin-top: 0.5rem;
411
+ }
412
+
413
+ .result-item.result-total {
414
+ padding-top: 0.75rem;
415
+ }
416
+
417
+ .result-label,
418
+ .total-label {
419
+ font-size: 0.85rem;
420
+ }
421
+
422
+ .result-amount {
423
+ font-size: 1.75rem;
424
+ }
425
+
426
+ .total-amount {
427
+ font-size: 2rem;
428
+ }
429
+
430
+ .lir-info-msg {
431
+ padding: 0.75rem;
432
+ gap: 0.75rem;
433
+ width: 100%;
434
+ box-sizing: border-box;
435
+ overflow: hidden;
436
+ }
437
+
438
+ .info-icon {
439
+ width: 24px;
440
+ height: 24px;
441
+ min-width: 24px;
442
+ font-size: 0.9rem;
443
+ }
444
+
445
+ .info-formula {
446
+ width: 100%;
447
+ box-sizing: border-box;
448
+ padding: 0.5rem 0.75rem;
449
+ font-size: 0.7rem;
450
+ overflow-x: auto;
451
+ -webkit-overflow-scrolling: touch;
452
+ display: block;
453
+ border-radius: 0.5rem;
454
+ overflow-wrap: break-word;
455
+ white-space: normal;
456
+ }
457
+ }
458
+
459
+ @media (max-width: 480px) {
460
+ .lir-wrapper {
461
+ padding: 0.75rem;
462
+ }
463
+
464
+ .lir-container {
465
+ padding: 1rem;
466
+ }
467
+
468
+ .lir-title {
469
+ font-size: 1.3rem;
470
+ }
471
+
472
+ .lir-subtitle {
473
+ font-size: 0.85rem;
474
+ }
475
+
476
+ .rate-value {
477
+ font-size: 1.75rem;
478
+ }
479
+
480
+ .lir-calculator-section {
481
+ padding: 0.75rem;
482
+ }
483
+
484
+ .calculator-title {
485
+ font-size: 1rem;
486
+ }
487
+
488
+ .result-amount {
489
+ font-size: 1.4rem;
490
+ }
491
+
492
+ .total-amount {
493
+ font-size: 1.5rem;
494
+ }
495
+
496
+ .lir-input {
497
+ font-size: 0.9rem;
498
+ }
499
+
500
+ .info-content p {
501
+ font-size: 0.75rem;
502
+ }
503
+
504
+ .info-formula {
505
+ font-size: 0.65rem;
506
+ }
507
+ }