@jjlmoya/utils-babies 1.5.0 → 1.6.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-babies",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -240,7 +240,7 @@ const { ui } = Astro.props;
240
240
  </script>
241
241
 
242
242
  <style>
243
- .bfc-card {
243
+ :global(.bfc-card) {
244
244
  background: #fff;
245
245
  border: 1px solid #e2e8f0;
246
246
  border-radius: 28px;
@@ -250,7 +250,7 @@ const { ui } = Astro.props;
250
250
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
251
251
  }
252
252
 
253
- :global(.theme-dark) .bfc-card {
253
+ :global(.theme-dark .bfc-card) {
254
254
  background: #111827;
255
255
  border-color: #1f2937;
256
256
  }
@@ -266,17 +266,17 @@ const { ui } = Astro.props;
266
266
  border-right: 1px solid #e2e8f0;
267
267
  }
268
268
 
269
- :global(.theme-dark) .bfc-left {
269
+ :global(.theme-dark .bfc-left) {
270
270
  background: #1f2937;
271
271
  border-right-color: #374151;
272
272
  }
273
273
 
274
- .bfc-right {
274
+ :global(.bfc-right) {
275
275
  background: #fff;
276
276
  padding: 40px;
277
277
  }
278
278
 
279
- :global(.theme-dark) .bfc-right {
279
+ :global(.theme-dark .bfc-right) {
280
280
  background: #111827;
281
281
  }
282
282
 
@@ -290,7 +290,7 @@ const { ui } = Astro.props;
290
290
  margin-bottom: 32px;
291
291
  }
292
292
 
293
- .bfc-input-label {
293
+ :global(.bfc-input-label) {
294
294
  display: block;
295
295
  font-size: 0.95rem;
296
296
  font-weight: 700;
@@ -298,7 +298,7 @@ const { ui } = Astro.props;
298
298
  margin-bottom: 12px;
299
299
  }
300
300
 
301
- :global(.theme-dark) .bfc-input-label {
301
+ :global(.theme-dark .bfc-input-label) {
302
302
  color: #e2e8f0;
303
303
  }
304
304
 
@@ -314,11 +314,11 @@ const { ui } = Astro.props;
314
314
  margin-bottom: 24px;
315
315
  }
316
316
 
317
- :global(.theme-dark) .bfc-unit-nav {
317
+ :global(.theme-dark .bfc-unit-nav) {
318
318
  background: #374151;
319
319
  }
320
320
 
321
- .bfc-unit-tab {
321
+ :global(.bfc-unit-tab) {
322
322
  flex: 1;
323
323
  padding: 8px;
324
324
  border: none;
@@ -332,17 +332,17 @@ const { ui } = Astro.props;
332
332
  margin: 2px;
333
333
  }
334
334
 
335
- :global(.theme-dark) .bfc-unit-tab {
335
+ :global(.theme-dark .bfc-unit-tab) {
336
336
  background: #1f2937;
337
337
  }
338
338
 
339
- .bfc-unit-active {
339
+ :global(.bfc-unit-active) {
340
340
  background: #fff;
341
341
  color: #0d9488;
342
342
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
343
343
  }
344
344
 
345
- :global(.theme-dark) .bfc-unit-active {
345
+ :global(.theme-dark .bfc-unit-active) {
346
346
  background: #4b5563;
347
347
  color: #2dd4bf;
348
348
  }
@@ -358,12 +358,12 @@ const { ui } = Astro.props;
358
358
  margin-bottom: 8px;
359
359
  }
360
360
 
361
- :global(.theme-dark) .bfc-stepper-box {
361
+ :global(.theme-dark .bfc-stepper-box) {
362
362
  background: #111827;
363
363
  border-color: #4b5563;
364
364
  }
365
365
 
366
- .bfc-btn-step {
366
+ :global(.bfc-btn-step) {
367
367
  width: 44px;
368
368
  height: 44px;
369
369
  border-radius: 12px;
@@ -376,12 +376,12 @@ const { ui } = Astro.props;
376
376
  transition: all 0.2s ease;
377
377
  }
378
378
 
379
- :global(.theme-dark) .bfc-btn-step {
379
+ :global(.theme-dark .bfc-btn-step) {
380
380
  background: #374151;
381
381
  color: #f9fafb;
382
382
  }
383
383
 
384
- .bfc-btn-step:hover {
384
+ :global(.bfc-btn-step:hover) {
385
385
  background: #0d9488;
386
386
  color: #fff;
387
387
  }
@@ -390,18 +390,18 @@ const { ui } = Astro.props;
390
390
  text-align: center;
391
391
  }
392
392
 
393
- .bfc-val-big {
393
+ :global(.bfc-val-big) {
394
394
  display: block;
395
395
  font-size: 2rem;
396
396
  font-weight: 800;
397
397
  color: #0f172a;
398
398
  }
399
399
 
400
- :global(.theme-dark) .bfc-val-big {
400
+ :global(.theme-dark .bfc-val-big) {
401
401
  color: #fff;
402
402
  }
403
403
 
404
- .bfc-val-sub {
404
+ :global(.bfc-val-sub) {
405
405
  display: block;
406
406
  font-size: 0.85rem;
407
407
  color: #64748b;
@@ -423,11 +423,11 @@ const { ui } = Astro.props;
423
423
  outline: none;
424
424
  }
425
425
 
426
- :global(.theme-dark) .bfc-slider {
426
+ :global(.theme-dark .bfc-slider) {
427
427
  background: #374151;
428
428
  }
429
429
 
430
- .bfc-slider::-webkit-slider-thumb {
430
+ :global(.bfc-slider::-webkit-slider-thumb) {
431
431
  -webkit-appearance: none;
432
432
  appearance: none;
433
433
  width: 22px;
@@ -445,7 +445,7 @@ const { ui } = Astro.props;
445
445
  gap: 12px;
446
446
  }
447
447
 
448
- .bfc-type-tile {
448
+ :global(.bfc-type-tile) {
449
449
  background: #f1f5f9;
450
450
  border: 1px solid #cbd5e1;
451
451
  border-radius: 14px;
@@ -458,19 +458,19 @@ const { ui } = Astro.props;
458
458
  color: #64748b;
459
459
  }
460
460
 
461
- :global(.theme-dark) .bfc-type-tile {
461
+ :global(.theme-dark .bfc-type-tile) {
462
462
  background: #1f2937;
463
463
  border-color: #4b5563;
464
464
  }
465
465
 
466
- .bfc-type-active {
466
+ :global(.bfc-type-active) {
467
467
  background: #f0fdfa;
468
468
  border-color: #0d9488;
469
469
  color: #0f766e;
470
470
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
471
471
  }
472
472
 
473
- :global(.theme-dark) .bfc-type-active {
473
+ :global(.theme-dark .bfc-type-active) {
474
474
  background: rgba(13, 148, 136, 0.1);
475
475
  color: #2dd4bf;
476
476
  border-color: #2dd4bf;
@@ -484,7 +484,7 @@ const { ui } = Astro.props;
484
484
  border: 1px solid #e2e8f0;
485
485
  }
486
486
 
487
- :global(.theme-dark) .bfc-gauge-area {
487
+ :global(.theme-dark .bfc-gauge-area) {
488
488
  background: #111827;
489
489
  border-color: #374151;
490
490
  }
@@ -506,14 +506,14 @@ const { ui } = Astro.props;
506
506
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
507
507
  }
508
508
 
509
- .bfc-visual-hint {
509
+ :global(.bfc-visual-hint) {
510
510
  font-size: 0.95rem;
511
511
  font-weight: 600;
512
512
  color: #0f766e;
513
513
  margin: 0;
514
514
  }
515
515
 
516
- :global(.theme-dark) .bfc-visual-hint {
516
+ :global(.theme-dark .bfc-visual-hint) {
517
517
  color: #2dd4bf;
518
518
  }
519
519
 
@@ -525,11 +525,11 @@ const { ui } = Astro.props;
525
525
  margin-bottom: 24px;
526
526
  }
527
527
 
528
- :global(.theme-dark) .bfc-res-card-box {
528
+ :global(.theme-dark .bfc-res-card-box) {
529
529
  background: rgba(13, 148, 136, 0.05);
530
530
  }
531
531
 
532
- .bfc-res-main-val {
532
+ :global(.bfc-res-main-val) {
533
533
  display: block;
534
534
  font-size: 3.5rem;
535
535
  font-weight: 950;
@@ -538,11 +538,11 @@ const { ui } = Astro.props;
538
538
  line-height: 1;
539
539
  }
540
540
 
541
- :global(.theme-dark) .bfc-res-main-val {
541
+ :global(.theme-dark .bfc-res-main-val) {
542
542
  color: #2dd4bf;
543
543
  }
544
544
 
545
- .bfc-res-label {
545
+ :global(.bfc-res-label) {
546
546
  display: block;
547
547
  margin-top: 8px;
548
548
  font-size: 1rem;
@@ -562,11 +562,11 @@ const { ui } = Astro.props;
562
562
  border-bottom: 2px solid #f1f5f9;
563
563
  }
564
564
 
565
- :global(.theme-dark) .bfc-stat-item {
565
+ :global(.theme-dark .bfc-stat-item) {
566
566
  border-bottom-color: #374151;
567
567
  }
568
568
 
569
- .bfc-stat-label {
569
+ :global(.bfc-stat-label) {
570
570
  display: block;
571
571
  font-size: 0.7rem;
572
572
  font-weight: 800;
@@ -575,13 +575,13 @@ const { ui } = Astro.props;
575
575
  margin-bottom: 2px;
576
576
  }
577
577
 
578
- .bfc-stat-value {
578
+ :global(.bfc-stat-value) {
579
579
  font-size: 1.15rem;
580
580
  font-weight: 800;
581
581
  color: #334155;
582
582
  }
583
583
 
584
- :global(.theme-dark) .bfc-stat-value {
584
+ :global(.theme-dark .bfc-stat-value) {
585
585
  color: #e2e8f0;
586
586
  }
587
587
 
@@ -603,22 +603,22 @@ const { ui } = Astro.props;
603
603
  border-radius: 100px;
604
604
  }
605
605
 
606
- .bfc-pill-hunger {
606
+ :global(.bfc-pill-hunger) {
607
607
  background: #fff7ed;
608
608
  color: #c2410c;
609
609
  }
610
610
 
611
- :global(.theme-dark) .bfc-pill-hunger {
611
+ :global(.theme-dark .bfc-pill-hunger) {
612
612
  background: rgba(194, 65, 12, 0.1);
613
613
  color: #fdba74;
614
614
  }
615
615
 
616
- .bfc-pill-fullness {
616
+ :global(.bfc-pill-fullness) {
617
617
  background: #f0fdf4;
618
618
  color: #15803d;
619
619
  }
620
620
 
621
- :global(.theme-dark) .bfc-pill-fullness {
621
+ :global(.theme-dark .bfc-pill-fullness) {
622
622
  background: rgba(21, 128, 61, 0.1);
623
623
  color: #4ade80;
624
624
  }
@@ -245,7 +245,7 @@ const { ui } = Astro.props;
245
245
  </script>
246
246
 
247
247
  <style>
248
- .bpc-card {
248
+ :global(.bpc-card) {
249
249
  background: #fff;
250
250
  border: 1px solid #e2e8f0;
251
251
  border-radius: 32px;
@@ -257,11 +257,11 @@ const { ui } = Astro.props;
257
257
  border-top: 8px solid #0ea5e9;
258
258
  }
259
259
 
260
- .bpc-card:not(.bpc-boy) {
260
+ :global(.bpc-card:not(.bpc-boy)) {
261
261
  border-top-color: #0d9488;
262
262
  }
263
263
 
264
- :global(.theme-dark) .bpc-card {
264
+ :global(.theme-dark .bpc-card) {
265
265
  background: #0f172a;
266
266
  border-color: #1e293b;
267
267
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
@@ -278,17 +278,17 @@ const { ui } = Astro.props;
278
278
  border-right: 1px solid #e2e8f0;
279
279
  }
280
280
 
281
- :global(.theme-dark) .bpc-left {
281
+ :global(.theme-dark .bpc-left) {
282
282
  background: #1e293b;
283
283
  border-right-color: #334155;
284
284
  }
285
285
 
286
- .bpc-right {
286
+ :global(.bpc-right) {
287
287
  background: #fff;
288
288
  padding: 40px;
289
289
  }
290
290
 
291
- :global(.theme-dark) .bpc-right {
291
+ :global(.theme-dark .bpc-right) {
292
292
  background: #0f172a;
293
293
  }
294
294
 
@@ -302,15 +302,15 @@ const { ui } = Astro.props;
302
302
  margin-bottom: 32px;
303
303
  }
304
304
 
305
- :global(.theme-dark) .bpc-section-marker {
305
+ :global(.theme-dark .bpc-section-marker) {
306
306
  color: #94a3b8;
307
307
  }
308
308
 
309
- .bpc-input-group {
309
+ :global(.bpc-input-group) {
310
310
  margin-bottom: 24px;
311
311
  }
312
312
 
313
- .bpc-input-label {
313
+ :global(.bpc-input-label) {
314
314
  display: block;
315
315
  font-size: 0.95rem;
316
316
  font-weight: 700;
@@ -318,7 +318,7 @@ const { ui } = Astro.props;
318
318
  margin-bottom: 12px;
319
319
  }
320
320
 
321
- :global(.theme-dark) .bpc-input-label {
321
+ :global(.theme-dark .bpc-input-label) {
322
322
  color: #f8fafc;
323
323
  }
324
324
 
@@ -330,11 +330,11 @@ const { ui } = Astro.props;
330
330
  border-radius: 14px;
331
331
  }
332
332
 
333
- :global(.theme-dark) .bpc-sex-selector {
333
+ :global(.theme-dark .bpc-sex-selector) {
334
334
  background: #334155;
335
335
  }
336
336
 
337
- .bpc-sex-btn {
337
+ :global(.bpc-sex-btn) {
338
338
  flex: 1;
339
339
  padding: 12px;
340
340
  border: none;
@@ -347,35 +347,35 @@ const { ui } = Astro.props;
347
347
  transition: all 0.2s ease;
348
348
  }
349
349
 
350
- .bpc-sex-btn.bpc-active {
350
+ :global(.bpc-sex-btn.bpc-active) {
351
351
  background: #fff;
352
352
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
353
353
  }
354
354
 
355
- :global(.theme-dark) .bpc-sex-btn.bpc-active {
355
+ :global(.theme-dark .bpc-sex-btn.bpc-active) {
356
356
  background: #0f172a;
357
357
  }
358
358
 
359
- .bpc-boy .bpc-sex-btn[data-sex="boy"].bpc-active {
359
+ :global(.bpc-boy .bpc-sex-btn[data-sex="boy"].bpc-active) {
360
360
  color: #0ea5e9;
361
361
  }
362
362
 
363
- .bpc-card:not(.bpc-boy) .bpc-sex-btn[data-sex="girl"].bpc-active {
363
+ :global(.bpc-card:not(.bpc-boy) .bpc-sex-btn[data-sex="girl"].bpc-active) {
364
364
  color: #0d9488;
365
365
  }
366
366
 
367
- .bpc-unit-nav {
367
+ :global(.bpc-unit-nav) {
368
368
  display: flex;
369
369
  background: #f1f5f9;
370
370
  padding: 6px;
371
371
  border-radius: 14px;
372
372
  }
373
373
 
374
- :global(.theme-dark) .bpc-unit-nav {
374
+ :global(.theme-dark .bpc-unit-nav) {
375
375
  background: #334155;
376
376
  }
377
377
 
378
- .bpc-unit-tab {
378
+ :global(.bpc-unit-tab) {
379
379
  flex: 1;
380
380
  padding: 10px;
381
381
  border: none;
@@ -388,17 +388,17 @@ const { ui } = Astro.props;
388
388
  transition: all 0.2s ease;
389
389
  }
390
390
 
391
- .bpc-unit-tab.bpc-active {
391
+ :global(.bpc-unit-tab.bpc-active) {
392
392
  background: #fff;
393
393
  color: #0d9488;
394
394
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
395
395
  }
396
396
 
397
- .bpc-boy .bpc-unit-tab.bpc-active {
397
+ :global(.bpc-boy .bpc-unit-tab.bpc-active) {
398
398
  color: #0ea5e9;
399
399
  }
400
400
 
401
- :global(.theme-dark) .bpc-unit-tab.bpc-active {
401
+ :global(.theme-dark .bpc-unit-tab.bpc-active) {
402
402
  background: #0f172a;
403
403
  }
404
404
 
@@ -413,12 +413,12 @@ const { ui } = Astro.props;
413
413
  margin-bottom: 12px;
414
414
  }
415
415
 
416
- :global(.theme-dark) .bpc-stepper-box {
416
+ :global(.theme-dark .bpc-stepper-box) {
417
417
  background: #334155;
418
418
  border-color: #475569;
419
419
  }
420
420
 
421
- .bpc-btn-step {
421
+ :global(.bpc-btn-step) {
422
422
  width: 44px;
423
423
  height: 44px;
424
424
  border-radius: 12px;
@@ -431,17 +431,17 @@ const { ui } = Astro.props;
431
431
  transition: all 0.2s ease;
432
432
  }
433
433
 
434
- :global(.theme-dark) .bpc-btn-step {
434
+ :global(.theme-dark .bpc-btn-step) {
435
435
  background: #0f172a;
436
436
  color: #fff;
437
437
  }
438
438
 
439
- .bpc-btn-step:hover {
439
+ :global(.bpc-btn-step:hover) {
440
440
  background: #0d9488;
441
441
  color: #fff;
442
442
  }
443
443
 
444
- .bpc-boy .bpc-btn-step:hover {
444
+ :global(.bpc-boy .bpc-btn-step:hover) {
445
445
  background: #0ea5e9;
446
446
  }
447
447
 
@@ -449,18 +449,18 @@ const { ui } = Astro.props;
449
449
  text-align: center;
450
450
  }
451
451
 
452
- .bpc-val-big {
452
+ :global(.bpc-val-big) {
453
453
  display: block;
454
454
  font-size: 2.25rem;
455
455
  font-weight: 900;
456
456
  color: #0f172a;
457
457
  }
458
458
 
459
- :global(.theme-dark) .bpc-val-big {
459
+ :global(.theme-dark .bpc-val-big) {
460
460
  color: #fff;
461
461
  }
462
462
 
463
- .bpc-val-sub {
463
+ :global(.bpc-val-sub) {
464
464
  font-size: 0.8rem;
465
465
  color: #64748b;
466
466
  font-weight: 700;
@@ -477,11 +477,11 @@ const { ui } = Astro.props;
477
477
  outline: none;
478
478
  }
479
479
 
480
- :global(.theme-dark) .bpc-slider {
480
+ :global(.theme-dark .bpc-slider) {
481
481
  background: #475569;
482
482
  }
483
483
 
484
- .bpc-slider::-webkit-slider-thumb {
484
+ :global(.bpc-slider::-webkit-slider-thumb) {
485
485
  -webkit-appearance: none;
486
486
  appearance: none;
487
487
  width: 24px;
@@ -493,18 +493,18 @@ const { ui } = Astro.props;
493
493
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
494
494
  }
495
495
 
496
- .bpc-boy .bpc-slider::-webkit-slider-thumb {
496
+ :global(.bpc-boy .bpc-slider::-webkit-slider-thumb) {
497
497
  background: #0ea5e9;
498
498
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
499
499
  }
500
500
 
501
- .bpc-grid-2 {
501
+ :global(.bpc-grid-2) {
502
502
  display: grid;
503
503
  grid-template-columns: 1fr 1fr;
504
504
  gap: 16px;
505
505
  }
506
506
 
507
- .bpc-num-input {
507
+ :global(.bpc-num-input) {
508
508
  width: 100%;
509
509
  padding: 16px;
510
510
  border: 2px solid #e2e8f0;
@@ -517,19 +517,19 @@ const { ui } = Astro.props;
517
517
  box-sizing: border-box;
518
518
  }
519
519
 
520
- :global(.theme-dark) .bpc-num-input {
520
+ :global(.theme-dark .bpc-num-input) {
521
521
  background: #334155;
522
522
  border-color: #475569;
523
523
  color: #fff;
524
524
  }
525
525
 
526
- .bpc-num-input:focus {
526
+ :global(.bpc-num-input:focus) {
527
527
  border-color: #0d9488;
528
528
  outline: none;
529
529
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
530
530
  }
531
531
 
532
- .bpc-boy .bpc-num-input:focus {
532
+ :global(.bpc-boy .bpc-num-input:focus) {
533
533
  border-color: #0ea5e9;
534
534
  }
535
535