@sonic-equipment/ui 164.0.0 → 165.0.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 (61) hide show
  1. package/dist/algolia/algolia-categories-filters.js +9 -7
  2. package/dist/background-overlay/background-overlay-manager.d.ts +178 -0
  3. package/dist/background-overlay/background-overlay-manager.js +291 -0
  4. package/dist/background-overlay/background-overlay.d.ts +12 -2
  5. package/dist/background-overlay/background-overlay.js +28 -27
  6. package/dist/badges/badge/badge.d.ts +2 -1
  7. package/dist/badges/badge/badge.js +2 -2
  8. package/dist/badges/badge/icon-with-badge/icon-with-badge.d.ts +2 -1
  9. package/dist/badges/badge/icon-with-badge/icon-with-badge.js +2 -2
  10. package/dist/cards/orderline-card/orderline-card.js +5 -1
  11. package/dist/cards/product-card/product-card.js +5 -1
  12. package/dist/collapsables/cascading-component/cascading-component.d.ts +6 -2
  13. package/dist/collapsables/cascading-component/cascading-component.js +5 -5
  14. package/dist/collapsables/unmounter/unmounter.js +2 -2
  15. package/dist/drawer/drawer.d.ts +26 -0
  16. package/dist/drawer/drawer.js +37 -0
  17. package/dist/drawer/drawer.module.css.js +3 -0
  18. package/dist/drawer/use-drawer.d.ts +17 -0
  19. package/dist/drawer/use-drawer.js +71 -0
  20. package/dist/exports.d.ts +12 -0
  21. package/dist/global-search/global-search-provider/global-search-provider.js +1 -2
  22. package/dist/global-search/global-search.module.css.js +1 -1
  23. package/dist/header/cart-icon/connected-cart-icon.js +4 -4
  24. package/dist/icons/solid/solid-login-icon.js +7 -0
  25. package/dist/index.js +12 -0
  26. package/dist/intl/translation-id.d.ts +1 -1
  27. package/dist/layout/center.d.ts +5 -0
  28. package/dist/layout/center.js +9 -0
  29. package/dist/layout/center.module.css.js +3 -0
  30. package/dist/lists/menu-list/menu-list.d.ts +4 -2
  31. package/dist/lists/menu-list/menu-list.js +2 -2
  32. package/dist/lists/menu-list/menu-list.module.css.js +1 -1
  33. package/dist/lists/orderline-list/orderline-list.js +1 -2
  34. package/dist/navigation/account-icon/account-icon.d.ts +5 -0
  35. package/dist/navigation/account-icon/account-icon.js +12 -0
  36. package/dist/navigation/cart-icon/cart-icon.d.ts +5 -0
  37. package/dist/navigation/cart-icon/cart-icon.js +12 -0
  38. package/dist/navigation/favorite-icon/favorite-icon.d.ts +5 -0
  39. package/dist/navigation/favorite-icon/favorite-icon.js +12 -0
  40. package/dist/navigation/mobile-navigation/mobile-navigation.d.ts +5 -0
  41. package/dist/navigation/mobile-navigation/mobile-navigation.js +20 -0
  42. package/dist/navigation/panel-navigation/panel-navigation.d.ts +28 -0
  43. package/dist/navigation/panel-navigation/panel-navigation.js +69 -0
  44. package/dist/navigation/panel-navigation/panel-navigation.module.css.js +3 -0
  45. package/dist/pages/paths.d.ts +1 -0
  46. package/dist/pages/paths.js +1 -0
  47. package/dist/shared/hooks/use-global-disclosure.d.ts +10 -0
  48. package/dist/shared/hooks/use-global-disclosure.js +25 -0
  49. package/dist/shared/hooks/use-watch-css-property.d.ts +1 -1
  50. package/dist/shared/hooks/use-watch-css-property.js +2 -3
  51. package/dist/shared/model/category.d.ts +5 -0
  52. package/dist/shared/model/category.js +7 -1
  53. package/dist/shared/model/price.d.ts +2 -2
  54. package/dist/shared/utils/css.d.ts +1 -0
  55. package/dist/shared/utils/css.js +13 -0
  56. package/dist/shared/utils/refs.d.ts +2 -0
  57. package/dist/shared/utils/refs.js +14 -0
  58. package/dist/sidebar/sidebar-provider.js +1 -1
  59. package/dist/styles.css +264 -64
  60. package/package.json +1 -1
  61. package/dist/background-overlay/background-overlay.module.css.js +0 -3
