@momentum-design/components 0.133.32 → 0.133.33

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.
@@ -3263,6 +3263,9 @@
3263
3263
  display: contents;
3264
3264
  }
3265
3265
 
3266
+ /* AI-Assisted: range fill is rendered via a ::before pseudo aligned to the
3267
+ day-circle (1.75rem) instead of filling the full grid column, so the rounded
3268
+ ends line up with the today/selected circle. */
3266
3269
  .calendar-day-wrapper {
3267
3270
  display: flex;
3268
3271
  align-items: center;
@@ -3271,25 +3274,41 @@
3271
3274
  position: relative;
3272
3275
  }
3273
3276
 
3274
- .calendar-day-wrapper.in-range {
3277
+ .calendar-day-wrapper.in-range::before {
3278
+ content: '';
3279
+ position: absolute;
3280
+ top: 0;
3281
+ bottom: 0;
3282
+ inset-inline-start: 0;
3283
+ inset-inline-end: 0;
3275
3284
  background: var(--mdc-calendar-range-bg);
3276
3285
  border-top: 1px solid var(--mdc-calendar-day-selected-bg);
3277
3286
  border-bottom: 1px solid var(--mdc-calendar-day-selected-bg);
3287
+ z-index: 0;
3288
+ pointer-events: none;
3289
+ }
3290
+
3291
+ .calendar-day-wrapper.in-range > .calendar-day {
3292
+ position: relative;
3293
+ z-index: 1;
3278
3294
  }
3279
3295
 
3280
- .calendar-day-wrapper.range-start,
3281
- .calendar-day-wrapper.in-range:first-child {
3282
- border-start-start-radius: 1.125rem;
3283
- border-end-start-radius: 1.125rem;
3296
+ .calendar-day-wrapper.range-start::before,
3297
+ .calendar-day-wrapper.in-range:first-child::before {
3298
+ inset-inline-start: calc(50% - 0.875rem);
3299
+ border-start-start-radius: 0.875rem;
3300
+ border-end-start-radius: 0.875rem;
3284
3301
  border-inline-start: 1px solid var(--mdc-calendar-day-selected-bg);
3285
3302
  }
3286
3303
 
3287
- .calendar-day-wrapper.range-end,
3288
- .calendar-day-wrapper.in-range:last-child {
3289
- border-start-end-radius: 1.125rem;
3290
- border-end-end-radius: 1.125rem;
3304
+ .calendar-day-wrapper.range-end::before,
3305
+ .calendar-day-wrapper.in-range:last-child::before {
3306
+ inset-inline-end: calc(50% - 0.875rem);
3307
+ border-start-end-radius: 0.875rem;
3308
+ border-end-end-radius: 0.875rem;
3291
3309
  border-inline-end: 1px solid var(--mdc-calendar-day-selected-bg);
3292
3310
  }
3311
+ /* End AI-Assisted */
3293
3312
 
3294
3313
  .calendar-day {
3295
3314
  display: flex;