@jjlmoya/utils-cooking 1.20.0 → 1.22.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-cooking",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -34,7 +34,7 @@
34
34
  position: relative;
35
35
  }
36
36
 
37
- :global(.theme-dark) .banana-card {
37
+ .theme-dark .banana-card {
38
38
  background: rgba(24, 24, 27, 0.4);
39
39
  border-color: rgba(113, 113, 122, 0.5);
40
40
  box-shadow: 0 32px 64px 0 rgba(0, 0, 0, 0.3);
@@ -155,7 +155,7 @@
155
155
  backdrop-filter: blur(12px);
156
156
  }
157
157
 
158
- :global(.theme-dark) .status-badge {
158
+ .theme-dark .status-badge {
159
159
  background: rgba(0, 0, 0, 0.2);
160
160
  border-color: rgba(255, 255, 255, 0.05);
161
161
  }
@@ -175,7 +175,7 @@
175
175
  color: var(--bc-text-dark);
176
176
  }
177
177
 
178
- :global(.theme-dark) .status-name {
178
+ .theme-dark .status-name {
179
179
  color: var(--bc-text-light);
180
180
  }
181
181
 
@@ -188,7 +188,7 @@
188
188
  min-height: 3em;
189
189
  }
190
190
 
191
- :global(.theme-dark) .status-description {
191
+ .theme-dark .status-description {
192
192
  color: var(--bc-text-muted);
193
193
  }
194
194
 
@@ -209,7 +209,7 @@
209
209
  gap: 2rem;
210
210
  }
211
211
 
212
- :global(.theme-dark) .controls-panel {
212
+ .theme-dark .controls-panel {
213
213
  background: rgba(0, 0, 0, 0.2);
214
214
  border-color: rgba(255, 255, 255, 0.05);
215
215
  }
@@ -253,7 +253,7 @@
253
253
  appearance: none;
254
254
  }
255
255
 
256
- :global(.theme-dark) .ripeness-slider {
256
+ .theme-dark .ripeness-slider {
257
257
  background: #27272a;
258
258
  }
259
259
 
@@ -269,7 +269,7 @@
269
269
  transition: all 0.2s;
270
270
  }
271
271
 
272
- :global(.theme-dark) .ripeness-slider::-webkit-slider-thumb {
272
+ .theme-dark .ripeness-slider::-webkit-slider-thumb {
273
273
  border-color: var(--bc-text-dark);
274
274
  }
275
275
 
@@ -389,7 +389,7 @@
389
389
  color: var(--bc-blue-dark);
390
390
  }
391
391
 
392
- :global(.theme-dark) .setting-value {
392
+ .theme-dark .setting-value {
393
393
  color: var(--bc-blue-lighter);
394
394
  }
395
395
 
@@ -405,7 +405,7 @@
405
405
  appearance: none;
406
406
  }
407
407
 
408
- :global(.theme-dark) .setting-slider {
408
+ .theme-dark .setting-slider {
409
409
  background: rgba(59, 130, 246, 0.5);
410
410
  }
411
411
 
@@ -430,7 +430,7 @@
430
430
  background: var(--bc-green);
431
431
  }
432
432
 
433
- :global(.theme-dark) .partner-btn.active {
433
+ .theme-dark .partner-btn.active {
434
434
  background: var(--bc-green);
435
435
  }
436
436
 
@@ -465,7 +465,7 @@
465
465
  text-transform: uppercase;
466
466
  }
467
467
 
468
- :global(.theme-dark) .partner-title {
468
+ .theme-dark .partner-title {
469
469
  color: var(--bc-text-light);
470
470
  }
471
471
 
@@ -494,7 +494,7 @@
494
494
  border: 1px solid var(--bc-gray-light);
495
495
  }
496
496
 
497
- :global(.theme-dark) .toggle-switch {
497
+ .theme-dark .toggle-switch {
498
498
  background: #27272a;
499
499
  border-color: #3f3f46;
500
500
  }
@@ -525,7 +525,7 @@
525
525
  border: 1px solid #e4e4e7;
526
526
  }
527
527
 
528
- :global(.theme-dark) .info-box {
528
+ .theme-dark .info-box {
529
529
  background: rgba(113, 113, 122, 0.4);
530
530
  border-color: rgba(113, 113, 122, 0.5);
531
531
  }
@@ -564,7 +564,7 @@
564
564
  margin: 0;
565
565
  }
566
566
 
567
- :global(.theme-dark) .info-text {
567
+ .theme-dark .info-text {
568
568
  color: var(--bc-gray-light);
569
569
  }
570
570
 
@@ -572,7 +572,7 @@
572
572
  color: var(--bc-orange);
573
573
  }
574
574
 
575
- :global(.theme-dark) .info-box.acceleration .info-title {
575
+ .theme-dark .info-box.acceleration .info-title {
576
576
  color: var(--bc-yellow);
577
577
  }
578
578
 
@@ -582,6 +582,6 @@
582
582
  font-weight: 900;
583
583
  }
584
584
 
585
- :global(.theme-dark) .info-box.acceleration .info-text {
585
+ .theme-dark .info-box.acceleration .info-text {
586
586
  color: var(--bc-text-light);
587
587
  }
@@ -282,7 +282,7 @@
282
282
  }
283
283
  }
