@sonic-equipment/ui 164.0.0 → 166.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 (62) 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/checkout/payment-page/components/payment.js +1 -1
  46. package/dist/pages/paths.d.ts +1 -0
  47. package/dist/pages/paths.js +1 -0
  48. package/dist/shared/hooks/use-global-disclosure.d.ts +10 -0
  49. package/dist/shared/hooks/use-global-disclosure.js +25 -0
  50. package/dist/shared/hooks/use-watch-css-property.d.ts +1 -1
  51. package/dist/shared/hooks/use-watch-css-property.js +2 -3
  52. package/dist/shared/model/category.d.ts +5 -0
  53. package/dist/shared/model/category.js +7 -1
  54. package/dist/shared/model/price.d.ts +2 -2
  55. package/dist/shared/utils/css.d.ts +1 -0
  56. package/dist/shared/utils/css.js +15 -0
  57. package/dist/shared/utils/refs.d.ts +2 -0
  58. package/dist/shared/utils/refs.js +14 -0
  59. package/dist/sidebar/sidebar-provider.js +1 -1
  60. package/dist/styles.css +264 -67
  61. package/package.json +1 -1
  62. 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
  }
@@ -259,9 +260,6 @@
259
260
  100% no-repeat exclude,
260
261
  linear-gradient(0deg, #000, #000);
261
262
  }
262
- :root {
263
- scrollbar-gutter: stable;
264
- }
265
263
 
266
264
  .address-info-display-module-CbRth {
267
265
  font: inherit;
@@ -1688,9 +1686,8 @@
1688
1686
  color: var(--color-white);
1689
1687
  }
1690
1688
 