package/dist/styles.css CHANGED
@@ -235,13 +235,14 @@
235
235
  --box-shadow-light: 0 0 8px 0 rgb(0 0 0 / 30%);
236
236
  }
237
237
  :root {
238
+ --top-actions-sticky-layer: 5;
238
239
  --carousel-layer: 10;
240
+ --loading-layer: 12;
241
+ --background-overlay-behind-header: 13;
239
242
  --header-layer: 15;
240
- --loading-layer: 50;
241
- --background-overlay-layer: 90;
243
+ --background-overlay-in-front: 90;
242
244
  --sidebar-layer: 100;
243
245
  --search-layer: 200;
244
- --sticky-bottom-price: 1300;
245
246
  --modal-layer: 2000;
246
247
  --zoom-image-layer: 2100;
247
248
  }
@@ -1688,9 +1689,8 @@
1688
1689
  color: var(--color-white);
1689
1690
  }
1690
1691
 
1691
- .background-overlay-module-mGiNQ {
1692
+ .background-overlay {
1692
1693
  position: fixed;
1693
- z-index: var(--background-overlay-layer);
1694
1694
  -webkit-backdrop-filter: blur(4px);
1695
1695
  backdrop-filter: blur(4px);
1696
1696
  background-color: rgb(0 0 0 / 52%);
@@ -1698,15 +1698,14 @@
1698
1698
  opacity: 0;
1699
1699
  pointer-events: none;
1700
1700
  transition: opacity 0.3s ease-in-out;
1701
+ -webkit-user-select: none;
1702
+ -moz-user-select: none;
1703
+ user-select: none;
1701
1704
  }
1702
1705
 
1703
- .background-overlay-module-mGiNQ.background-overlay-module-5Uxcl {
1706
+ .background-overlay.visible {
1704
1707
  opacity: 1;
1705
- pointer-events: auto;
1706
- }
1707
-
1708
- .background-overlay-module-mGiNQ.background-overlay-module-GRInQ {
1709
- opacity: 0;
1708
+ pointer-events: all;
1710
1709
  }
1711
1710
 
1712
1711
  .badge-module-X5Au9 {
@@ -2603,7 +2602,7 @@
2603
2602
 
2604
2603
  .category-card-module-4NUjH .category-card-module-oNTrK .category-card-module-RxWMW {
2605
2604
  position: relative;
2606
- z-index: 5;
2605
+ z-index: 1;
2607
2606
  margin: auto;
2608
2607
  aspect-ratio: 1;
2609
2608
  mix-blend-mode: multiply;
@@ -4570,6 +4569,111 @@ button.swiper-pagination-bullet {
4570
4569
  line-height: 1.5;
4571
4570
  }
4572
4571
 
4572
+ .drawer-module-5ARuA {
4573
+ --transition-timing-function: ease-in-out;
4574
+ --transition-duration: 0.3s;
4575
+ --transform-translate-x-from: -100%;
4576
+ --transform-translate-x-to: 0;
4577
+ --transform-translate-y-from: 0;
4578
+ --transform-translate-y-to: 0;
4579
+
4580
+ position: fixed;
4581
+ z-index: var(--sidebar-layer);
4582
+ display: flex;
4583
+ flex-direction: column;
4584
+ border: 1px solid var(--color-gray-200);
4585
+ background-color: var(--color-white);
4586
+ pointer-events: all;
4587
+ }
4588
+
4589
+ .drawer-module-5ARuA.drawer-module-yjFdX {
4590
+ top: 0;
4591
+ bottom: 0;
4592
+ left: 0;
4593
+ min-width: 300px;
4594
+ }
4595
+
4596
+ .drawer-module-5ARuA.drawer-module-bZLBV {
4597
+ --transform-translate-x-from: 100%;
4598
+ --transform-translate-x-to: 0;
4599
+ --transform-translate-y-from: 0;
4600
+ --transform-translate-y-to: 0;
4601
+
4602
+ top: 0;
4603
+ right: 0;
4604
+ bottom: 0;
4605
+ min-width: 300px;
4606
+ }
4607
+
4608
+ .drawer-module-5ARuA.drawer-module-KiviE {
4609
+ --transform-translate-x-from: 0;
4610
+ --transform-translate-x-to: 0;
4611
+ --transform-translate-y-from: -100%;
4612
+ --transform-translate-y-to: 0;
4613
+
4614
+ top: 0;
4615
+ right: 0;
4616
+ left: 0;
4617
+ min-height: 300px;
4618
+ }
4619
+
4620
+ .drawer-module-5ARuA.drawer-module-p-PYu {
4621
+ right: 0;
4622
+
4623
+ --transform-translate-x-from: 0;
4624
+ --transform-translate-x-to: 0;
4625
+ --transform-translate-y-from: 100%;
4626
+ --transform-translate-y-to: 0;
4627
+
4628
+ bottom: 0;
4629
+ left: 0;
4630
+ min-height: 300px;
4631
+ }
4632
+
4633
+ .drawer-module-5ARuA.drawer-module-0jRBQ {
4634
+ z-index: calc(var(--header-layer) - 1);
4635
+ }
4636
+
4637
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-yjFdX,
4638
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-bZLBV,
4639
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-KiviE {
4640
+ top: var(--header-height);
4641
+ }
4642
+
4643
+ .drawer-module-5ARuA.enter {
4644
+ transform: translate(
4645
+ var(--transform-translate-x-from),
4646
+ var(--transform-translate-y-from)
4647
+ );
4648
+ }
4649
+
4650
+ .drawer-module-5ARuA.enter-active {
4651
+ transform: translate(
4652
+ var(--transform-translate-x-to),
4653
+ var(--transform-translate-y-to)
4654
+ );
4655
+ }
4656
+
4657
+ .drawer-module-5ARuA.exit {
4658
+ transform: translate(
4659
+ var(--transform-translate-x-to),
4660
+ var(--transform-translate-y-to)
4661
+ );
4662
+ }
4663
+
4664
+ .drawer-module-5ARuA.exit-active {
4665
+ transform: translate(
4666
+ var(--transform-translate-x-from),
4667
+ var(--transform-translate-y-from)
4668
+ );
4669
+ }
4670
+
4671
+ .drawer-module-5ARuA.exit-active,
4672
+ .drawer-module-5ARuA.enter-active {
4673
+ transition: transform var(--transition-duration)
4674
+ var(--transition-timing-function);
4675
+ }
4676
+
4573
4677
  .footer-module-YzJ68 {
4574
4678
  --padding-inline: var(--space-24);
4575
4679
 
@@ -5076,53 +5180,6 @@ button.swiper-pagination-bullet {
5076
5180
  }
5077
5181
  }
5078
5182
 
5079
- .global-search-module-T0bEf {
5080
- z-index: calc(var(--header-layer) - 1);
5081
- }
5082
-
5083
- .global-search-module-d2g2F {
5084
- position: relative;
5085
- z-index: -1;
5086
- font-family: var(--font-family-sonic);
5087
- }
5088
-
5089
- .global-search-module-Sx8Lx {
5090
- position: relative;
5091
- }
5092
-
5093
- .global-search-module-Sx8Lx .global-search-module--orCF {
5094
- position: absolute;
5095
- z-index: var(--search-layer);
5096
- top: 0;
5097
- right: 0;
5098
- left: 0;
5099
- box-sizing: border-box;
5100
- transition: transform 0.3s ease-in-out;
5101
- }
5102
-
5103
- .global-search-module-Sx8Lx .global-search-module--orCF .global-search-module-vXnL6 {
5104
- position: relative;
5105
- z-index: calc(var(--search-layer) + 1);
5106
- }
5107
-
5108
- .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-MYwlp {
5109
- transform: translateY(0);
5110
- }
5111
-
5112
- .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-Jmt3c {
5113
- transform: translateY(0);
5114
- }
5115
-
5116
- .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-gQQfY {
5117
- transform: translateY(-100%);
5118
- }
5119
-
5120
- .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-AABcw {
5121
- opacity: 0;
5122
- pointer-events: none;
5123
- transform: translateY(-100%);
5124
- }
5125
-
5126
5183
  .search-input-module-xCCzd {
5127
5184
  box-sizing: border-box;
5128
5185
  }
@@ -5478,6 +5535,49 @@ button.swiper-pagination-bullet {
5478
5535
  transform: translateY(-100%);
5479
5536
  }
5480
5537
 
5538
+ .global-search-module-d2g2F {
5539
+ position: relative;
5540
+ z-index: -1;
5541
+ font-family: var(--font-family-sonic);
5542
+ }
5543
+
5544
+ .global-search-module-Sx8Lx {
5545
+ position: relative;
5546
+ }
5547
+
5548
+ .global-search-module-Sx8Lx .global-search-module--orCF {
5549
+ position: absolute;
5550
+ z-index: var(--search-layer);
5551
+ top: 0;
5552
+ right: 0;
5553
+ left: 0;
5554
+ box-sizing: border-box;
5555
+ transition: transform 0.3s ease-in-out;
5556
+ }
5557
+
5558
+ .global-search-module-Sx8Lx .global-search-module--orCF .global-search-module-vXnL6 {
5559
+ position: relative;
5560
+ z-index: calc(var(--search-layer) + 1);
5561
+ }
5562
+
5563
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-MYwlp {
5564
+ transform: translateY(0);
5565
+ }
5566
+
5567
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-Jmt3c {
5568
+ transform: translateY(0);
5569
+ }
5570
+
5571
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-gQQfY {
5572
+ transform: translateY(-100%);
5573
+ }
5574
+
5575
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-AABcw {
5576
+ opacity: 0;
5577
+ pointer-events: none;
5578
+ transform: translateY(-100%);
5579
+ }
5580
+
5481
5581
  .hamburger-button-module-xER52 {
5482
5582
  --width: 24px;
5483
5583
  --padding-inline: 2px;
@@ -5658,6 +5758,15 @@ button.swiper-pagination-bullet {
5658
5758
  fill: var(--color-brand-red);
5659
5759
  }
5660
5760
 
5761
+ .center-module-Cr7hx {
5762
+ display: grid;
5763
+ width: 100%;
5764
+ height: 100%;
5765
+ min-height: inherit;
5766
+ align-items: center;
5767
+ place-content: center center;
5768
+ }
5769
+
5661
5770
  .feature-list-module-cxc8U {
5662
5771
  display: grid;
5663
5772
  grid-template-columns: auto minmax(50%, 1fr);
@@ -5764,7 +5873,7 @@ button.swiper-pagination-bullet {
5764
5873
 
5765
5874
  /* scroll area */
5766
5875
 
5767
- .menu-list-module-TloB9 .menu-list-module-x3D-V {
5876
+ .menu-list-module-TloB9.menu-list-module-AiDgG .menu-list-module-x3D-V {
5768
5877
  grid-area: scroll-area;
5769
5878
  overflow-y: auto;
5770
5879
  scrollbar-width: thin;
@@ -5816,7 +5925,6 @@ button.swiper-pagination-bullet {
5816
5925
  align-items: center;
5817
5926
  padding: var(--space-8) var(--ml-item-outer-spacing, 0);
5818
5927
  margin: 0 0 -2px;
5819
- background: var(--color-white);
5820
5928
  color: var(--color-brand-dark-gray);
5821
5929
  font-size: var(--text-heading-xxxs-size);
5822
5930
  font-style: italic;
@@ -5857,6 +5965,10 @@ button.swiper-pagination-bullet {
5857
5965
  box-shadow: inset var(--shadow-focus-outline);
5858
5966
  }
5859
5967
 
5968
+ .menu-list-module-S08LI:has(:focus-visible) [href] {
5969
+ box-shadow: none;
5970
+ }
5971
+
5860
5972
  /* menu list item */
5861
5973
 
5862
5974
  .menu-list-module-4QhF4 {
@@ -5995,10 +6107,14 @@ button.swiper-pagination-bullet {
5995
6107
  z-index: 2;
5996
6108
  }
5997
6109
 
5998
- .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo::before {
5999
- box-shadow: inset var(--shadow-focus-outline);
6110
+ .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo {
6111
+ box-shadow: none;
6000
6112
  }
6001
6113
 
6114
+ .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo::before {
6115
+ box-shadow: inset var(--shadow-focus-outline);
6116
+ }
6117
+
6002
6118
  /* selected state */
6003
6119
 
6004
6120
  .menu-list-module-4QhF4.menu-list-module-hiMca {
@@ -6306,6 +6422,90 @@ button.swiper-pagination-bullet {
6306
6422
  gap: 1rem;
6307
6423
  }
6308
6424
 
6425
+ .panel-navigation-module-FnSua {
6426
+ block-size: inherit;
6427
+ }
6428
+
6429
+ .panel-navigation-module-torfG {
6430
+ position: relative;
6431
+ display: grid;
6432
+ block-size: inherit;
6433
+ grid-template-columns: repeat(4, 1fr);
6434
+ }
6435
+
6436
+ .panel-navigation-module-torfG.panel-navigation-module-7K80h {
6437
+ overflow: hidden;
6438
+ grid-template-columns: 1fr;
6439
+ }
6440
+
6441
+ .panel-navigation-module-j3ZBu {
6442
+ --transition-duration: 250ms;
6443
+
6444
+ z-index: 2;
6445
+ display: grid;
6446
+ background-color: var(--color-white);
6447
+ block-size: inherit;
6448
+ border-inline: 1px solid var(--color-brand-light-gray);
6449
+ margin-inline-start: -1px;
6450
+ }
6451
+
6452
+ /* only applies to the first panel, when more content than one menu is present, like in the mobile navigation */
6453
+
6454
+ .panel-navigation-module-j3ZBu.panel-navigation-module-1yGRP {
6455
+ display: flex;
6456
+ overflow: hidden auto;
6457
+ flex-direction: column;
6458
+ gap: var(--space-24);
6459
+ scrollbar-width: thin;
6460
+ }
6461
+
6462
+ .panel-navigation-module-j3ZBu.panel-navigation-module-1yGRP > * {
6463
+ flex-shrink: 0;
6464
+ }
6465
+
6466
+ .panel-navigation-module-j3ZBu:last-child {
6467
+ z-index: 1;
6468
+ }
6469
+
6470
+ .panel-navigation-module-j3ZBu.exit-active,
6471
+ .panel-navigation-module-j3ZBu.enter-active {
6472
+ transition: translate var(--transition-duration) ease-in-out;
6473
+ }
6474
+
6475
+ .panel-navigation-module-j3ZBu.exit-active,
6476
+ .panel-navigation-module-j3ZBu.enter {
6477
+ translate: -100% 0;
6478
+ }
6479
+
6480
+ .panel-navigation-module-j3ZBu.enter-active {
6481
+ translate: 0 0;
6482
+ }
6483
+
6484
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h {
6485
+ position: absolute;
6486
+ border: 0;
6487
+ margin: 0;
6488
+ inset: 0;
6489
+ }
6490
+
6491
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.exit-active,
6492
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.enter {
6493
+ translate: 100% 0;
6494
+ }
6495
+
6496
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.enter-active {
6497
+ translate: 0 0;
6498
+ }
6499
+
6500
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h:has(+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h) {
6501
+ transition: translate var(--transition-duration) ease-in-out;
6502
+ translate: -100% 0;
6503
+ }
6504
+
6505
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h:has(+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.exit-active) {
6506
+ translate: 0 0;
6507
+ }
6508
+
6309
6509
  .announcement-module-Xi0L5 {
6310
6510
  --text-color: var(--color-white);
6311
6511
  --background-color: var(--color-brand-red);
@@ -6696,7 +6896,7 @@ button.swiper-pagination-bullet {
6696
6896
 
6697
6897
  .checkout-page-layout-module-lULV3 .checkout-page-layout-module-wGAXb {
6698
6898
  position: fixed;
6699
- z-index: 5;
6899
+ z-index: var(--top-actions-sticky-layer);
6700
6900
  top: var(--header-height);
6701
6901
  right: 0;
6702
6902
  left: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "164.0.0",
3
+ "version": "165.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -1,3 +0,0 @@
1
- var styles = {"background-overlay":"background-overlay-module-mGiNQ","open":"background-overlay-module-5Uxcl","close":"background-overlay-module-GRInQ"};
2
-
3
- export { styles as default };