@sc-360-v2/storefront-cms-library 0.5.74 → 0.5.75

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.
@@ -187,9 +187,9 @@
187
187
  &[data-label-position="inside"] .option__families__tile {
188
188
  border-radius: 50%;
189
189
  }
190
- &[data-label-position="below"] .option__families__tile {
191
- border-radius: 9999px;
192
- }
190
+ // &[data-label-position="below"] .option__families__tile {
191
+ // border-radius: 9999px;
192
+ // }
193
193
  }
194
194
 
195
195
  &[data-swatch-shadow="false"] .option__families__swatch {
@@ -3164,13 +3164,59 @@
3164
3164
  .modalV2-wrapper {
3165
3165
  width: calc(100% - 32px);
3166
3166
  max-width: 440px;
3167
+ overflow: visible !important;
3168
+ background: transparent;
3169
+ box-shadow: none;
3170
+ }
3171
+
3172
+ .modal-body {
3173
+ overflow: visible;
3167
3174
  }
3168
3175
 
3169
3176
  .product-share {
3170
3177
  display: flex;
3171
3178
  flex-direction: column;
3172
- gap: 16px;
3173
- padding: 16px;
3179
+ gap: 20px;
3180
+ padding: 24px;
3181
+ background-color: #ffffff;
3182
+ border-radius: 16px;
3183
+ box-shadow: 0px 16px 0px rgba(16, 24, 40, 0.18);
3184
+ }
3185
+
3186
+ .product-share__header {
3187
+ display: flex;
3188
+ align-items: center;
3189
+ justify-content: space-between;
3190
+ gap: 12px;
3191
+ }
3192
+
3193
+ .product-share__title {
3194
+ color: #111820;
3195
+ font-family: inherit;
3196
+ font-size: 20px;
3197
+ font-weight: 700;
3198
+ font-style: normal;
3199
+ text-transform: none;
3200
+ letter-spacing: normal;
3201
+ line-height: normal;
3202
+ text-decoration: none;
3203
+ }
3204
+
3205
+ .product-share__close {
3206
+ display: flex;
3207
+ flex: 0 0 40px;
3208
+ align-items: center;
3209
+ justify-content: center;
3210
+ height: 40px;
3211
+ border: 0;
3212
+ border-radius: 50%;
3213
+ background: #f5f5f5;
3214
+ color: #111820;
3215
+ cursor: pointer;
3216
+
3217
+ &:hover {
3218
+ background: #e5e5e5;
3219
+ }
3174
3220
  }
3175
3221
 
3176
3222
  .product-share__link {
@@ -3179,7 +3225,7 @@
3179
3225
  overflow: hidden;
3180
3226
  border: 1px solid #d0d5dd;
3181
3227
  border-radius: 999px;
3182
- background: #f9fafb;
3228
+ background: #f5f5f5;
3183
3229
 
3184
3230
  &:focus-within {
3185
3231
  border-color: #667085;
@@ -3189,30 +3235,37 @@
3189
3235
  .product-share__url {
3190
3236
  flex: 1 1 auto;
3191
3237
  min-width: 0;
3192
- padding: 10px 16px;
3238
+ padding: 12px 20px;
3193
3239
  border: 0;
3194
3240
  outline: none;
3195
3241
  background: transparent;
3196
- color: #101828;
3197
- font-size: 14px;
3242
+ color: #111820;
3243
+ font-size: 16px;
3244
+ text-align: center;
3198
3245
  text-overflow: ellipsis;
3199
3246
  }
3200
3247
 
3201
3248
  .product-share__copy {
3202
3249
  display: flex;
3203
- flex: 0 0 48px;
3250
+ flex: 0 0 56px;
3204
3251
  align-items: center;
3205
3252
  justify-content: center;
3206
3253
  border: 0;
3207
3254
  border-left: 1px solid #d0d5dd;
3208
3255
  background: transparent;
3256
+ color: #111820;
3209
3257
  cursor: pointer;
3210
3258
 
3211
3259
  &:hover {
3212
- background: #f2f4f7;
3260
+ background: #ebebeb;
3213
3261
  }
3214
3262
  }
3215
3263
 
3264
+ .product-share__copy svg path,
3265
+ .product-share__close svg path {
3266
+ stroke: currentColor;
3267
+ }
3268
+
3216
3269
  .product-share__channels {
3217
3270
  display: grid;
3218
3271
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -3222,33 +3275,74 @@
3222
3275
  .product-share__channel {
3223
3276
  display: flex;
3224
3277
  align-items: center;
3225
- gap: 10px;
3226
- padding: 10px 16px;
3278
+ gap: 12px;
3279
+ min-height: 52px;
3280
+ padding: 12px 20px;
3227
3281
  border: 0;
3282
+ background-color: #f5f5f5;
3228
3283
  border-radius: 999px;
3229
- background: #f2f4f7;
3230
- color: #101828;
3231
- font-size: 14px;
3232
- font-weight: 500;
3233
3284
  text-align: left;
3234
3285
  cursor: pointer;
3235
-
3286
+ color: #111820;
3287
+ font-family: inherit;
3288
+ font-size: 16px;
3289
+ font-weight: 400;
3290
+ font-style: normal;
3291
+ text-transform: none;
3292
+ letter-spacing: normal;
3293
+ line-height: normal;
3294
+ text-decoration: none;
3295
+ transition:
3296
+ background 0.2s ease,
3297
+ color 0.2s ease;
3298
+
3299
+ // On hover each option takes its network's brand colour; the icon follows the
3300
+ // white text through currentColor.
3236
3301
  &:hover {
3237
- background: #e4e7ec;
3302
+ color: #ffffff;
3303
+ background: var(--_share-brand);
3304
+ }
3305
+
3306
+ &[data-channel="messenger"] {
3307
+ --_share-brand: linear-gradient(90deg, #0a7cff 0%, #a033ff 55%, #ff6b5b 100%);
3308
+ }
3309
+ &[data-channel="pinterest"] {
3310
+ --_share-brand: #e60023;
3311
+ }
3312
+ &[data-channel="facebook"] {
3313
+ --_share-brand: #0866ff;
3314
+ }
3315
+ &[data-channel="reddit"] {
3316
+ --_share-brand: #d93a00;
3317
+ }
3318
+ &[data-channel="x"] {
3319
+ --_share-brand: #333333;
3320
+ }
3321
+ &[data-channel="whatsapp"] {
3322
+ --_share-brand: #008a09;
3323
+ }
3324
+ &[data-channel="linkedin"] {
3325
+ --_share-brand: #0077b5;
3326
+ }
3327
+ &[data-channel="email"] {
3328
+ --_share-brand: #0b4a6f;
3238
3329
  }
3239
3330
  }
3240
3331
 
3332
+ .product-share__close,
3241
3333
  .product-share__copy,
3242
3334
  .product-share__channel {
3243
3335
  &:focus-visible {
3244
- outline: 2px solid #101828;
3336
+ outline: 2px solid #111820;
3245
3337
  outline-offset: 2px;
3246
3338
  }
3247
3339
  }
3248
3340
 
3341
+ // Icons draw in currentColor, so they follow the option's text colour.
3249
3342
  .product-share__icon {
3250
3343
  display: flex;
3251
3344
  flex: 0 0 auto;
3345
+ color: inherit;
3252
3346
 
3253
3347
  svg {
3254
3348
  width: 20px;
@@ -17,6 +17,7 @@ export interface ButtonLayoutInterface {
17
17
  addToQuote: CMSIBCommonInterface;
18
18
  addToOrderTemplate: CMSIBCommonInterface;
19
19
  viewDetails: CMSIBCommonInterface;
20
+ share: CMSIBCommonInterface;
20
21
  notifyMe: CMSIBCommonInterface;
21
22
  download: CMSIBCommonInterface;
22
23
  displayStyle: CMSIBCommonInterface;
@@ -43,6 +44,7 @@ export interface selfDesignInterface {
43
44
  addToQuote: any;
44
45
  addToOrderTemplate: any;
45
46
  viewDetails: any;
47
+ share: any;
46
48
  notifyMe: any;
47
49
  download: any;
48
50
  hoverState: any;
@@ -62,6 +64,7 @@ export declare enum ButtonSelectorKeysEnum {
62
64
  ADD_TO_QUOTE = "addToQuote",
63
65
  ADD_TO_ORDER_TEMPLATE = "addToOrderTemplate",
64
66
  VIEW_DETAILS = "viewDetails",
67
+ SHARE = "share",
65
68
  NOTIFY_ME = "notifyMe",
66
69
  DOWNLOAD = "download",
67
70
  MORE = "more",