1691
- .background-overlay-module-mGiNQ {
1689
+ .background-overlay {
1692
1690
  position: fixed;
1693
- z-index: var(--background-overlay-layer);
1694
1691
  -webkit-backdrop-filter: blur(4px);
1695
1692
  backdrop-filter: blur(4px);
1696
1693
  background-color: rgb(0 0 0 / 52%);
@@ -1698,15 +1695,14 @@
1698
1695
  opacity: 0;
1699
1696
  pointer-events: none;
1700
1697
  transition: opacity 0.3s ease-in-out;
1698
+ -webkit-user-select: none;
1699
+ -moz-user-select: none;
1700
+ user-select: none;
1701
1701
  }
1702
1702
 
1703
- .background-overlay-module-mGiNQ.background-overlay-module-5Uxcl {
1703
+ .background-overlay.visible {
1704
1704
  opacity: 1;
1705
- pointer-events: auto;
1706
- }
1707
-
1708
- .background-overlay-module-mGiNQ.background-overlay-module-GRInQ {
1709
- opacity: 0;
1705
+ pointer-events: all;
1710
1706
  }
1711
1707
 
1712
1708
  .badge-module-X5Au9 {
@@ -2603,7 +2599,7 @@
2603
2599
 
2604
2600
  .category-card-module-4NUjH .category-card-module-oNTrK .category-card-module-RxWMW {
2605
2601
  position: relative;
2606
- z-index: 5;
2602
+ z-index: 1;
2607
2603
  margin: auto;
2608
2604
  aspect-ratio: 1;
2609
2605
  mix-blend-mode: multiply;
@@ -4570,6 +4566,111 @@ button.swiper-pagination-bullet {
4570
4566
  line-height: 1.5;
4571
4567
  }
4572
4568
 
4569
+ .drawer-module-5ARuA {
4570
+ --transition-timing-function: ease-in-out;
4571
+ --transition-duration: 0.3s;
4572
+ --transform-translate-x-from: -100%;
4573
+ --transform-translate-x-to: 0;
4574
+ --transform-translate-y-from: 0;
4575
+ --transform-translate-y-to: 0;
4576
+
4577
+ position: fixed;
4578
+ z-index: var(--sidebar-layer);
4579
+ display: flex;
4580
+ flex-direction: column;
4581
+ border: 1px solid var(--color-gray-200);
4582
+ background-color: var(--color-white);
4583
+ pointer-events: all;
4584
+ }
4585
+
4586
+ .drawer-module-5ARuA.drawer-module-yjFdX {
4587
+ top: 0;
4588
+ bottom: 0;
4589
+ left: 0;
4590
+ min-width: 300px;
4591
+ }
4592
+
4593
+ .drawer-module-5ARuA.drawer-module-bZLBV {
4594
+ --transform-translate-x-from: 100%;
4595
+ --transform-translate-x-to: 0;
4596
+ --transform-translate-y-from: 0;
4597
+ --transform-translate-y-to: 0;
4598
+
4599
+ top: 0;
4600
+ right: 0;
4601
+ bottom: 0;
4602
+ min-width: 300px;
4603
+ }
4604
+
4605
+ .drawer-module-5ARuA.drawer-module-KiviE {
4606
+ --transform-translate-x-from: 0;
4607
+ --transform-translate-x-to: 0;
4608
+ --transform-translate-y-from: -100%;
4609
+ --transform-translate-y-to: 0;
4610
+
4611
+ top: 0;
4612
+ right: 0;
4613
+ left: 0;
4614
+ min-height: 300px;
4615
+ }
4616
+
4617
+ .drawer-module-5ARuA.drawer-module-p-PYu {
4618
+ right: 0;
4619
+
4620
+ --transform-translate-x-from: 0;
4621
+ --transform-translate-x-to: 0;
4622
+ --transform-translate-y-from: 100%;
4623
+ --transform-translate-y-to: 0;
4624
+
4625
+ bottom: 0;
4626
+ left: 0;
4627
+ min-height: 300px;
4628
+ }
4629
+
4630
+ .drawer-module-5ARuA.drawer-module-0jRBQ {
4631
+ z-index: calc(var(--header-layer) - 1);
4632
+ }
4633
+
4634
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-yjFdX,
4635
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-bZLBV,
4636
+ .drawer-module-5ARuA.drawer-module-0jRBQ.drawer-module-KiviE {
4637
+ top: var(--header-height);
4638
+ }
4639
+
4640
+ .drawer-module-5ARuA.enter {
4641
+ transform: translate(
4642
+ var(--transform-translate-x-from),
4643
+ var(--transform-translate-y-from)
4644
+ );
4645
+ }
4646
+
4647
+ .drawer-module-5ARuA.enter-active {
4648
+ transform: translate(
4649
+ var(--transform-translate-x-to),
4650
+ var(--transform-translate-y-to)
4651
+ );
4652
+ }
4653
+
4654
+ .drawer-module-5ARuA.exit {
4655
+ transform: translate(
4656
+ var(--transform-translate-x-to),
4657
+ var(--transform-translate-y-to)
4658
+ );
4659
+ }
4660
+
4661
+ .drawer-module-5ARuA.exit-active {
4662
+ transform: translate(
4663
+ var(--transform-translate-x-from),
4664
+ var(--transform-translate-y-from)
4665
+ );
4666
+ }
4667
+
4668
+ .drawer-module-5ARuA.exit-active,
4669
+ .drawer-module-5ARuA.enter-active {
4670
+ transition: transform var(--transition-duration)
4671
+ var(--transition-timing-function);
4672
+ }
4673
+
4573
4674
  .footer-module-YzJ68 {
4574
4675
  --padding-inline: var(--space-24);
4575
4676
 
@@ -5076,53 +5177,6 @@ button.swiper-pagination-bullet {
5076
5177
  }
5077
5178
  }
5078
5179
 
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
5180
  .search-input-module-xCCzd {
5127
5181
  box-sizing: border-box;
5128
5182
  }
@@ -5478,6 +5532,49 @@ button.swiper-pagination-bullet {
5478
5532
  transform: translateY(-100%);
5479
5533
  }
5480
5534
 
5535
+ .global-search-module-d2g2F {
5536
+ position: relative;
5537
+ z-index: -1;
5538
+ font-family: var(--font-family-sonic);
5539
+ }
5540
+
5541
+ .global-search-module-Sx8Lx {
5542
+ position: relative;
5543
+ }
5544
+
5545
+ .global-search-module-Sx8Lx .global-search-module--orCF {
5546
+ position: absolute;
5547
+ z-index: var(--search-layer);
5548
+ top: 0;
5549
+ right: 0;
5550
+ left: 0;
5551
+ box-sizing: border-box;
5552
+ transition: transform 0.3s ease-in-out;
5553
+ }
5554
+
5555
+ .global-search-module-Sx8Lx .global-search-module--orCF .global-search-module-vXnL6 {
5556
+ position: relative;
5557
+ z-index: calc(var(--search-layer) + 1);
5558
+ }
5559
+
5560
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-MYwlp {
5561
+ transform: translateY(0);
5562
+ }
5563
+
5564
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-Jmt3c {
5565
+ transform: translateY(0);
5566
+ }
5567
+
5568
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-gQQfY {
5569
+ transform: translateY(-100%);
5570
+ }
5571
+
5572
+ .global-search-module-Sx8Lx .global-search-module--orCF.global-search-module-AABcw {
5573
+ opacity: 0;
5574
+ pointer-events: none;
5575
+ transform: translateY(-100%);
5576
+ }
5577
+
5481
5578
  .hamburger-button-module-xER52 {
5482
5579
  --width: 24px;
5483
5580
  --padding-inline: 2px;
@@ -5658,6 +5755,15 @@ button.swiper-pagination-bullet {
5658
5755
  fill: var(--color-brand-red);
5659
5756
  }
5660
5757
 
5758
+ .center-module-Cr7hx {
5759
+ display: grid;
5760
+ width: 100%;
5761
+ height: 100%;
5762
+ min-height: inherit;
5763
+ align-items: center;
5764
+ place-content: center center;
5765
+ }
5766
+
5661
5767
  .feature-list-module-cxc8U {
5662
5768
  display: grid;
5663
5769
  grid-template-columns: auto minmax(50%, 1fr);
@@ -5764,7 +5870,7 @@ button.swiper-pagination-bullet {
5764
5870
 
5765
5871
  /* scroll area */
5766
5872
 
5767
- .menu-list-module-TloB9 .menu-list-module-x3D-V {
5873
+ .menu-list-module-TloB9.menu-list-module-AiDgG .menu-list-module-x3D-V {
5768
5874
  grid-area: scroll-area;
5769
5875
  overflow-y: auto;
5770
5876
  scrollbar-width: thin;
@@ -5816,7 +5922,6 @@ button.swiper-pagination-bullet {
5816
5922
  align-items: center;
5817
5923
  padding: var(--space-8) var(--ml-item-outer-spacing, 0);
5818
5924
  margin: 0 0 -2px;
5819
- background: var(--color-white);
5820
5925
  color: var(--color-brand-dark-gray);
5821
5926
  font-size: var(--text-heading-xxxs-size);
5822
5927
  font-style: italic;
@@ -5857,6 +5962,10 @@ button.swiper-pagination-bullet {
5857
5962
  box-shadow: inset var(--shadow-focus-outline);
5858
5963
  }
5859
5964
 
5965
+ .menu-list-module-S08LI:has(:focus-visible) [href] {
5966
+ box-shadow: none;
5967
+ }
5968
+
5860
5969
  /* menu list item */
5861
5970
 
5862
5971
  .menu-list-module-4QhF4 {
@@ -5995,10 +6104,14 @@ button.swiper-pagination-bullet {
5995
6104
  z-index: 2;
5996
6105
  }
5997
6106
 
5998
- .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo::before {
5999
- box-shadow: inset var(--shadow-focus-outline);
6107
+ .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo {
6108
+ box-shadow: none;
6000
6109
  }
6001
6110
 
6111
+ .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo::before {
6112
+ box-shadow: inset var(--shadow-focus-outline);
6113
+ }
6114
+
6002
6115
  /* selected state */
6003
6116
 
6004
6117
  .menu-list-module-4QhF4.menu-list-module-hiMca {
@@ -6306,6 +6419,90 @@ button.swiper-pagination-bullet {
6306
6419
  gap: 1rem;
6307
6420
  }
6308
6421
 
6422
+ .panel-navigation-module-FnSua {
6423
+ block-size: inherit;
6424
+ }
6425
+
6426
+ .panel-navigation-module-torfG {
6427
+ position: relative;
6428
+ display: grid;
6429
+ block-size: inherit;
6430
+ grid-template-columns: repeat(4, 1fr);
6431
+ }
6432
+
6433
+ .panel-navigation-module-torfG.panel-navigation-module-7K80h {
6434
+ overflow: hidden;
6435
+ grid-template-columns: 1fr;
6436
+ }
6437
+
6438
+ .panel-navigation-module-j3ZBu {
6439
+ --transition-duration: 250ms;
6440
+
6441
+ z-index: 2;
6442
+ display: grid;
6443
+ background-color: var(--color-white);
6444
+ block-size: inherit;
6445
+ border-inline: 1px solid var(--color-brand-light-gray);
6446
+ margin-inline-start: -1px;
6447
+ }
6448
+
6449
+ /* only applies to the first panel, when more content than one menu is present, like in the mobile navigation */
6450
+
6451
+ .panel-navigation-module-j3ZBu.panel-navigation-module-1yGRP {
6452
+ display: flex;
6453
+ overflow: hidden auto;
6454
+ flex-direction: column;
6455
+ gap: var(--space-24);
6456
+ scrollbar-width: thin;
6457
+ }
6458
+
6459
+ .panel-navigation-module-j3ZBu.panel-navigation-module-1yGRP > * {
6460
+ flex-shrink: 0;
6461
+ }
6462
+
6463
+ .panel-navigation-module-j3ZBu:last-child {
6464
+ z-index: 1;
6465
+ }
6466
+
6467
+ .panel-navigation-module-j3ZBu.exit-active,
6468
+ .panel-navigation-module-j3ZBu.enter-active {
6469
+ transition: translate var(--transition-duration) ease-in-out;
6470
+ }
6471
+
6472
+ .panel-navigation-module-j3ZBu.exit-active,
6473
+ .panel-navigation-module-j3ZBu.enter {
6474
+ translate: -100% 0;
6475
+ }
6476
+
6477
+ .panel-navigation-module-j3ZBu.enter-active {
6478
+ translate: 0 0;
6479
+ }
6480
+
6481
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h {
6482
+ position: absolute;
6483
+ border: 0;
6484
+ margin: 0;
6485
+ inset: 0;
6486
+ }
6487
+
6488
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.exit-active,
6489
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.enter {
6490
+ translate: 100% 0;
6491
+ }
6492
+
6493
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.enter-active {
6494
+ translate: 0 0;
6495
+ }
6496
+
6497
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h:has(+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h) {
6498
+ transition: translate var(--transition-duration) ease-in-out;
6499
+ translate: -100% 0;
6500
+ }
6501
+
6502
+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h:has(+ .panel-navigation-module-j3ZBu.panel-navigation-module-7K80h.exit-active) {
6503
+ translate: 0 0;
6504
+ }
6505
+
6309
6506
  .announcement-module-Xi0L5 {
6310
6507
  --text-color: var(--color-white);
6311
6508
  --background-color: var(--color-brand-red);
@@ -6696,7 +6893,7 @@ button.swiper-pagination-bullet {
6696
6893
 
6697
6894
  .checkout-page-layout-module-lULV3 .checkout-page-layout-module-wGAXb {
6698
6895
  position: fixed;
6699
- z-index: 5;
6896
+ z-index: var(--top-actions-sticky-layer);
6700
6897
  top: var(--header-height);
6701
6898
  right: 0;
6702
6899
  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": "166.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 };