@sonic-equipment/ui 215.0.0 → 217.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.
- package/dist/buttons/button/button.module.css.js +1 -1
- package/dist/buttons/icon-button/icon-button.d.ts +1 -1
- package/dist/buttons/icon-button/icon-button.js +5 -3
- package/dist/buttons/reorder-button/connected-reorder-button.d.ts +4 -0
- package/dist/buttons/reorder-button/connected-reorder-button.js +37 -0
- package/dist/buttons/reorder-button/reorder-button.d.ts +9 -0
- package/dist/buttons/reorder-button/reorder-button.js +11 -0
- package/dist/display/price/price.js +2 -2
- package/dist/display/price/price.module.css.js +1 -1
- package/dist/exports.d.ts +6 -0
- package/dist/header/buttons/account/connected-account-button.d.ts +1 -2
- package/dist/header/buttons/account/connected-account-button.js +20 -11
- package/dist/header/buttons/account/connected-account-button.module.css.js +3 -0
- package/dist/index.js +10 -4
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/navigation/mobile-navigation/mobile-navigation.js +2 -2
- package/dist/navigation/quick-access-menu/quick-access-menu.d.ts +8 -0
- package/dist/navigation/quick-access-menu/quick-access-menu.js +21 -0
- package/dist/navigation/quick-access-menu/quick-access-menu.module.css.js +3 -0
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +3 -16
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.d.ts +2 -2
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.js +7 -5
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.d.ts +2 -2
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.js +7 -5
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.d.ts +5 -2
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.js +16 -5
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +2 -2
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +2 -2
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +2 -2
- package/dist/pages/my-sonic/pages/favorites/favorites-page.js +1 -1
- package/dist/pages/my-sonic/pages/my-account/my-account-page.js +2 -2
- package/dist/pages/my-sonic/pages/order-details/order-details-content.d.ts +3 -1
- package/dist/pages/my-sonic/pages/order-details/order-details-content.js +3 -3
- package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +4 -1
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +23 -3
- package/dist/pages/my-sonic/pages/order-history/order-history-page.js +5 -2
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out-mutation.d.ts +5 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out-mutation.js +26 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.d.ts +3 -5
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.js +15 -18
- package/dist/shared/api/storefront/hooks/cart/use-add-bulk-products-to-current-cart.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/cart/use-add-bulk-products-to-current-cart.js +21 -0
- package/dist/shared/api/storefront/services/cart-service.d.ts +4 -0
- package/dist/shared/api/storefront/services/cart-service.js +13 -1
- package/dist/shared/routing/types.d.ts +1 -1
- package/dist/shared/utils/greeting.d.ts +1 -0
- package/dist/shared/utils/greeting.js +15 -0
- package/dist/shared/utils/price.d.ts +1 -0
- package/dist/shared/utils/price.js +3 -0
- package/dist/shared/utils/types.d.ts +1 -0
- package/dist/shared/utils/types.js +4 -1
- package/dist/styles.css +117 -12
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -240,6 +240,7 @@
|
|
|
240
240
|
--search-layer: 200;
|
|
241
241
|
--modal-layer: 2000;
|
|
242
242
|
--zoom-image-layer: 2100;
|
|
243
|
+
--popover-layer: 100000;
|
|
243
244
|
}
|
|
244
245
|
:root {
|
|
245
246
|
--search-input-height: 76px;
|
|
@@ -1106,8 +1107,13 @@ html {
|
|
|
1106
1107
|
|
|
1107
1108
|
.button-module-V4meK .button-module-XaNWz {
|
|
1108
1109
|
display: block;
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1110
|
+
width: 1.5em;
|
|
1111
|
+
height: 1.5em;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.button-module-V4meK .button-module-ydQAo {
|
|
1115
|
+
block-size: 0.7em;
|
|
1116
|
+
inline-size: 0.7em;
|
|
1111
1117
|
}
|
|
1112
1118
|
|
|
1113
1119
|
.button-module-V4meK.button-module-LwuW2,
|
|
@@ -1218,7 +1224,6 @@ html {
|
|
|
1218
1224
|
|
|
1219
1225
|
.button-module-tmyk8 .button-module-ydQAo {
|
|
1220
1226
|
color: var(--color-brand-white);
|
|
1221
|
-
transform: translateY(-1px);
|
|
1222
1227
|
}
|
|
1223
1228
|
|
|
1224
1229
|
.button-module-tmyk8:where([data-disabled]):where(:not(.button-module-U5IxM, .button-module-LwuW2)) {
|
|
@@ -2047,16 +2052,17 @@ html {
|
|
|
2047
2052
|
.badge-module-X5Au9 {
|
|
2048
2053
|
--shadow-color: 48 209 88;
|
|
2049
2054
|
--animation-duration: 1000ms;
|
|
2055
|
+
--size: 16px;
|
|
2050
2056
|
|
|
2051
2057
|
display: flex;
|
|
2052
|
-
min-width: 16px;
|
|
2053
|
-
height: 16px;
|
|
2054
2058
|
box-sizing: border-box;
|
|
2055
2059
|
align-items: center;
|
|
2056
2060
|
justify-content: center;
|
|
2057
2061
|
padding: var(--space-4);
|
|
2058
2062
|
border: 1px solid var(--color-white);
|
|
2059
|
-
border-radius: var(--
|
|
2063
|
+
border-radius: calc(var(--size) / 2);
|
|
2064
|
+
block-size: var(--size);
|
|
2065
|
+
min-inline-size: var(--size);
|
|
2060
2066
|
}
|
|
2061
2067
|
|
|
2062
2068
|
.badge-module-X5Au9 .badge-module-ododp {
|
|
@@ -2066,6 +2072,7 @@ html {
|
|
|
2066
2072
|
color: var(--color-white);
|
|
2067
2073
|
font-size: var(--font-size-8);
|
|
2068
2074
|
font-weight: var(--font-weight-bold);
|
|
2075
|
+
line-height: 1;
|
|
2069
2076
|
}
|
|
2070
2077
|
|
|
2071
2078
|
.badge-module-X5Au9:where(.badge-module-Q03Go) {
|
|
@@ -2904,7 +2911,7 @@ html {
|
|
|
2904
2911
|
font-size: var(--font-size, 1em);
|
|
2905
2912
|
font-style: var(--font-style, inherit);
|
|
2906
2913
|
font-weight: var(--font-weight, inherit);
|
|
2907
|
-
grid-template-
|
|
2914
|
+
grid-template-columns: repeat(2, minmax(0, min-content));
|
|
2908
2915
|
line-height: var(--line-height, inherit);
|
|
2909
2916
|
vertical-align: baseline;
|
|
2910
2917
|
white-space: nowrap;
|
|
@@ -2917,14 +2924,12 @@ html {
|
|
|
2917
2924
|
.price-module-Qyyas .price-module--Oil0 {
|
|
2918
2925
|
font-size: var(--font-size-symbol);
|
|
2919
2926
|
font-weight: var(--font-weight-symbol);
|
|
2920
|
-
grid-area: symbol;
|
|
2921
2927
|
justify-self: flex-end;
|
|
2922
2928
|
margin-block-start: var(--margin-block-symbol);
|
|
2923
2929
|
margin-inline-end: var(--margin-inline-symbol);
|
|
2924
2930
|
}
|
|
2925
2931
|
.price-module-Qyyas .price-module-QnS4t {
|
|
2926
2932
|
display: inline-flex;
|
|
2927
|
-
grid-area: number;
|
|
2928
2933
|
}
|
|
2929
2934
|
.price-module-Qyyas .price-module-p8hAn {
|
|
2930
2935
|
font-size: var(--font-size-fraction);
|
|
@@ -2940,9 +2945,9 @@ html {
|
|
|
2940
2945
|
--font-weight: var(--font-weight-black);
|
|
2941
2946
|
--font-weight-symbol: var(--font-weight-medium);
|
|
2942
2947
|
--line-height: 1;
|
|
2943
|
-
--margin-block-fraction: 0.
|
|
2944
|
-
--margin-block-symbol: 0.
|
|
2945
|
-
--margin-inline-fraction: -0.
|
|
2948
|
+
--margin-block-fraction: 0.075em;
|
|
2949
|
+
--margin-block-symbol: 0.075em;
|
|
2950
|
+
--margin-inline-fraction: -0.3em;
|
|
2946
2951
|
--margin-inline-symbol: 0.05em;
|
|
2947
2952
|
}
|
|
2948
2953
|
.price-module-Qyyas.price-module-vUbWV .price-module-9HAVF {
|
|
@@ -3066,6 +3071,13 @@ html {
|
|
|
3066
3071
|
.price-module-tbuNk:where(.price-module-vUbWV) .price-module-uVTD7 {
|
|
3067
3072
|
grid-column: 1 / -1;
|
|
3068
3073
|
}
|
|
3074
|
+
.price-module-tbuNk:where(.price-module-vUbWV):has(.price-module-SkIMi) {
|
|
3075
|
+
justify-content: start;
|
|
3076
|
+
grid-template-columns: 1fr minmax(0, min-content);
|
|
3077
|
+
}
|
|
3078
|
+
.price-module-tbuNk:where(.price-module-vUbWV):has(.price-module-SkIMi) .price-module-x77Vd {
|
|
3079
|
+
grid-template-columns: auto auto;
|
|
3080
|
+
}
|
|
3069
3081
|
|
|
3070
3082
|
.product-sku-module-ITb8x {
|
|
3071
3083
|
all: unset;
|
|
@@ -6034,6 +6046,98 @@ button.swiper-pagination-bullet {
|
|
|
6034
6046
|
transform: translateY(-100%);
|
|
6035
6047
|
}
|
|
6036
6048
|
|
|
6049
|
+
.quick-access-menu-module-Hr2Dq {
|
|
6050
|
+
--size-vp: calc(100svh - var(--space-16) * 2);
|
|
6051
|
+
--size: min-content;
|
|
6052
|
+
--size-min: 224px;
|
|
6053
|
+
--size-max: min(var(--size-vp), 350px);
|
|
6054
|
+
|
|
6055
|
+
display: flex;
|
|
6056
|
+
box-sizing: border-box;
|
|
6057
|
+
flex-direction: column;
|
|
6058
|
+
padding: var(--space-12) var(--space-16);
|
|
6059
|
+
border: 1px solid var(--color-brand-medium-gray);
|
|
6060
|
+
border-radius: var(--border-radius-22);
|
|
6061
|
+
background: var(--color-white);
|
|
6062
|
+
box-shadow: 0 0 96px #0000004c;
|
|
6063
|
+
inline-size: var(--size);
|
|
6064
|
+
max-inline-size: var(--size-max);
|
|
6065
|
+
min-inline-size: var(--size-min);
|
|
6066
|
+
}
|
|
6067
|
+
|
|
6068
|
+
.quick-access-menu-module-Hr2Dq > * {
|
|
6069
|
+
box-sizing: border-box;
|
|
6070
|
+
}
|
|
6071
|
+
|
|
6072
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-wUIbQ {
|
|
6073
|
+
display: flex;
|
|
6074
|
+
overflow: hidden;
|
|
6075
|
+
flex-flow: row wrap;
|
|
6076
|
+
padding: var(--space-8);
|
|
6077
|
+
border-block-end: 1px solid var(--color-brand-light-gray);
|
|
6078
|
+
gap: 0 0.25em;
|
|
6079
|
+
line-height: 1.2;
|
|
6080
|
+
}
|
|
6081
|
+
|
|
6082
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-wUIbQ .quick-access-menu-module-7o1R6 {
|
|
6083
|
+
font-weight: var(--font-weight-bold);
|
|
6084
|
+
}
|
|
6085
|
+
|
|
6086
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-wUIbQ:has(> .quick-access-menu-module-VtAXj) .quick-access-menu-module-7zAki {
|
|
6087
|
+
flex-basis: 100%;
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-wUIbQ .quick-access-menu-module-7zAki + .quick-access-menu-module-VtAXj {
|
|
6091
|
+
flex-basis: 100%;
|
|
6092
|
+
color: var(--color-brand-dark-gray);
|
|
6093
|
+
}
|
|
6094
|
+
|
|
6095
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-IO03P ul {
|
|
6096
|
+
display: flex;
|
|
6097
|
+
flex-direction: column;
|
|
6098
|
+
padding: 0;
|
|
6099
|
+
margin: 0;
|
|
6100
|
+
list-style: none;
|
|
6101
|
+
}
|
|
6102
|
+
|
|
6103
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-IO03P .quick-access-menu-module-Wm-UG {
|
|
6104
|
+
border-block-end: 1px solid var(--color-brand-light-gray);
|
|
6105
|
+
}
|
|
6106
|
+
|
|
6107
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-IO03P .quick-access-menu-module-8Qwjw {
|
|
6108
|
+
display: block;
|
|
6109
|
+
padding: var(--space-8);
|
|
6110
|
+
}
|
|
6111
|
+
|
|
6112
|
+
.quick-access-menu-module-Hr2Dq .quick-access-menu-module-L-W3I {
|
|
6113
|
+
display: flex;
|
|
6114
|
+
flex-direction: column;
|
|
6115
|
+
gap: var(--space-8);
|
|
6116
|
+
margin-block-start: var(--space-24);
|
|
6117
|
+
}
|
|
6118
|
+
|
|
6119
|
+
.connected-account-button-module-d7qyN {
|
|
6120
|
+
z-index: var(--popover-layer) !important;
|
|
6121
|
+
max-height: none !important;
|
|
6122
|
+
outline: 0;
|
|
6123
|
+
transition: opacity var(--transition-duration-short);
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
.connected-account-button-module-d7qyN[data-entering],
|
|
6127
|
+
.connected-account-button-module-d7qyN[data-exiting] {
|
|
6128
|
+
opacity: 0;
|
|
6129
|
+
}
|
|
6130
|
+
|
|
6131
|
+
@media (width < 576px) {.connected-account-button-module-d7qyN {
|
|
6132
|
+
margin: auto;
|
|
6133
|
+
block-size: -moz-fit-content;
|
|
6134
|
+
block-size: fit-content;
|
|
6135
|
+
inline-size: -moz-fit-content;
|
|
6136
|
+
inline-size: fit-content;
|
|
6137
|
+
inset: 0 !important
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
|
|
6037
6141
|
.hamburger-button-module-W6FPI {
|
|
6038
6142
|
--size: 24px;
|
|
6039
6143
|
--duration: var(--transition-duration-short);
|
|
@@ -8121,6 +8225,7 @@ button.swiper-pagination-bullet {
|
|
|
8121
8225
|
|
|
8122
8226
|
grid-template-areas:
|
|
8123
8227
|
'breadcrumb breadcrumb breadcrumb'
|
|
8228
|
+
'pre-aside pre-aside pre-aside'
|
|
8124
8229
|
'. . title'
|
|
8125
8230
|
'aside . main';
|
|
8126
8231
|
grid-template-columns: var(--aside-size) var(--gap) 1fr
|