@donotdev/components 0.3.0 → 0.3.1

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.
@@ -3721,7 +3721,11 @@ em {
3721
3721
 
3722
3722
  /* href: stretched link. The title is the <a href>; its ::after covers the whole
3723
3723
  card so the tile is clickable, while controls inside stay above it. The body
3724
- must not be the containing block, or the hit area would stop at the cover. */
3724
+ must not be the containing block, or the hit area would stop at the cover.
3725
+ The lift list must name every control root and its value: a group whose own
3726
+ opacity (e.g. a disabled QuantityStepper, role="group") makes it a stacking
3727
+ context paints below the overlay, and an <output> value would be covered, so
3728
+ taps there would open the link instead of reaching the control. */
3725
3729
  .dndev-card[data-has-link='true'] > .dndev-card-body {
3726
3730
  position: static;
3727
3731
  }
@@ -3757,6 +3761,9 @@ em {
3757
3761
  textarea,
3758
3762
  label,
3759
3763
  [role='button'],
3764
+ [role='group'],
3765
+ fieldset,
3766
+ output,
3760
3767
  [tabindex]
3761
3768
  ):not(.dndev-card-link) {
3762
3769
  position: relative;
@@ -3802,9 +3809,25 @@ em {
3802
3809
  overflow: hidden;
3803
3810
  z-index: 0;
3804
3811
  width: 100%;
3812
+ }
3813
+
3814
+ /* Opt-in fill behind the media (coverBackground); transparent paints nothing. */
3815
+ .dndev-card-cover[data-background='muted'] {
3805
3816
  background: var(--muted);
3806
3817
  }
3807
3818
 
3819
+ .dndev-card-cover[data-background='primary'] {
3820
+ background: var(--primary);
3821
+ }
3822
+
3823
+ .dndev-card-cover[data-background='secondary'] {
3824
+ background: var(--secondary);
3825
+ }
3826
+
3827
+ .dndev-card-cover[data-background='accent'] {
3828
+ background: var(--accent);
3829
+ }
3830
+
3808
3831
  /* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
3809
3832
  .dndev-card-cover:not([data-has-body='true']) {
3810
3833
  position: absolute;
@@ -3825,14 +3848,12 @@ em {
3825
3848
  object-fit: cover;
3826
3849
  }
3827
3850
 
3828
- /* Contain: whole image visible on the muted cover background (cut-outs), inset
3829
- proportionally so a packshot never touches the frame. */
3851
+ /* Contain: whole image visible at full frame size, no inset (cut-outs;
3852
+ `coverBackground` opts into a fill). */
3830
3853
  .dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
3831
3854
  .dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
3832
3855
  -o-object-fit: contain;
3833
3856
  object-fit: contain;
3834
- box-sizing: border-box;
3835
- padding: 8%;
3836
3857
  }
3837
3858
 
3838
3859
  /* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
@@ -5539,7 +5560,6 @@ em {
5539
5560
  width: 100%;
5540
5561
  overflow: hidden;
5541
5562
  border-radius: var(--radius-surface);
5542
- background-color: var(--muted);
5543
5563
  }
5544
5564
 
5545
5565
  .image-gallery__main--lightbox {
@@ -5693,9 +5713,29 @@ em {
5693
5713
  .image-gallery__thumbnail-image[data-fit='contain'] {
5694
5714
  -o-object-fit: contain;
5695
5715
  object-fit: contain;
5716
+ }
5717
+
5718
+ /* Opt-in fill (background prop); transparent paints nothing. Thumbnails only fill when contained. */
5719
+ .image-gallery__main[data-background='muted'],
5720
+ .image-gallery__thumbnail-image[data-fit='contain'][data-background='muted'] {
5696
5721
  background-color: var(--muted);
5697
5722
  }
5698
5723
 
5724
+ .image-gallery__main[data-background='primary'],
5725
+ .image-gallery__thumbnail-image[data-fit='contain'][data-background='primary'] {
5726
+ background-color: var(--primary);
5727
+ }
5728
+
5729
+ .image-gallery__main[data-background='secondary'],
5730
+ .image-gallery__thumbnail-image[data-fit='contain'][data-background='secondary'] {
5731
+ background-color: var(--secondary);
5732
+ }
5733
+
5734
+ .image-gallery__main[data-background='accent'],
5735
+ .image-gallery__thumbnail-image[data-fit='contain'][data-background='accent'] {
5736
+ background-color: var(--accent);
5737
+ }
5738
+
5699
5739
  /* Responsive adjustments */
5700
5740
  @media (max-width: 640px) {
5701
5741
  .image-gallery__thumbnail {
@@ -8486,7 +8526,6 @@ input[type='number'] {
8486
8526
  touch-action: pan-y pinch-zoom;
8487
8527
  }
8488
8528
 
8489
- .dndev-swipe-action-toggle,
8490
8529
  .dndev-swipe-action-delete {
8491
8530
  display: flex;
8492
8531
  align-items: center;
@@ -8499,12 +8538,6 @@ input[type='number'] {
8499
8538
  touch-action: manipulation;
8500
8539
  }
8501
8540
 
8502
- .dndev-swipe-action-toggle {
8503
- flex-shrink: 0;
8504
- background: var(--background);
8505
- color: var(--foreground);
8506
- }
8507
-
8508
8541
  /* Native overflow clips the closed action and progressively reveals its paint.
8509
8542
  Inert/disabled/ARIA state gates interaction until the open endpoint. */
8510
8543
  .dndev-swipe-action-delete {