@vandeurenglenn/custom-shared-styles 0.0.21 → 0.0.23

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.
@@ -17,7 +17,8 @@ export default css`
17
17
  width: 100%;
18
18
  box-shadow: var(--custom-pane-box-shadow, 0px 0px 10px 0px rgba(0, 0, 0, 0.5));
19
19
  max-width: var(--custom-pane-width, 100%);
20
- transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
20
+ transition:
21
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
21
22
  var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
22
23
  }
23
24
 
@@ -33,6 +34,18 @@ export default css`
33
34
  z-index: 1001;
34
35
  }
35
36
 
37
+ :host([bottom]) {
38
+ border-radius: var(--md-sys-shape-corner-large-top);
39
+ transform: translateY(100%);
40
+ z-index: 1003;
41
+ }
42
+
43
+ :host([top]) {
44
+ border-radius: var(--md-sys-shape-corner-large-bottom);
45
+ transform: translateY(100%);
46
+ z-index: 1004;
47
+ }
48
+
36
49
  :host([mobile]) {
37
50
  inset: 0;
38
51
  position: fixed;
@@ -44,13 +57,23 @@ export default css`
44
57
  }
45
58
 
46
59
  :host([open]) {
47
- transform: translateX(0);
48
60
  opacity: 1;
49
61
  pointer-events: auto;
50
- transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
62
+ transition:
63
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
51
64
  var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
52
65
  }
53
66
 
67
+ :host([open][left]),
68
+ :host([open][right]) {
69
+ transform: translateX(0);
70
+ }
71
+
72
+ :host([open][bottom]),
73
+ :host([open][top]) {
74
+ transform: translateY(0);
75
+ }
76
+
54
77
  :host([open]) {
55
78
  position: relative;
56
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/custom-shared-styles",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {