@donotdev/ui 0.1.42 → 0.1.43

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.
@@ -3392,12 +3392,27 @@ em {
3392
3392
  -o-object-fit: cover;
3393
3393
  object-fit: cover;
3394
3394
  }
3395
- /* Overlay — sits above both cover and body slot. */
3395
+ /* Full-card overlay — covers entire card surface, participates in card transform.
3396
+ Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
3397
+ .dndev-card[data-has-full-overlay='true'] {
3398
+ overflow: hidden;
3399
+ }
3400
+ .dndev-card-full-overlay {
3401
+ position: absolute;
3402
+ inset: 0;
3403
+ z-index: 3;
3404
+ pointer-events: none;
3405
+ }
3406
+ /* Corner overlay — sits above both cover and body slot. */
3396
3407
  .dndev-card-overlay {
3397
3408
  position: absolute;
3398
3409
  z-index: 2;
3399
3410
  pointer-events: none;
3400
3411
  }
3412
+ /* When a full-overlay scrim is present, raise the corner overlay above it. */
3413
+ .dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
3414
+ z-index: 4;
3415
+ }
3401
3416
  .dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
3402
3417
  top: var(--gap-md);
3403
3418
  inset-inline-start: var(--gap-md);
package/dist/dndev.css CHANGED
@@ -4097,7 +4097,21 @@ em {
4097
4097
  object-fit: cover;
4098
4098
  }
4099
4099
 
4100
- /* Overlay — sits above both cover and body slot. */
4100
+ /* Full-card overlay — covers entire card surface, participates in card transform.
4101
+ Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
4102
+
4103
+ .dndev-card[data-has-full-overlay='true'] {
4104
+ overflow: hidden;
4105
+ }
4106
+
4107
+ .dndev-card-full-overlay {
4108
+ position: absolute;
4109
+ inset: 0;
4110
+ z-index: 3;
4111
+ pointer-events: none;
4112
+ }
4113
+
4114
+ /* Corner overlay — sits above both cover and body slot. */
4101
4115
 
4102
4116
  .dndev-card-overlay {
4103
4117
  position: absolute;
@@ -4105,6 +4119,12 @@ em {
4105
4119
  pointer-events: none;
4106
4120
  }
4107
4121
 
4122
+ /* When a full-overlay scrim is present, raise the corner overlay above it. */
4123
+
4124
+ .dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
4125
+ z-index: 4;
4126
+ }
4127
+
4108
4128
  .dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
4109
4129
  top: var(--gap-md);
4110
4130
  inset-inline-start: var(--gap-md);
@@ -4093,7 +4093,21 @@ em {
4093
4093
  object-fit: cover;
4094
4094
  }
4095
4095
 
4096
- /* Overlay — sits above both cover and body slot. */
4096
+ /* Full-card overlay — covers entire card surface, participates in card transform.
4097
+ Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
4098
+
4099
+ .dndev-card[data-has-full-overlay='true'] {
4100
+ overflow: hidden;
4101
+ }
4102
+
4103
+ .dndev-card-full-overlay {
4104
+ position: absolute;
4105
+ inset: 0;
4106
+ z-index: 3;
4107
+ pointer-events: none;
4108
+ }
4109
+
4110
+ /* Corner overlay — sits above both cover and body slot. */
4097
4111
 
4098
4112
  .dndev-card-overlay {
4099
4113
  position: absolute;
@@ -4101,6 +4115,12 @@ em {
4101
4115
  pointer-events: none;
4102
4116
  }
4103
4117
 
4118
+ /* When a full-overlay scrim is present, raise the corner overlay above it. */
4119
+
4120
+ .dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
4121
+ z-index: 4;
4122
+ }
4123
+
4104
4124
  .dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
4105
4125
  top: var(--gap-md);
4106
4126
  inset-inline-start: var(--gap-md);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/ui",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",