284
284
 
285
- :global(.brine-visualization) {
285
+ .brine-visualization {
286
286
  display: flex;
287
287
  flex-direction: column;
288
288
  align-items: center;
@@ -292,7 +292,7 @@
292
292
  position: relative;
293
293
  }
294
294
 
295
- :global(.brine-jar) {
295
+ .brine-jar {
296
296
  position: relative;
297
297
  width: 12rem;
298
298
  height: 16rem;
@@ -304,7 +304,7 @@
304
304
  overflow: hidden;
305
305
  }
306
306
 
307
- :global(.brine-jar-cap) {
307
+ .brine-jar-cap {
308
308
  position: absolute;
309
309
  top: -0.25rem;
310
310
  left: 50%;
@@ -315,7 +315,7 @@
315
315
  border-radius: 0.5rem 0.5rem 0 0;
316
316
  }
317
317
 
318
- :global(.brine-water) {
318
+ .brine-water {
319
319
  position: absolute;
320
320
  bottom: 0;
321
321
  left: 0;
@@ -325,7 +325,7 @@
325
325
  height: 50%;
326
326
  }
327
327
 
328
- :global(.brine-water)::before {
328
+ .brine-water::before {
329
329
  content: '';
330
330
  position: absolute;
331
331
  top: 0;
@@ -355,7 +355,7 @@
355
355
  }
356
356
  }
357
357
 
358
- :global(.brine-product) {
358
+ .brine-product {
359
359
  position: absolute;
360
360
  bottom: 1rem;
361
361
  left: 50%;
@@ -372,7 +372,7 @@
372
372
  height: 40%;
373
373
  }
374
374
 
375
- :global(.brine-product-label) {
375
+ .brine-product-label {
376
376
  font-size: 0.75rem;
377
377
  font-weight: 700;
378
378
  color: rgba(0, 0, 0, 0.3);
@@ -380,7 +380,7 @@
380
380
  letter-spacing: 0.05em;
381
381
  }
382
382
 
383
- :global(.brine-particles) {
383
+ .brine-particles {
384
384
  position: absolute;
385
385
  inset: 0;
386
386
  pointer-events: none;
@@ -163,455 +163,3 @@ const { ui } = Astro.props;
163
163
  </script>
164
164
 
165
165
 
166
- <style>
167
- .cw-container {
168
- width: 100%;
169
- max-width: 100%;
170
- padding: 1rem;
171
- }
172
-
173
- .cw-card {
174
- background: var(--cw-bg-card);
175
- border: 1px solid var(--cw-border);
176
- border-radius: var(--cw-radius);
177
- box-shadow: var(--cw-shadow-xl);
178
- overflow: hidden;
179
- transition: all 0.3s ease;
180
- }
181
-
182
- .cw-progress-bar {
183
- height: 0.375rem;
184
- width: 0%;
185
- background: linear-gradient(to right, var(--cw-primary), hsl(270deg, 94%, 60%));
186
- transition: width 0.5s ease;
187
- }
188
-
189
- .cw-content {
190
- padding: 2rem;
191
- }
192
-
193
- @media (max-width: 1024px) {
194
- .cw-content {
195
- padding: 1.5rem;
196
- }
197
- }
198
-
199
- @media (max-width: 640px) {
200
- .cw-content {
201
- padding: 1rem;
202
- }
203
- }
204
-
205
- .cw-grid {
206
- display: grid;
207
- grid-template-columns: 1fr;
208
- gap: 2rem;
209
- }
210
-
211
- @media (min-width: 1024px) {
212
- .cw-grid {
213
- grid-template-columns: 1.4fr 1fr;
214
- gap: 2rem;
215
- }
216
- }
217
-
218
- .cw-left {
219
- display: flex;
220
- flex-direction: column;
221
- gap: 2rem;
222
- }
223
-
224
- .cw-right {
225
- display: flex;
226
- flex-direction: column;
227
- gap: 1.5rem;
228
- }
229
-
230
- .cw-section {
231
- display: flex;
232
- flex-direction: column;
233
- gap: 1rem;
234
- }
235
-
236
- .cw-step-label {
237
- display: flex;
238
- align-items: center;
239
- gap: 0.75rem;
240
- font-size: 0.625rem;
241
- font-weight: 900;
242
- color: var(--cw-text-muted);
243
- text-transform: uppercase;
244
- letter-spacing: 0.2em;
245
- }
246
-
247
- .cw-step-number {
248
- display: flex;
249
- align-items: center;
250
- justify-content: center;
251
- width: 1.25rem;
252
- height: 1.25rem;
253
- border-radius: 50%;
254
- background: var(--cw-primary-light);
255
- color: var(--cw-primary);
256
- font-weight: 900;
257
- font-size: 0.625rem;
258
- flex-shrink: 0;
259
- }
260
-
261
- :global(.theme-dark) .cw-step-number {
262
- background: hsl(240deg, 100%, 20%);
263
- }
264
-
265
- .cw-style-grid {
266
- display: grid;
267
- grid-template-columns: repeat(2, 1fr);
268
- gap: 0.75rem;
269
- }
270
-
271
- .cw-style-btn {
272
- display: flex;
273
- flex-direction: column;
274
- align-items: flex-start;
275
- gap: 0.5rem;
276
- padding: 1rem;
277
- border: 2px solid var(--cw-border);
278
- border-radius: 0.75rem;
279
- background: var(--cw-bg-card);
280
- color: var(--cw-text-muted);
281
- cursor: pointer;
282
- transition: all 0.3s ease;
283
- text-align: left;
284
- font-size: inherit;
285
- }
286
-
287
- .cw-style-btn:hover {
288
- border-color: var(--cw-primary-light);
289
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
290
- }
291
-
292
- .cw-style-btn.active {
293
- background: var(--cw-primary-light);
294
- border-color: var(--cw-primary);
295
- color: var(--cw-primary);
296
- }
297
-
298
- :global(.theme-dark) .cw-style-btn.active {
299
- background: hsl(240deg, 100%, 35%);
300
- color: hsl(0deg, 0%, 100%);
301
- }
302
-
303
- :global(.theme-dark) .cw-style-btn.active .cw-style-name {
304
- color: hsl(0deg, 0%, 100%);
305
- }
306
-
307
- :global(.theme-dark) .cw-style-btn.active .cw-style-desc {
308
- color: hsl(0deg, 0%, 100%);
309
- }
310
-
311
- .cw-icon {
312
- width: 1.5rem;
313
- height: 1.5rem;
314
- }
315
-
316
- .cw-icon-large {
317
- width: 6rem;
318
- height: 6rem;
319
- color: var(--cw-text-light);
320
- }
321
-
322
- .cw-icon-orange {
323
- color: hsl(33deg, 100%, 50%);
324
- }
325
-
326
- .cw-icon-yellow {
327
- color: hsl(45deg, 100%, 50%);
328
- }
329
-
330
- .cw-icon-red {
331
- color: hsl(0deg, 100%, 50%);
332
- }
333
-
334
- .cw-icon-blue {
335
- color: hsl(217deg, 100%, 50%);
336
- }
337
-
338
- .cw-style-name {
339
- font-size: 0.75rem;
340
- font-weight: 900;
341
- display: block;
342
- color: var(--cw-text-main);
343
- }
344
-
345
- .cw-style-btn.active .cw-style-name {
346
- color: var(--cw-primary);
347
- }
348
-
349
- .cw-style-desc {
350
- font-weight: 600;
351
- opacity: 0.7;
352
- display: block;
353
- text-transform: uppercase;
354
- }
355
-
356
- .cw-maint-grid {
357
- display: grid;
358
- grid-template-columns: 1fr;
359
- gap: 0.75rem;
360
- }
361
-
362
- @media (min-width: 640px) {
363
- .cw-maint-grid {
364
- grid-template-columns: repeat(3, 1fr);
365
- }
366
- }
367
-
368
- .cw-maint-btn {
369
- display: flex;
370
- flex-direction: column;
371
- align-items: center;
372
- text-align: center;
373
- gap: 0.75rem;
374
- padding: 1.25rem;
375
- border: 2px solid var(--cw-border);
376
- border-radius: 0.75rem;
377
- background: var(--cw-bg-card);
378
- color: var(--cw-text-muted);
379
- cursor: pointer;
380
- transition: all 0.3s ease;
381
- font-size: inherit;
382
- }
383
-
384
- .cw-maint-btn:hover {
385
- border-color: var(--cw-primary-light);
386
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
387
- }
388
-
389
- .cw-maint-btn.active {
390
- background: var(--cw-primary-light);
391
- border-color: var(--cw-primary);
392
- }
393
-
394
- :global(.theme-dark) .cw-maint-btn.active {
395
- background: hsl(240deg, 100%, 20%);
396
- }
397
-
398
- .cw-maint-icon {
399
- width: 3rem;
400
- height: 3rem;
401
- border-radius: 0.75rem;
402
- background: var(--cw-bg-app);
403
- display: flex;
404
- align-items: center;
405
- justify-content: center;
406
- color: var(--cw-text-muted);
407
- transition: all 0.3s ease;
408
- }
409
-
410
- .cw-maint-btn.active .cw-maint-icon {
411
- color: var(--cw-primary);
412
- }
413
-
414
- .cw-maint-btn:hover .cw-maint-icon {
415
- color: var(--cw-primary);
416
- }
417
-
418
- .cw-maint-name {
419
- font-size: 0.75rem;
420
- font-weight: 900;
421
- display: block;
422
- color: var(--cw-text-main);
423
- }
424
-
425
- .cw-maint-btn.active .cw-maint-name {
426
- color: var(--cw-primary);
427
- }
428
-
429
- .cw-maint-desc {
430
- font-size: 0.625rem;
431
- font-weight: 500;
432
- opacity: 0.7;
433
- display: block;
434
- line-height: 1.3;
435
- }
436
-
437
- .cw-result-card {
438
- background: hsl(217deg, 33%, 17%);
439
- border-radius: var(--cw-radius);
440
- padding: 2rem;
441
- color: hsl(0deg, 0%, 100%);
442
- box-shadow: var(--cw-shadow-xl);
443
- position: relative;
444
- overflow: hidden;
445
- min-height: 320px;
446
- display: flex;
447
- flex-direction: column;
448
- justify-content: center;
449
- transition: all 0.3s ease;
450
- }
451
-
452
- .cw-card-bg {
453
- position: absolute;
454
- inset: 0;
455
- background: linear-gradient(135deg, hsl(217deg, 33%, 17%), hsl(217deg, 33%, 7%));
456
- transition: background 1s ease;
457
- }
458
-
459
- .cw-card-glow {
460
- position: absolute;
461
- right: -3rem;
462
- top: -3rem;
463
- width: 12rem;
464
- height: 12rem;
465
- background: rgba(255, 255, 255, 0.1);
466
- border-radius: 50%;
467
- filter: blur(3rem);
468
- transition: transform 0.7s ease;
469
- }
470
-
471
- .cw-result-card:hover .cw-card-glow {
472
- transform: scale(1.25);
473
- }
474
-
475
- .cw-card-content {
476
- position: relative;
477
- z-index: 10;
478
- display: flex;
479
- flex-direction: column;
480
- gap: 1.5rem;
481
- text-align: center;
482
- }
483
-
484
- .cw-icon-container {
485
- display: flex;
486
- justify-content: center;
487
- align-items: center;
488
- height: 6rem;
489
- }
490
-
491
- .cw-result-icon {
492
- display: none;
493
- }
494
-
495
- .cw-result-icon:not(.cw-hidden) {
496
- display: block;
497
- }
498
-
499
- .cw-result-label {
500
- font-size: 0.625rem;
501
- font-weight: 900;
502
- text-transform: uppercase;
503
- letter-spacing: 0.3em;
504
- color: rgba(255, 255, 255, 0.4);
505
- margin-bottom: 0.5rem;
506
- }
507
-
508
- .cw-result-name {
509
- font-size: 1.875rem;
510
- font-weight: 900;
511
- letter-spacing: -0.02em;
512
- margin: 0;
513
- }
514
-
515
- .cw-result-tag {
516
- font-size: 0.75rem;
517
- font-weight: 500;
518
- color: rgba(255, 255, 255, 0.6);
519
- margin: 0;
520
- }
521
-
522
- .cw-result-details {
523
- display: none;
524
- grid-template-columns: 1fr 1fr;
525
- gap: 0.75rem;
526
- padding-top: 1rem;
527
- border-top: 1px solid rgba(255, 255, 255, 0.1);
528
- }
529
-
530
- .cw-result-details:not(.cw-hidden) {
531
- display: grid;
532
- }
533
-
534
- .cw-detail-box {
535
- background: rgba(255, 255, 255, 0.05);
536
- border: 1px solid rgba(255, 255, 255, 0.05);
537
- border-radius: 0.75rem;
538
- padding: 0.75rem;
539
- }
540
-
541
- .cw-detail-label {
542
- font-size: 0.5rem;
543
- font-weight: 900;
544
- text-transform: uppercase;
545
- letter-spacing: 0.1em;
546
- display: block;
547
- margin-bottom: 0.25rem;
548
- }
549
-
550
- .cw-detail-text {
551
- font-size: 0.625rem;
552
- line-height: 1.4;
553
- color: rgba(255, 255, 255, 0.9);
554
- margin: 0;
555
- }
556
-
557
- .cw-tip-card {
558
- background: var(--cw-bg-app);
559
- border: 1px solid var(--cw-border);
560
- border-radius: var(--cw-radius);
561
- padding: 1.5rem;
562
- display: flex;
563
- flex-direction: column;
564
- gap: 1rem;
565
- }
566
-
567
- .cw-tip-header {
568
- display: flex;
569
- align-items: center;
570
- gap: 0.75rem;
571
- }
572
-
573
- .cw-tip-icon {
574
- padding: 0.5rem;
575
- background: var(--cw-primary-light);
576
- border-radius: 0.75rem;
577
- display: flex;
578
- align-items: center;
579
- justify-content: center;
580
- color: var(--cw-primary);
581
- flex-shrink: 0;
582
- }
583
-
584
- :global(.theme-dark) .cw-tip-icon {
585
- background: hsl(240deg, 100%, 20%);
586
- }
587
-
588
- .cw-tip-title {
589
- font-size: 0.875rem;
590
- font-weight: 900;
591
- color: var(--cw-text-main);
592
- text-transform: uppercase;
593
- letter-spacing: 0.05em;
594
- }
595
-
596
- .cw-tip-text {
597
- font-size: 0.6875rem;
598
- line-height: 1.6;
599
- color: var(--cw-text-muted);
600
- font-weight: 400;
601
- font-style: italic;
602
- background: rgba(var(--cw-primary-rgb, 99, 102, 241), 0.03);
603
- padding: 1.25rem;
604
- border-radius: 0.75rem;
605
- border: 1px solid var(--cw-border);
606
- margin: 0;
607
- }
608
-
609
- :global(.theme-dark) .cw-tip-text {
610
- color: var(--cw-text-main);
611
- background: rgba(255, 255, 255, 0.03);
612
- }
613
-
614
- .cw-hidden {
615
- display: none;
616
- }
617
- </style>