@maas/vue-equipment 0.9.2 → 0.9.4

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.9.1"
4
+ "version": "0.9.3"
5
5
  }
@@ -9,6 +9,7 @@
9
9
  ref="modal"
10
10
  class="magic-modal"
11
11
  :id="toValue(id)"
12
+ :class="toValue(props.class)"
12
13
  @click.self="close"
13
14
  aria-modal="true"
14
15
  >
@@ -78,6 +79,7 @@ const customDefu = createDefu((obj, key, value) => {
78
79
 
79
80
  interface MagicModalProps {
80
81
  id: MaybeRef<string>
82
+ class?: MaybeRef<string>
81
83
  component?: Component
82
84
  props?: Record<string, unknown>
83
85
  options?: Options
@@ -161,6 +163,7 @@ watch(isActive, async (value) => {
161
163
  --magic-modal-backdrop-filter: unset;
162
164
  --magic-modal-content-align-items: center;
163
165
  --magic-modal-content-justify-content: center;
166
+ --magic-modal-content-overflow-y: auto;
164
167
  }
165
168
 
166
169
  .magic-modal {
@@ -186,7 +189,7 @@ watch(isActive, async (value) => {
186
189
  display: flex;
187
190
  align-items: var(--magic-modal-content-align-items);
188
191
  justify-content: var(--magic-modal-content-justify-content);
189
- overflow-y: auto;
192
+ overflow-y: var(--magic-modal-content-overflow-y);
190
193
  }
191
194
 
192
195
  .magic-modal__backdrop {
@@ -4,6 +4,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  props: {
5
5
  type: import("vue").PropType<Record<string, unknown>>;
6
6
  };
7
+ class: {
8
+ type: import("vue").PropType<MaybeRef<string>>;
9
+ };
7
10
  id: {
8
11
  type: import("vue").PropType<MaybeRef<string>>;
9
12
  required: true;
@@ -19,6 +22,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
19
22
  props: {
20
23
  type: import("vue").PropType<Record<string, unknown>>;
21
24
  };
25
+ class: {
26
+ type: import("vue").PropType<MaybeRef<string>>;
27
+ };
22
28
  id: {
23
29
  type: import("vue").PropType<MaybeRef<string>>;
24
30
  required: true;
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.9.2",
4
+ "version": "0.9.4",
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",