@jjlmoya/utils-alcohol 1.12.0 → 1.13.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-alcohol",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -438,6 +438,68 @@ const { ui } = Astro.props;
438
438
  border-radius: 10px;
439
439
  }
440
440
 
441
+ :global(.drink-list-row) {
442
+ display: flex;
443
+ align-items: center;
444
+ justify-content: space-between;
445
+ padding: 0.75rem;
446
+ background: #f8fafc;
447
+ border-radius: 0.75rem;
448
+ border: 1px solid #e2e8f0;
449
+ }
450
+ :global(.theme-dark) :global(.drink-list-row) {
451
+ background: #1e293b;
452
+ border-color: #334155;
453
+ }
454
+
455
+ :global(.drink-row-info) {
456
+ display: flex;
457
+ align-items: center;
458
+ gap: 0.75rem;
459
+ }
460
+
461
+ :global(.drink-row-name) {
462
+ font-weight: 700;
463
+ color: #334155;
464
+ }
465
+ :global(.theme-dark) :global(.drink-row-name) {
466
+ color: #e2e8f0;
467
+ }
468
+
469
+ :global(.drink-row-qty) {
470
+ font-size: 0.75rem;
471
+ background: #e0e7ff;
472
+ color: #4f46e5;
473
+ padding: 0.125rem 0.5rem;
474
+ border-radius: 0.25rem;
475
+ font-weight: 700;
476
+ }
477
+ :global(.theme-dark) :global(.drink-row-qty) {
478
+ background: #312e81;
479
+ color: #a5b4fc;
480
+ }
481
+
482
+ :global(.drink-row-del) {
483
+ display: flex;
484
+ align-items: center;
485
+ justify-content: center;
486
+ width: 2rem;
487
+ height: 2rem;
488
+ padding: 0;
489
+ background: none;
490
+ border: none;
491
+ color: #ef4444;
492
+ cursor: pointer;
493
+ transition: background 0.2s;
494
+ }
495
+ :global(.drink-row-del:hover) {
496
+ background: #fef2f2;
497
+ border-radius: 0.5rem;
498
+ }
499
+ :global(.theme-dark) :global(.drink-row-del:hover) {
500
+ background: rgba(239,68,68,0.1);
501
+ }
502
+
441
503
  .alc-results-panel {
442
504
  display: flex;
443
505
  flex-direction: column;
@@ -1488,7 +1488,7 @@ function getIngIconName(type: string): string {
1488
1488
  padding: 0.75rem;
1489
1489
  }
1490
1490
 
1491
- .recipe-row {
1491
+ :global(.recipe-row) {
1492
1492
  background: #fff;
1493
1493
  border-radius: 1rem;
1494
1494
  padding: 1rem;
@@ -1496,34 +1496,34 @@ function getIngIconName(type: string): string {
1496
1496
  border: 1px solid #f1f5f9;
1497
1497
  }
1498
1498
 
1499
- :global(.theme-dark) .recipe-row {
1499
+ :global(.theme-dark .recipe-row) {
1500
1500
  background: #0f172a;
1501
1501
  border-color: #1e293b;
1502
1502
  }
1503
1503
 
1504
- .recipe-row-top {
1504
+ :global(.recipe-row-top) {
1505
1505
  display: flex;
1506
1506
  align-items: center;
1507
1507
  justify-content: space-between;
1508
1508
  margin-bottom: 0.75rem;
1509
1509
  }
1510
1510
 
1511
- .recipe-row-info {
1511
+ :global(.recipe-row-info) {
1512
1512
  display: flex;
1513
1513
  align-items: center;
1514
1514
  gap: 0.75rem;
1515
1515
  }
1516
1516
 
1517
- .recipe-row-name {
1517
+ :global(.recipe-row-name) {
1518
1518
  font-weight: 700;
1519
1519
  color: #334155;
1520
1520
  }
1521
1521
 
1522
- :global(.theme-dark) .recipe-row-name {
1522
+ :global(.theme-dark .recipe-row-name) {
1523
1523
  color: #e2e8f0;
1524
1524
  }
1525
1525
 
1526
- .recipe-row-type {
1526
+ :global(.recipe-row-type) {
1527
1527
  font-size: 0.625rem;
1528
1528
  background: #f1f5f9;
1529
1529
  padding: 0.125rem 0.5rem;
@@ -1533,26 +1533,26 @@ function getIngIconName(type: string): string {
1533
1533
  text-transform: uppercase;
1534
1534
  }
1535
1535
 
1536
- :global(.theme-dark) .recipe-row-type {
1536
+ :global(.theme-dark .recipe-row-type) {
1537
1537
  background: #1e293b;
1538
1538
  }
1539
1539
 
1540
- .recipe-row-del {
1540
+ :global(.recipe-row-del) {
1541
1541
  opacity: 0;
1542
1542
  transition: opacity 0.2s;
1543
1543
  }
1544
1544
 
1545
- .recipe-row:hover .recipe-row-del {
1545
+ :global(.recipe-row:hover .recipe-row-del) {
1546
1546
  opacity: 1;
1547
1547
  }
1548
1548
 
1549
- .recipe-row-controls {
1549
+ :global(.recipe-row-controls) {
1550
1550
  display: flex;
1551
1551
  align-items: center;
1552
1552
  gap: 1rem;
1553
1553
  }
1554
1554
 
1555
- .recipe-range {
1555
+ :global(.recipe-range) {
1556
1556
  flex: 1;
1557
1557
  height: 0.5rem;
1558
1558
  border-radius: 0.5rem;
@@ -1562,16 +1562,16 @@ function getIngIconName(type: string): string {
1562
1562
  background: #e2e8f0;
1563
1563
  }
1564
1564
 
1565
- :global(.theme-dark) .recipe-range {
1565
+ :global(.theme-dark .recipe-range) {
1566
1566
  background: #334155;
1567
1567
  }
1568
1568
 
1569
- .recipe-number-wrap {
1569
+ :global(.recipe-number-wrap) {
1570
1570
  position: relative;
1571
1571
  width: 5rem;
1572
1572
  }
1573
1573
 
1574
- .recipe-number {
1574
+ :global(.recipe-number) {
1575
1575
  width: 100%;
1576
1576
  background: #f8fafc;
1577
1577
  border: 1px solid #e2e8f0;
@@ -1584,7 +1584,7 @@ function getIngIconName(type: string): string {
1584
1584
  box-sizing: border-box;
1585
1585
  }
1586
1586
 
1587
- :global(.theme-dark) .recipe-number {
1587
+ :global(.theme-dark .recipe-number) {
1588
1588
  background: #1e293b;
1589
1589
  border-color: #334155;
1590
1590
  color: #e2e8f0;
@@ -825,7 +825,7 @@ const { ui } = Astro.props;
825
825
  animation: drop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
826
826
  }
827
827
 
828
- .visual-container {
828
+ :global(.visual-container) {
829
829
  display: flex;
830
830
  align-items: flex-end;
831
831
  justify-content: center;
@@ -835,12 +835,12 @@ const { ui } = Astro.props;
835
835
  }
836
836
 
837
837
  @media (min-width: 1024px) {
838
- .visual-container {
838
+ :global(.visual-container) {
839
839
  gap: 4rem;
840
840
  }
841
841
  }
842
842
 
843
- .keg-stack {
843
+ :global(.keg-stack) {
844
844
  display: flex;
845
845
  flex-direction: column-reverse;
846
846
  align-items: center;
@@ -850,18 +850,18 @@ const { ui } = Astro.props;
850
850
  min-width: 80px;
851
851
  }
852
852
 
853
- .keg-item {
853
+ :global(.keg-item) {
854
854
  position: relative;
855
855
  transition: transform 0.3s;
856
856
  transform-origin: bottom;
857
857
  cursor: default;
858
858
  }
859
859
 
860
- .keg-item:hover {
860
+ :global(.keg-item:hover) {
861
861
  transform: scale(1.05);
862
862
  }
863
863
 
864
- .keg-plus {
864
+ :global(.keg-plus) {
865
865
  text-align: center;
866
866
  font-weight: 900;
867
867
  font-size: 1.25rem;
@@ -891,7 +891,7 @@ const { ui } = Astro.props;
891
891
  }
892
892
  }
893
893
 
894
- .ice-pile {
894
+ :global(.ice-pile) {
895
895
  display: flex;
896
896
  flex-wrap: wrap;
897
897
  align-content: flex-end;
@@ -902,17 +902,17 @@ const { ui } = Astro.props;
902
902
  position: relative;
903
903
  }
904
904
 
905
- .ice-bag {
905
+ :global(.ice-bag) {
906
906
  transition: transform 0.3s;
907
907
  cursor: pointer;
908
908
  }
909
909
 
910
- .ice-bag:hover {
910
+ :global(.ice-bag:hover) {
911
911
  transform: scale(1.1);
912
912
  z-index: 50;
913
913
  }
914
914
 
915
- .bags-plus {
915
+ :global(.bags-plus) {
916
916
  position: absolute;
917
917
  top: -3rem;
918
918
  left: 50%;