dalila 1.10.1 → 1.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dalila",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "DOM-first reactive framework based on signals",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,11 @@
13
13
  transition:
14
14
  width var(--d-duration-slow) var(--d-ease),
15
15
  max-width var(--d-duration-slow) var(--d-ease),
16
- padding var(--d-duration) var(--d-ease);
16
+ padding var(--d-duration) var(--d-ease),
17
+ transform var(--d-duration-slow) var(--d-ease),
18
+ opacity var(--d-duration) var(--d-ease),
19
+ visibility var(--d-duration) var(--d-ease),
20
+ box-shadow var(--d-duration) var(--d-ease);
17
21
  }
18
22
 
19
23
  .d-side-bar-shell {
@@ -100,6 +104,24 @@
100
104
  display: none;
101
105
  }
102
106
 
107
+ .d-side-bar-backdrop {
108
+ position: fixed;
109
+ inset: 0;
110
+ display: block;
111
+ padding: 0;
112
+ border: 0;
113
+ background: var(--d-surface-overlay);
114
+ opacity: 0;
115
+ pointer-events: none;
116
+ transition: opacity var(--d-duration) var(--d-ease);
117
+ z-index: calc(var(--d-z-overlay) - 1);
118
+ }
119
+
120
+ .d-side-bar-backdrop.visible {
121
+ opacity: 1;
122
+ pointer-events: auto;
123
+ }
124
+
103
125
  .d-side-bar-inner {
104
126
  display: flex;
105
127
  flex-direction: column;
@@ -412,3 +434,37 @@
412
434
  background: linear-gradient(145deg, var(--d-primary-500), var(--d-accent-500));
413
435
  color: #fff;
414
436
  }
437
+
438
+ @media (max-width: 840px) {
439
+ .d-side-bar-mobile-shell {
440
+ display: block;
441
+ width: 100%;
442
+ }
443
+
444
+ .d-side-bar-mobile-shell .d-side-bar {
445
+ position: fixed;
446
+ inset: var(--d-space-4) auto var(--d-space-4) var(--d-space-4);
447
+ width: min(20rem, calc(100vw - (var(--d-space-4) * 2)));
448
+ max-width: calc(100vw - (var(--d-space-4) * 2));
449
+ min-height: auto;
450
+ max-height: calc(100dvh - (var(--d-space-4) * 2));
451
+ overflow-y: auto;
452
+ box-shadow: var(--d-shadow-lg);
453
+ transform: translateX(calc(-100% - var(--d-space-4)));
454
+ opacity: 0;
455
+ visibility: hidden;
456
+ pointer-events: none;
457
+ z-index: var(--d-z-overlay);
458
+ }
459
+
460
+ .d-side-bar-mobile-shell .d-side-bar.mobile-open {
461
+ transform: translateX(0);
462
+ opacity: 1;
463
+ visibility: visible;
464
+ pointer-events: auto;
465
+ }
466
+
467
+ .d-side-bar-mobile-shell .d-side-bar-rail {
468
+ display: none;
469
+ }
470
+ }