@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.
- package/package.json +5 -3
- package/scripts/postinstall.mjs +27 -0
- package/src/tool/compoundInterest/component.astro +0 -376
- package/src/tool/compoundInterest/compound-interest-calculator.css +79 -0
- package/src/tool/courtFeeCalculator/component.astro +0 -237
- package/src/tool/courtFeeCalculator/spanish-court-fees-calculator.css +235 -0
- package/src/tool/debtSnowball/component.astro +0 -636
- package/src/tool/debtSnowball/debt-snowball-calculator.css +634 -0
- package/src/tool/fireCalculator/component.astro +0 -334
- package/src/tool/fireCalculator/four-percent-rule-fire-calculator.css +332 -0
- package/src/tool/ibanBicSwiftConverter/component.astro +0 -414
- package/src/tool/ibanBicSwiftConverter/iban-to-bic-swift-converter.css +412 -0
- package/src/tool/inflation/component.astro +0 -280
- package/src/tool/inflation/inflation-calculator-spain.css +278 -0
- package/src/tool/lateInterest/component.astro +0 -400
- package/src/tool/lateInterest/late-interest-calculator.css +398 -0
- package/src/tool/legalInterestRate/component.astro +0 -509
- package/src/tool/legalInterestRate/legal-interest-on-money-spain.css +507 -0
- package/src/tool/lotteryOptimizer/component.astro +0 -561
- package/src/tool/lotteryOptimizer/spain-lottery-optimizer.css +17 -0
- package/src/tool/mortgage/component.astro +0 -641
- package/src/tool/mortgage/mortgage-calculator.css +639 -0
- package/src/tool/percentageCalculator/component.astro +0 -336
- package/src/tool/percentageCalculator/percentage-calculator.css +289 -0
- package/src/tool/rentIncreaseCalculator/component.astro +0 -372
- package/src/tool/rentIncreaseCalculator/rent-increase-calculator.css +370 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ric-bg-card: #fff;
|
|
3
|
+
--ric-border-card: #eef2f6;
|
|
4
|
+
--ric-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 20px 40px -8px rgba(0, 0, 0, 0.05);
|
|
5
|
+
--ric-header-bg: linear-gradient(90deg, #10b981, #14b8a6);
|
|
6
|
+
--ric-text-title: #0f172a;
|
|
7
|
+
--ric-text-secondary: #64748b;
|
|
8
|
+
--ric-text-primary: #1e293b;
|
|
9
|
+
--ric-bg-input-section: #f8fafc;
|
|
10
|
+
--ric-border-input-section: #f1f5f9;
|
|
11
|
+
--ric-bg-input: #fff;
|
|
12
|
+
--ric-text-input: #1e293b;
|
|
13
|
+
--ric-border-input: transparent;
|
|
14
|
+
--ric-focus-border: #10b981;
|
|
15
|
+
--ric-focus-ring: rgba(16, 185, 129, 0.15);
|
|
16
|
+
--ric-icon-color: #10b981;
|
|
17
|
+
--ric-bg-result: #fff;
|
|
18
|
+
--ric-border-result: #eef2f6;
|
|
19
|
+
--ric-text-result-value: #0f172a;
|
|
20
|
+
--ric-text-result-label: #94a3b8;
|
|
21
|
+
--ric-bg-bar: #f1f5f9;
|
|
22
|
+
--ric-bg-bar-fill: #10b981;
|
|
23
|
+
--ric-text-bar: #64748b;
|
|
24
|
+
--ric-bg-badge: #d1fae5;
|
|
25
|
+
--ric-text-badge: #059669;
|
|
26
|
+
--ric-bg-button: #0f172a;
|
|
27
|
+
--ric-text-button: #fff;
|
|
28
|
+
--ric-bg-button-hover: #1e293b;
|
|
29
|
+
--ric-highlight-color: #10b981;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.theme-dark {
|
|
33
|
+
--ric-bg-card: #0f172a;
|
|
34
|
+
--ric-border-card: rgba(255, 255, 255, 0.05);
|
|
35
|
+
--ric-text-title: #f8fafc;
|
|
36
|
+
--ric-text-secondary: #94a3b8;
|
|
37
|
+
--ric-text-primary: #f8fafc;
|
|
38
|
+
--ric-bg-input-section: rgba(30, 41, 59, 0.5);
|
|
39
|
+
--ric-border-input-section: rgba(255, 255, 255, 0.05);
|
|
40
|
+
--ric-bg-input: #1e293b;
|
|
41
|
+
--ric-text-input: #f8fafc;
|
|
42
|
+
--ric-border-input: #334155;
|
|
43
|
+
--ric-focus-border: #10b981;
|
|
44
|
+
--ric-focus-ring: rgba(16, 185, 129, 0.15);
|
|
45
|
+
--ric-icon-color: #34d399;
|
|
46
|
+
--ric-bg-result: #1e293b;
|
|
47
|
+
--ric-border-result: rgba(255, 255, 255, 0.05);
|
|
48
|
+
--ric-text-result-value: #f8fafc;
|
|
49
|
+
--ric-text-result-label: #94a3b8;
|
|
50
|
+
--ric-bg-bar: #1e293b;
|
|
51
|
+
--ric-bg-bar-fill: #10b981;
|
|
52
|
+
--ric-text-bar: #cbd5e1;
|
|
53
|
+
--ric-bg-badge: rgba(16, 185, 129, 0.1);
|
|
54
|
+
--ric-text-badge: #6ee7b7;
|
|
55
|
+
--ric-bg-button: #10b981;
|
|
56
|
+
--ric-text-button: #fff;
|
|
57
|
+
--ric-bg-button-hover: #059669;
|
|
58
|
+
--ric-highlight-color: #34d399;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-theme='dark'] {
|
|
62
|
+
--ric-bg-card: #0f172a;
|
|
63
|
+
--ric-border-card: rgba(255, 255, 255, 0.05);
|
|
64
|
+
--ric-text-title: #f8fafc;
|
|
65
|
+
--ric-text-secondary: #94a3b8;
|
|
66
|
+
--ric-text-primary: #f8fafc;
|
|
67
|
+
--ric-bg-input-section: rgba(30, 41, 59, 0.5);
|
|
68
|
+
--ric-border-input-section: rgba(255, 255, 255, 0.05);
|
|
69
|
+
--ric-bg-input: #1e293b;
|
|
70
|
+
--ric-text-input: #f8fafc;
|
|
71
|
+
--ric-border-input: #334155;
|
|
72
|
+
--ric-focus-border: #10b981;
|
|
73
|
+
--ric-focus-ring: rgba(16, 185, 129, 0.15);
|
|
74
|
+
--ric-icon-color: #34d399;
|
|
75
|
+
--ric-bg-result: #1e293b;
|
|
76
|
+
--ric-border-result: rgba(255, 255, 255, 0.05);
|
|
77
|
+
--ric-text-result-value: #f8fafc;
|
|
78
|
+
--ric-text-result-label: #94a3b8;
|
|
79
|
+
--ric-bg-bar: #1e293b;
|
|
80
|
+
--ric-bg-bar-fill: #10b981;
|
|
81
|
+
--ric-text-bar: #cbd5e1;
|
|
82
|
+
--ric-bg-badge: rgba(16, 185, 129, 0.1);
|
|
83
|
+
--ric-text-badge: #6ee7b7;
|
|
84
|
+
--ric-bg-button: #10b981;
|
|
85
|
+
--ric-text-button: #fff;
|
|
86
|
+
--ric-bg-button-hover: #059669;
|
|
87
|
+
--ric-highlight-color: #34d399;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ric-container {
|
|
91
|
+
width: 100%;
|
|
92
|
+
max-width: 900px;
|
|
93
|
+
margin: 0 auto;
|
|
94
|
+
perspective: 1000px;
|
|
95
|
+
padding: 2rem 1rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ric-card {
|
|
99
|
+
background: var(--ric-bg-card);
|
|
100
|
+
border: 1px solid var(--ric-border-card);
|
|
101
|
+
border-radius: 32px;
|
|
102
|
+
padding: 3rem;
|
|
103
|
+
box-shadow: var(--ric-shadow-card);
|
|
104
|
+
position: relative;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
color-scheme: light;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.theme-dark .ric-card,
|
|
110
|
+
[data-theme='dark'] .ric-card {
|
|
111
|
+
color-scheme: dark;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ric-card::before {
|
|
115
|
+
content: '';
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
right: 0;
|
|
120
|
+
height: 6px;
|
|
121
|
+
background: var(--ric-header-bg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ric-header {
|
|
125
|
+
text-align: left;
|
|
126
|
+
margin-bottom: 3rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ric-header h3 {
|
|
130
|
+
font-size: 2.25rem;
|
|
131
|
+
font-weight: 950;
|
|
132
|
+
color: var(--ric-text-title);
|
|
133
|
+
letter-spacing: -0.04em;
|
|
134
|
+
margin-bottom: 0.75rem;
|
|
135
|
+
line-height: 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ric-header p {
|
|
139
|
+
color: var(--ric-text-secondary);
|
|
140
|
+
font-size: 1.1rem;
|
|
141
|
+
max-width: 500px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ric-layout {
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-template-columns: 1fr 1fr;
|
|
147
|
+
gap: 2rem;
|
|
148
|
+
margin-bottom: 2rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ric-inputs-section {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
gap: 1.5rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ric-input-group {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
gap: 0.75rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ric-input-group label {
|
|
164
|
+
font-size: 0.875rem;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
color: var(--ric-text-primary);
|
|
167
|
+
text-transform: uppercase;
|
|
168
|
+
letter-spacing: 0.05em;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ric-input-wrapper {
|
|
172
|
+
position: relative;
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ric-input-wrapper input,
|
|
178
|
+
.ric-input-wrapper select {
|
|
179
|
+
width: 100%;
|
|
180
|
+
padding: 0.875rem 1rem;
|
|
181
|
+
padding-left: 1rem;
|
|
182
|
+
border: 1px solid var(--ric-border-input);
|
|
183
|
+
border-radius: 12px;
|
|
184
|
+
background: var(--ric-bg-input);
|
|
185
|
+
color: var(--ric-text-input);
|
|
186
|
+
font-size: 1rem;
|
|
187
|
+
transition: all 0.2s;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.ric-input-wrapper input:focus,
|
|
191
|
+
.ric-input-wrapper select:focus {
|
|
192
|
+
outline: none;
|
|
193
|
+
border-color: var(--ric-focus-border);
|
|
194
|
+
box-shadow: 0 0 0 3px var(--ric-focus-ring);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ric-input-unit {
|
|
198
|
+
position: absolute;
|
|
199
|
+
right: 1rem;
|
|
200
|
+
font-size: 0.875rem;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
color: var(--ric-text-secondary);
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ric-results-section {
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
gap: 1.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ric-result-header {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
gap: 0.5rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ric-result-label {
|
|
219
|
+
font-size: 0.875rem;
|
|
220
|
+
font-weight: 600;
|
|
221
|
+
color: var(--ric-text-result-label);
|
|
222
|
+
text-transform: uppercase;
|
|
223
|
+
letter-spacing: 0.05em;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.ric-result-main-value {
|
|
227
|
+
font-size: 2.5rem;
|
|
228
|
+
font-weight: 900;
|
|
229
|
+
color: var(--ric-text-result-value);
|
|
230
|
+
letter-spacing: -0.02em;
|
|
231
|
+
overflow-wrap: break-word;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ric-comparison-bar {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: 0.75rem;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.ric-bar-base {
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 24px;
|
|
243
|
+
background: var(--ric-bg-bar);
|
|
244
|
+
border-radius: 12px;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.ric-bar-fill {
|
|
249
|
+
height: 100%;
|
|
250
|
+
background: var(--ric-bg-bar-fill);
|
|
251
|
+
transition: width 0.3s ease;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.ric-bar-labels {
|
|
255
|
+
display: flex;
|
|
256
|
+
justify-content: space-between;
|
|
257
|
+
font-size: 0.875rem;
|
|
258
|
+
font-weight: 600;
|
|
259
|
+
color: var(--ric-text-bar);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.ric-summary-details {
|
|
263
|
+
display: grid;
|
|
264
|
+
grid-template-columns: 1fr 1fr;
|
|
265
|
+
gap: 1rem;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ric-detail-item {
|
|
269
|
+
display: flex;
|
|
270
|
+
flex-direction: column;
|
|
271
|
+
gap: 0.5rem;
|
|
272
|
+
padding: 1rem;
|
|
273
|
+
background: var(--ric-bg-result);
|
|
274
|
+
border: 1px solid var(--ric-border-result);
|
|
275
|
+
border-radius: 12px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ric-detail-label {
|
|
279
|
+
font-size: 0.75rem;
|
|
280
|
+
font-weight: 700;
|
|
281
|
+
color: var(--ric-text-result-label);
|
|
282
|
+
text-transform: uppercase;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ric-detail-value {
|
|
286
|
+
font-size: 1.25rem;
|
|
287
|
+
font-weight: 800;
|
|
288
|
+
color: var(--ric-text-result-value);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.ric-highlight {
|
|
292
|
+
color: var(--ric-highlight-color);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.ric-info-footer {
|
|
296
|
+
display: flex;
|
|
297
|
+
justify-content: space-between;
|
|
298
|
+
align-items: center;
|
|
299
|
+
padding-top: 2rem;
|
|
300
|
+
border-top: 1px solid var(--ric-border-card);
|
|
301
|
+
gap: 1rem;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.ric-legal-badge {
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
gap: 0.75rem;
|
|
308
|
+
padding: 0.875rem 1.25rem;
|
|
309
|
+
background: var(--ric-bg-badge);
|
|
310
|
+
color: var(--ric-text-badge);
|
|
311
|
+
border-radius: 12px;
|
|
312
|
+
font-size: 0.875rem;
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ric-action-btn {
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
gap: 0.75rem;
|
|
320
|
+
padding: 0.875rem 1.5rem;
|
|
321
|
+
background: var(--ric-bg-button);
|
|
322
|
+
color: var(--ric-text-button);
|
|
323
|
+
border: none;
|
|
324
|
+
border-radius: 12px;
|
|
325
|
+
font-size: 0.875rem;
|
|
326
|
+
font-weight: 600;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
transition: all 0.2s;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ric-action-btn:hover {
|
|
332
|
+
background: var(--ric-bg-button-hover);
|
|
333
|
+
transform: translateY(-2px);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ric-results-section.ric-hidden {
|
|
337
|
+
display: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ric-input-group.ric-hidden {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@media (max-width: 768px) {
|
|
345
|
+
.ric-layout {
|
|
346
|
+
grid-template-columns: 1fr;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.ric-header h3 {
|
|
350
|
+
font-size: 1.75rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ric-result-main-value {
|
|
354
|
+
font-size: 2rem;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ric-info-footer {
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.ric-action-btn {
|
|
362
|
+
width: 100%;
|
|
363
|
+
justify-content: center;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.ric-legal-badge {
|
|
367
|
+
width: 100%;
|
|
368
|
+
justify-content: center;
|
|
369
|
+
}
|
|
370
|
+
}
|