@sonic-equipment/ui 0.0.39 → 0.0.41

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/dist/styles.css CHANGED
@@ -206,6 +206,7 @@
206
206
 
207
207
  /* Box shadows */
208
208
  --box-shadow-heavy: 0 0 96px 0 rgb(0 0 0 / 30%);
209
+ --box-shadow-medium: 0 0 16px 0 rgb(0 0 0 / 30%);
209
210
  --box-shadow-light: 0 0 8px 0 rgb(0 0 0 / 30%);
210
211
  }
211
212
  :root {
@@ -782,6 +783,10 @@
782
783
  text-decoration: line-through;
783
784
  }
784
785
 
786
+ .product-price-module-oIU1K .product-price-module-til0s.product-price-module-V1NCf {
787
+ opacity: 0;
788
+ }
789
+
785
790
  .product-price-module-oIU1K .product-price-module-FfVhl {
786
791
  display: flex;
787
792
  flex-wrap: wrap;
@@ -817,7 +822,7 @@
817
822
  font-weight: var(--font-weight-normal);
818
823
  }
819
824
 
820
- .product-price-module-oIU1K:has(.product-price-module-til0s) {
825
+ .product-price-module-oIU1K:has(.product-price-module-til0s:not(.product-price-module-V1NCf)) {
821
826
  --current-price-color: var(--color-brand-red);
822
827
  --current-price-font-style: italic;
823
828
  }
@@ -854,6 +859,7 @@
854
859
 
855
860
  .product-card-module-pLaiB {
856
861
  --title-font-size: var(--font-size-16);
862
+ --box-shadow: var(--box-shadow-medium);
857
863
  --price-font-size-wholes: var(--font-size-32);
858
864
  --price-font-size-decimals: var(--font-size-20);
859
865
  --image-width: 122px;
@@ -947,13 +953,14 @@
947
953
 
948
954
  @media (hover: hover) {
949
955
  .product-card-module-pLaiB:hover {
950
- box-shadow: var(--box-shadow-heavy);
956
+ box-shadow: var(--box-shadow);
951
957
  scale: 1.04;
952
958
  }
953
959
  }
954
960
 
955
961
  @container (min-width: 273px) {
956
962
  .product-card-module-pLaiB {
963
+ --box-shadow: var(--box-shadow-heavy);
957
964
  --image-width: 204px;
958
965
  --padding-bottom: var(--space-24);
959
966
  }
@@ -982,98 +989,6 @@
982
989
  }
983
990
  }
984
991
 
985
- .category-card-module-4NUjH {
986
- all: unset;
987
- display: grid;
988
- max-width: 136px;
989
- cursor: pointer;
990
- padding-inline: 10px;
991
- place-items: center;
992
- -webkit-tap-highlight-color: transparent;
993
- }
994
-
995
- .category-card-module-4NUjH,
996
- .category-card-module-4NUjH * {
997
- box-sizing: border-box;
998
- }
999
-
1000
- .category-card-module-4NUjH .category-card-module-LEhh3 {
1001
- margin-top: var(--space-8);
1002
- margin-bottom: 0;
1003
- color: var(--color-brand-black);
1004
- font-size: var(--font-size-12);
1005
- font-style: italic;
1006
- font-weight: var(--font-weight-bold);
1007
- line-height: 1;
1008
- text-align: center;
1009
- text-transform: uppercase;
1010
- word-break: break-word;
1011
- }
1012
-
1013
- .category-card-module-4NUjH[data-pressed] .category-card-module-LEhh3, .category-card-module-4NUjH[data-hovered] .category-card-module-LEhh3, .category-card-module-4NUjH[data-focused] .category-card-module-LEhh3 {
1014
- color: var(--color-brand-red);
1015
- }
1016
-
1017
- .category-card-module-4NUjH[data-pressed] .category-card-module-LEhh3, .category-card-module-4NUjH[data-hovered] .category-card-module-LEhh3, .category-card-module-4NUjH[data-focused] .category-card-module-LEhh3, .category-card-module-4NUjH.category-card-module-vJ7vB .category-card-module-LEhh3 {
1018
- color: var(--color-brand-red);
1019
- }
1020
-
1021
- .category-card-module-4NUjH .category-card-module-oNTrK {
1022
- position: relative;
1023
- display: flex;
1024
- width: 62px;
1025
- aspect-ratio: 1 / 1;
1026
- }
1027
-
1028
- .category-card-module-4NUjH .category-card-module-oNTrK img {
1029
- position: relative;
1030
- z-index: 5;
1031
- margin: auto;
1032
- }
1033
-
1034
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1035
- position: absolute;
1036
- width: 52px;
1037
- border-radius: 100%;
1038
- margin: auto;
1039
- aspect-ratio: 1 / 1;
1040
- background-color: var(--color-brand-light-gray);
1041
- content: '';
1042
- inset: 0;
1043
- }
1044
-
1045
- @media (width >= 768px) {
1046
- .category-card-module-4NUjH .category-card-module-oNTrK {
1047
- width: 74px;
1048
- }
1049
-
1050
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1051
- width: 62px;
1052
- }
1053
- }
1054
-
1055
- @media (width >= 1024px) {.category-card-module-4NUjH {
1056
- padding-inline: 0
1057
- }
1058
- }
1059
-
1060
- @media (width >= 1440px) {.category-card-module-4NUjH {
1061
- max-width: 144px
1062
- }
1063
-
1064
- .category-card-module-4NUjH .category-card-module-oNTrK {
1065
- width: 96px;
1066
- }
1067
-
1068
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1069
- width: 80px;
1070
- }
1071
-
1072
- .category-card-module-4NUjH .category-card-module-LEhh3 {
1073
- margin-top: var(--space-16);
1074
- }
1075
- }
1076
-
1077
992
  /**
1078
993
  * Swiper 11.1.4
1079
994
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -1368,28 +1283,31 @@
1368
1283
  position: relative;
1369
1284
  overflow: visible;
1370
1285
  }
1371
- .carousel-module-ealh- .carousel-module-IftbN::before,
1372
- .carousel-module-ealh- .carousel-module-IftbN::after {
1373
- position: absolute;
1374
- z-index: calc(var(--carousel-layer) - 1);
1375
- top: 0;
1376
- width: calc((100vw - 100%) / 2);
1377
- height: 100%;
1378
- background: var(--color-brand-white);
1379
- content: '';
1380
- opacity: 1;
1381
- transition: opacity 0.2s ease;
1382
- }
1383
- .carousel-module-ealh- .carousel-module-IftbN::before {
1384
- left: calc(-1 * ((100vw - 100%) / 2));
1385
- }
1386
- .carousel-module-ealh- .carousel-module-IftbN::after {
1387
- right: calc(-1 * ((100vw - 100%) / 2));
1388
- }
1286
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::before,
1287
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::after {
1288
+ position: absolute;
1289
+ z-index: calc(var(--carousel-layer) - 1);
1290
+ top: 0;
1291
+ width: calc((100vw - 100%) / 2);
1292
+ height: 100%;
1293
+ background: var(--color-brand-white);
1294
+ content: '';
1295
+ opacity: 1;
1296
+ transition: opacity 0.2s ease;
1297
+ }
1298
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::before {
1299
+ left: calc(-1 * ((100vw - 100%) / 2));
1300
+ }
1301
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::after {
1302
+ right: calc(-1 * ((100vw - 100%) / 2));
1303
+ }
1389
1304
  .carousel-module-ealh- .carousel-module-bUMlb {
1390
1305
  display: block;
1391
1306
  width: auto;
1392
1307
  }
1308
+ .carousel-module-ealh- .carousel-module-kcqEE.carousel-module-uCrOA {
1309
+ display: none;
1310
+ }
1393
1311
  .carousel-module-ealh-:has(.carousel-module-T7bTr .carousel-module-kcqEE:hover) .carousel-module-IftbN::after, .carousel-module-ealh-:has(.carousel-module-34OWD) .carousel-module-IftbN::after {
1394
1312
  opacity: 0;
1395
1313
  }
@@ -2014,17 +1932,22 @@
2014
1932
  }
2015
1933
 
2016
1934
  .loading-overlay-module-L67Gy {
1935
+ --header-height-desktop: 96px;
1936
+ --header-height-mobile: 54px;
1937
+ --header-height: var(--header-height-mobile);
1938
+
1939
+ display: grid;
2017
1940
  width: 100%;
2018
- height: 100dvh;
1941
+ height: calc(100dvh - var(--header-height));
2019
1942
  background-color: var(--color-white);
1943
+ place-items: center;
2020
1944
  }
2021
1945
 
2022
- .loading-overlay-module-L67Gy .loading-overlay-module-N-eSX {
2023
- position: fixed;
2024
- top: 50%;
2025
- left: 50%;
2026
- transform: translate(-50%, -50%);
1946
+ @media (width >= 1024px) {
1947
+ .loading-overlay-module-L67Gy {
1948
+ --header-height: var(--header-height-desktop);
2027
1949
  }
1950
+ }
2028
1951
 
2029
1952
  .page-container-module-PYmbC {
2030
1953
  overflow: hidden;
@@ -2234,6 +2157,98 @@
2234
2157
  height: 12px;
2235
2158
  }
2236
2159
 
2160
+ .category-card-module-4NUjH {
2161
+ all: unset;
2162
+ display: grid;
2163
+ max-width: 136px;
2164
+ cursor: pointer;
2165
+ padding-inline: 10px;
2166
+ place-items: center;
2167
+ -webkit-tap-highlight-color: transparent;
2168
+ }
2169
+
2170
+ .category-card-module-4NUjH,
2171
+ .category-card-module-4NUjH * {
2172
+ box-sizing: border-box;
2173
+ }
2174
+
2175
+ .category-card-module-4NUjH .category-card-module-LEhh3 {
2176
+ margin-top: var(--space-8);
2177
+ margin-bottom: 0;
2178
+ color: var(--color-brand-black);
2179
+ font-size: var(--font-size-12);
2180
+ font-style: italic;
2181
+ font-weight: var(--font-weight-bold);
2182
+ line-height: 1;
2183
+ text-align: center;
2184
+ text-transform: uppercase;
2185
+ word-break: break-word;
2186
+ }
2187
+
2188
+ .category-card-module-4NUjH[data-pressed] .category-card-module-LEhh3, .category-card-module-4NUjH[data-hovered] .category-card-module-LEhh3, .category-card-module-4NUjH[data-focused] .category-card-module-LEhh3 {
2189
+ color: var(--color-brand-red);
2190
+ }
2191
+
2192
+ .category-card-module-4NUjH[data-pressed] .category-card-module-LEhh3, .category-card-module-4NUjH[data-hovered] .category-card-module-LEhh3, .category-card-module-4NUjH[data-focused] .category-card-module-LEhh3, .category-card-module-4NUjH.category-card-module-vJ7vB .category-card-module-LEhh3 {
2193
+ color: var(--color-brand-red);
2194
+ }
2195
+
2196
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2197
+ position: relative;
2198
+ display: flex;
2199
+ width: 62px;
2200
+ aspect-ratio: 1 / 1;
2201
+ }
2202
+
2203
+ .category-card-module-4NUjH .category-card-module-oNTrK img {
2204
+ position: relative;
2205
+ z-index: 5;
2206
+ margin: auto;
2207
+ }
2208
+
2209
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2210
+ position: absolute;
2211
+ width: 52px;
2212
+ border-radius: 100%;
2213
+ margin: auto;
2214
+ aspect-ratio: 1 / 1;
2215
+ background-color: var(--color-brand-light-gray);
2216
+ content: '';
2217
+ inset: 0;
2218
+ }
2219
+
2220
+ @media (width >= 768px) {
2221
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2222
+ width: 74px;
2223
+ }
2224
+
2225
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2226
+ width: 62px;
2227
+ }
2228
+ }
2229
+
2230
+ @media (width >= 1024px) {.category-card-module-4NUjH {
2231
+ padding-inline: 0
2232
+ }
2233
+ }
2234
+
2235
+ @media (width >= 1440px) {.category-card-module-4NUjH {
2236
+ max-width: 144px
2237
+ }
2238
+
2239
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2240
+ width: 96px;
2241
+ }
2242
+
2243
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2244
+ width: 80px;
2245
+ }
2246
+
2247
+ .category-card-module-4NUjH .category-card-module-LEhh3 {
2248
+ margin-top: var(--space-16);
2249
+ }
2250
+ }
2251
+
2237
2252
  .sidebar-module-fSa9Q {
2238
2253
  --transition-timing-function: ease-in-out;
2239
2254
 
@@ -2464,6 +2479,7 @@
2464
2479
  .global-search-module-d2g2F {
2465
2480
  position: relative;
2466
2481
  z-index: var(--search-layer);
2482
+ font-family: var(--font-family-sonic);
2467
2483
  }
2468
2484
 
2469
2485
  .global-search-module-d2g2F .global-search-module-Sx8Lx {
@@ -2529,6 +2545,117 @@
2529
2545
  appearance: none;
2530
2546
  }
2531
2547
 
2548
+ .search-content-module-KIok6 {
2549
+ --padding-inline: var(--space-16);
2550
+ --padding-block: var(--space-20);
2551
+
2552
+ display: grid;
2553
+ gap: var(--space-24);
2554
+ grid-template-columns: 1fr;
2555
+ }
2556
+
2557
+ .search-content-module-KIok6 .search-content-module-YRLIf {
2558
+ display: block;
2559
+ }
2560
+
2561
+ .search-content-module-KIok6 .search-content-module-qK5sg {
2562
+ display: block;
2563
+ }
2564
+
2565
+ .search-content-module-HLQ4O {
2566
+ display: grid;
2567
+ padding-block: var(--padding-block);
2568
+ padding-inline: var(--padding-inline);
2569
+ }
2570
+
2571
+ .search-content-module-HLQ4O .search-content-module-ywvOI {
2572
+ margin-top: 0;
2573
+ margin-bottom: var(--space-8);
2574
+ color: var(--color-brand-dark-gray);
2575
+ font-size: var(--font-size-16);
2576
+ font-weight: var(--font-weight-normal);
2577
+ line-height: 1;
2578
+ }
2579
+
2580
+ .search-content-module-HLQ4O.search-content-module--V5hi {
2581
+ padding-block-end: 0;
2582
+ padding-inline: 0;
2583
+ }
2584
+
2585
+ .search-content-module-HLQ4O.search-content-module--V5hi .search-content-module-ywvOI {
2586
+ padding-inline: var(--padding-inline);
2587
+ }
2588
+
2589
+ .search-content-module-bcFCH {
2590
+ --column-gap: var(--space-16);
2591
+ --card-width: 154px;
2592
+
2593
+ overflow: hidden;
2594
+ padding-top: 32px;
2595
+ margin-top: -32px;
2596
+ gap: var(--column-gap);
2597
+ padding-block-end: var(--padding-block);
2598
+ padding-inline: var(--padding-inline);
2599
+ }
2600
+
2601
+ @media (width >= 768px) {
2602
+ .search-content-module-KIok6 {
2603
+ grid-template-columns: 324px 1fr;
2604
+ }
2605
+
2606
+ .search-content-module-bcFCH {
2607
+ --card-width: 192px;
2608
+ }
2609
+ }
2610
+
2611
+ @media (width >= 1024px) {
2612
+ .search-content-module-KIok6 {
2613
+ --padding-inline: var(--space-32);
2614
+ }
2615
+ }
2616
+
2617
+ .product-carousel-module-XVTB1 {
2618
+ --slide-width: 154px;
2619
+
2620
+ position: relative;
2621
+ }
2622
+
2623
+ .product-carousel-module-XVTB1 > * {
2624
+ width: var(--slide-width);
2625
+ }
2626
+
2627
+ .product-carousel-module-XVTB1:not(:last-child)::after {
2628
+ position: absolute;
2629
+ top: 0;
2630
+ left: calc(100% + var(--column-gap) / 2);
2631
+ width: 1px;
2632
+ height: 100%;
2633
+ background-image: linear-gradient(
2634
+ to bottom,
2635
+ var(--color-white),
2636
+ #e0dfdf 10%,
2637
+ #bdbcbc 51%,
2638
+ #e0dfdf 90%,
2639
+ var(--color-white)
2640
+ );
2641
+ content: '';
2642
+ }
2643
+
2644
+ @media (hover: hover) {
2645
+ .product-carousel-module-XVTB1:has(> :hover) {
2646
+ z-index: 1;
2647
+ }
2648
+ .product-carousel-module-XVTB1:has(> :hover)::after, .product-carousel-module-XVTB1:has(+ .product-carousel-module-XVTB1:hover)::after {
2649
+ display: none;
2650
+ }
2651
+ }
2652
+
2653
+ @media (width >= 768px) {
2654
+ .product-carousel-module-XVTB1 {
2655
+ --slide-width: 192px;
2656
+ }
2657
+ }
2658
+
2532
2659
  .search-result-panel-module-KBrc9 {
2533
2660
  position: absolute;
2534
2661
  z-index: var(--sidebar-layer);
@@ -2536,15 +2663,12 @@
2536
2663
  left: 0;
2537
2664
  overflow: hidden;
2538
2665
  width: 100%;
2666
+ box-sizing: border-box;
2539
2667
  background-color: var(--color-white);
2540
2668
  box-shadow: var(--box-shadow-heavy);
2541
2669
  transition: transform 0.3s ease-in-out;
2542
2670
  }
2543
2671
 
2544
- .search-result-panel-module-KBrc9:not(:empty) {
2545
- padding: 20px 32px;
2546
- }
2547
-
2548
2672
  .search-result-panel-module-KBrc9.search-result-panel-module-Us8rb,
2549
2673
  .search-result-panel-module-KBrc9.search-result-panel-module-7UxfH {
2550
2674
  transform: translateY(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {