@maas/vue-equipment 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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.2.0"
4
+ "version": "0.3.0"
5
5
  }
@@ -8,6 +8,7 @@
8
8
  <dialog
9
9
  ref="modal"
10
10
  class="magic-modal"
11
+ :id="toValue(id)"
11
12
  @click.self="close"
12
13
  aria-modal="true"
13
14
  >
@@ -162,9 +163,10 @@ watch(isActive, async (value) => {
162
163
  </script>
163
164
 
164
165
  <style lang="postcss">
165
- * {
166
- transition-duration: 0s;
167
- animation-duration: 0s;
166
+ :root {
167
+ --magic-modal-z-index: 999;
168
+ --magic-modal-backdrop-color: rgba(0, 0, 0, 0.5);
169
+ --magic-modal-backdrop-filter: unset;
168
170
  }
169
171
 
170
172
  .magic-modal {
@@ -175,13 +177,18 @@ watch(isActive, async (value) => {
175
177
  display: flex;
176
178
  justify-content: center;
177
179
  align-items: center;
178
- z-index: 999;
180
+ z-index: var(--magic-modal-z-index);
179
181
  background: transparent;
180
182
  color: inherit;
181
183
  padding: 0;
182
184
  border: none;
183
185
  }
184
186
 
187
+ .magic-modal * {
188
+ transition-duration: 0s;
189
+ animation-duration: 0s;
190
+ }
191
+
185
192
  .magic-modal__content {
186
193
  -webkit-overflow-scrolling: touch;
187
194
  scroll-behavior: smooth;
@@ -201,7 +208,8 @@ watch(isActive, async (value) => {
201
208
  bottom: 0;
202
209
  width: 100%;
203
210
  height: 100%;
204
- background-color: rgba(0, 0, 0, 0.5);
211
+ background-color: var(--magic-modal-backdrop-color);
212
+ backdrop-filter: var(--magic-modal-backdrop-filter);
205
213
  z-index: -1;
206
214
  }
207
215
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "A magic collection of Vue composables, plugins, components and directives",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
6
6
  "devDependencies": {
7
7
  "@antfu/ni": "^0.21.5",