@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,398 @@
1
+ :root {
2
+ --li-bg-card: #fff;
3
+ --li-bg-card-hover: #f9fafb;
4
+ --li-border-card: #e5e7eb;
5
+ --li-text-primary: #1f2937;
6
+ --li-text-secondary: #6b7280;
7
+ --li-text-input: #1f2937;
8
+ --li-bg-input: #fff;
9
+ --li-border-input: #d1d5db;
10
+ --li-focus-ring: rgba(59, 130, 246, 0.1);
11
+ --li-focus-border: #3b82f6;
12
+ --li-unit-color: #3b82f6;
13
+ --li-bg-result: #f3f4f6;
14
+ --li-border-result: #d1d5db;
15
+ --li-label-result: #6b7280;
16
+ --li-value-result: #1f2937;
17
+ --li-bg-total-gradient-1: #dbeafe;
18
+ --li-bg-total-gradient-2: #bfdbfe;
19
+ --li-border-total: #3b82f6;
20
+ --li-label-total: #1e40af;
21
+ --li-value-total: #1e3a8a;
22
+ --li-bg-banner: #fef3c7;
23
+ --li-border-banner: #f59e0b;
24
+ --li-text-banner: #92400e;
25
+ --li-bg-button: #3b82f6;
26
+ --li-bg-button-hover: #2563eb;
27
+ --li-text-button: #fff;
28
+ }
29
+
30
+ .theme-dark {
31
+ --li-bg-card: #1f2937;
32
+ --li-border-card: #374151;
33
+ --li-text-primary: #f3f4f6;
34
+ --li-text-secondary: #d1d5db;
35
+ --li-text-input: #f3f4f6;
36
+ --li-bg-input: #111827;
37
+ --li-border-input: #4b5563;
38
+ --li-focus-ring: rgba(59, 130, 246, 0.1);
39
+ --li-focus-border: #3b82f6;
40
+ --li-unit-color: #60a5fa;
41
+ --li-bg-result: #111827;
42
+ --li-border-result: #374151;
43
+ --li-label-result: #d1d5db;
44
+ --li-value-result: #f3f4f6;
45
+ --li-bg-total-gradient-1: #1e3a8a;
46
+ --li-bg-total-gradient-2: #1e40af;
47
+ --li-border-total: #3b82f6;
48
+ --li-label-total: #93c5fd;
49
+ --li-value-total: #dbeafe;
50
+ --li-bg-banner: #78350f;
51
+ --li-border-banner: #f59e0b;
52
+ --li-text-banner: #fef3c7;
53
+ --li-bg-button: #3b82f6;
54
+ --li-bg-button-hover: #1e40af;
55
+ --li-text-button: #fff;
56
+ }
57
+
58
+ [data-theme='dark'] {
59
+ --li-bg-card: #1f2937;
60
+ --li-border-card: #374151;
61
+ --li-text-primary: #f3f4f6;
62
+ --li-text-secondary: #d1d5db;
63
+ --li-text-input: #f3f4f6;
64
+ --li-bg-input: #111827;
65
+ --li-border-input: #4b5563;
66
+ --li-focus-ring: rgba(59, 130, 246, 0.1);
67
+ --li-focus-border: #3b82f6;
68
+ --li-unit-color: #60a5fa;
69
+ --li-bg-result: #111827;
70
+ --li-border-result: #374151;
71
+ --li-label-result: #d1d5db;
72
+ --li-value-result: #f3f4f6;
73
+ --li-bg-total-gradient-1: #1e3a8a;
74
+ --li-bg-total-gradient-2: #1e40af;
75
+ --li-border-total: #3b82f6;
76
+ --li-label-total: #93c5fd;
77
+ --li-value-total: #dbeafe;
78
+ --li-bg-banner: #78350f;
79
+ --li-border-banner: #f59e0b;
80
+ --li-text-banner: #fef3c7;
81
+ --li-bg-button: #3b82f6;
82
+ --li-bg-button-hover: #1e40af;
83
+ --li-text-button: #fff;
84
+ }
85
+
86
+ @media (prefers-color-scheme: dark) {
87
+ :root {
88
+ --li-bg-card: #1f2937;
89
+ --li-border-card: #374151;
90
+ --li-text-primary: #f3f4f6;
91
+ --li-text-secondary: #d1d5db;
92
+ --li-text-input: #f3f4f6;
93
+ --li-bg-input: #111827;
94
+ --li-border-input: #4b5563;
95
+ --li-focus-ring: rgba(59, 130, 246, 0.1);
96
+ --li-focus-border: #3b82f6;
97
+ --li-unit-color: #60a5fa;
98
+ --li-bg-result: #111827;
99
+ --li-border-result: #374151;
100
+ --li-label-result: #d1d5db;
101
+ --li-value-result: #f3f4f6;
102
+ --li-bg-total-gradient-1: #1e3a8a;
103
+ --li-bg-total-gradient-2: #1e40af;
104
+ --li-border-total: #3b82f6;
105
+ --li-label-total: #93c5fd;
106
+ --li-value-total: #dbeafe;
107
+ --li-bg-banner: #78350f;
108
+ --li-border-banner: #f59e0b;
109
+ --li-text-banner: #fef3c7;
110
+ --li-bg-button: #3b82f6;
111
+ --li-bg-button-hover: #1e40af;
112
+ --li-text-button: #fff;
113
+ }
114
+ }
115
+
116
+ .li-container {
117
+ display: flex;
118
+ justify-content: center;
119
+ width: 100%;
120
+ padding: 2rem 1rem;
121
+ }
122
+
123
+ .li-card {
124
+ background: var(--li-bg-card);
125
+ border: 1px solid var(--li-border-card);
126
+ border-radius: 12px;
127
+ padding: 2rem;
128
+ width: 100%;
129
+ max-width: 600px;
130
+ color: var(--li-text-primary);
131
+ }
132
+
133
+ .li-input-grid {
134
+ display: grid;
135
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
136
+ gap: 1.5rem;
137
+ margin-bottom: 2rem;
138
+ }
139
+
140
+ .li-input-group {
141
+ display: flex;
142
+ flex-direction: column;
143
+ }
144
+
145
+ .li-input-group label {
146
+ font-weight: 600;
147
+ margin-bottom: 0.5rem;
148
+ font-size: 0.9rem;
149
+ color: var(--li-text-primary);
150
+ }
151
+
152
+ .li-input-wrapper {
153
+ position: relative;
154
+ display: flex;
155
+ align-items: center;
156
+ }
157
+
158
+ .li-input-wrapper input,
159
+ .li-input-wrapper select {
160
+ width: 100%;
161
+ padding: 0.75rem 1rem;
162
+ border: 1px solid var(--li-border-input);
163
+ border-radius: 8px;
164
+ font-size: 1rem;
165
+ background: var(--li-bg-input);
166
+ color: var(--li-text-input);
167
+ color-scheme: light;
168
+ }
169
+
170
+ .theme-dark .li-input-wrapper input,
171
+ .theme-dark .li-input-wrapper select,
172
+ [data-theme='dark'] .li-input-wrapper input,
173
+ [data-theme='dark'] .li-input-wrapper select {
174
+ color-scheme: dark;
175
+ }
176
+
177
+ .li-input-wrapper select {
178
+ padding-right: 2.5rem;
179
+ appearance: none;
180
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233b82f6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
181
+ background-repeat: no-repeat;
182
+ background-position: right 0.75rem center;
183
+ background-size: 12px 8px;
184
+ }
185
+
186
+ .theme-dark .li-input-wrapper select,
187
+ [data-theme='dark'] .li-input-wrapper select {
188
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2360a5fa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
189
+ }
190
+
191
+ .li-input-wrapper input:focus,
192
+ .li-input-wrapper select:focus {
193
+ outline: none;
194
+ border-color: var(--li-focus-border);
195
+ box-shadow: 0 0 0 3px var(--li-focus-ring);
196
+ }
197
+
198
+ .li-input-unit {
199
+ position: absolute;
200
+ right: 1rem;
201
+ font-weight: 600;
202
+ color: var(--li-unit-color);
203
+ pointer-events: none;
204
+ }
205
+
206
+ .li-results-display {
207
+ margin-bottom: 2rem;
208
+ }
209
+
210
+ .li-total-interest-box {
211
+ background: linear-gradient(135deg, var(--li-bg-total-gradient-1), var(--li-bg-total-gradient-2));
212
+ border: 2px solid var(--li-border-total);
213
+ border-radius: 12px;
214
+ padding: 1.5rem;
215
+ text-align: center;
216
+ margin-bottom: 1.5rem;
217
+ }
218
+
219
+ .li-total-label {
220
+ display: block;
221
+ font-size: 0.9rem;
222
+ font-weight: 600;
223
+ color: var(--li-label-total);
224
+ margin-bottom: 0.5rem;
225
+ }
226
+
227
+ .li-total-value {
228
+ display: block;
229
+ font-size: 2rem;
230
+ font-weight: 800;
231
+ color: var(--li-value-total);
232
+ }
233
+
234
+ .li-breakdown-grid {
235
+ display: grid;
236
+ grid-template-columns: repeat(3, 1fr);
237
+ gap: 1rem;
238
+ margin-bottom: 1.5rem;
239
+ }
240
+
241
+ .li-sub-result-card {
242
+ background: var(--li-bg-result);
243
+ border: 1px solid var(--li-border-result);
244
+ border-radius: 8px;
245
+ padding: 1rem;
246
+ text-align: center;
247
+ }
248
+
249
+ .li-sub-label {
250
+ display: block;
251
+ font-size: 0.8rem;
252
+ font-weight: 600;
253
+ color: var(--li-label-result);
254
+ margin-bottom: 0.5rem;
255
+ }
256
+
257
+ .li-sub-value {
258
+ display: block;
259
+ font-size: 1.3rem;
260
+ font-weight: 700;
261
+ color: var(--li-value-result);
262
+ }
263
+
264
+ .li-info-banner {
265
+ background: var(--li-bg-banner);
266
+ border-left: 4px solid var(--li-border-banner);
267
+ border-radius: 6px;
268
+ padding: 1rem;
269
+ margin-bottom: 1.5rem;
270
+ }
271
+
272
+ .li-info-banner p {
273
+ margin: 0;
274
+ font-size: 0.9rem;
275
+ color: var(--li-text-banner);
276
+ }
277
+
278
+ .action-row {
279
+ display: flex;
280
+ gap: 1rem;
281
+ }
282
+
283
+ .li-btn-primary {
284
+ flex: 1;
285
+ padding: 0.75rem 1.5rem;
286
+ background: var(--li-bg-button);
287
+ color: var(--li-text-button);
288
+ border: none;
289
+ border-radius: 8px;
290
+ font-weight: 600;
291
+ cursor: pointer;
292
+ transition: all 0.2s;
293
+ }
294
+
295
+ .li-btn-primary:hover {
296
+ background: var(--li-bg-button-hover);
297
+ transform: translateY(-2px);
298
+ }
299
+
300
+ .li-btn-primary:active {
301
+ transform: translateY(0);
302
+ }
303
+
304
+ .fade-in {
305
+ animation: fade-in-up 0.4s ease-out;
306
+ }
307
+
308
+ @keyframes fade-in-up {
309
+ from {
310
+ opacity: 0;
311
+ transform: translateY(20px);
312
+ }
313
+ to {
314
+ opacity: 1;
315
+ transform: translateY(0);
316
+ }
317
+ }
318
+
319
+ @media (prefers-color-scheme: dark) {
320
+ .li-card {
321
+ background: #1f2937;
322
+ border-color: #374151;
323
+ color: #f3f4f6;
324
+ }
325
+
326
+ .li-input-group label {
327
+ color: #d1d5db;
328
+ }
329
+
330
+ .li-input-wrapper input,
331
+ .li-input-wrapper select {
332
+ background: #111827;
333
+ border-color: #4b5563;
334
+ color: #f3f4f6;
335
+ }
336
+
337
+ .li-input-unit {
338
+ color: #60a5fa;
339
+ }
340
+
341
+ .li-sub-result-card {
342
+ background: #111827;
343
+ border-color: #374151;
344
+ }
345
+
346
+ .li-sub-label {
347
+ color: #d1d5db;
348
+ }
349
+
350
+ .li-sub-value {
351
+ color: #f3f4f6;
352
+ }
353
+
354
+ .li-info-banner {
355
+ background: #78350f;
356
+ color: #fef3c7;
357
+ }
358
+
359
+ .li-info-banner p {
360
+ color: #fef3c7;
361
+ }
362
+
363
+ .li-total-interest-box {
364
+ background: linear-gradient(135deg, #1e3a8a, #1e40af);
365
+ border-color: #3b82f6;
366
+ }
367
+
368
+ .li-total-label {
369
+ color: #93c5fd;
370
+ }
371
+
372
+ .li-total-value {
373
+ color: #dbeafe;
374
+ }
375
+
376
+ .li-btn-primary {
377
+ background: #3b82f6;
378
+ color: #fff;
379
+ }
380
+
381
+ .li-btn-primary:hover {
382
+ background: #1e40af;
383
+ }
384
+ }
385
+
386
+ @media (max-width: 640px) {
387
+ .li-input-grid {
388
+ grid-template-columns: 1fr;
389
+ }
390
+
391
+ .li-breakdown-grid {
392
+ grid-template-columns: 1fr;
393
+ }
394
+
395
+ .li-total-value {
396
+ font-size: 1.5rem;
397
+ }
398
+ }