@getmicdrop/svelte-components 2.8.0 → 2.8.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.
@@ -7,7 +7,7 @@
7
7
  export let show = false;
8
8
  export let isProcessing = false;
9
9
  export let isSuccess = false;
10
- export let size = "default"; // "default" | "small" | "large"
10
+ export let size = "default"; // "default" | "small" | "large" | "xlarge"
11
11
  export let persistent = false; // When true, prevents closing by clicking backdrop or pressing Escape
12
12
 
13
13
  const dispatch = createEventDispatcher();
@@ -86,6 +86,7 @@
86
86
  class="modal-sheet"
87
87
  class:small={sizeClass === "small"}
88
88
  class:large={sizeClass === "large"}
89
+ class:xlarge={sizeClass === "xlarge"}
89
90
  on:click|stopPropagation
90
91
  transition:fly={{ y: 300, duration: 300, easing: cubicOut }}
91
92
  >
@@ -110,6 +111,7 @@
110
111
  class="modal-centered"
111
112
  class:small={sizeClass === "small"}
112
113
  class:large={sizeClass === "large"}
114
+ class:xlarge={sizeClass === "xlarge"}
113
115
  on:click|stopPropagation
114
116
  transition:fly={{ y: 20, duration: 200 }}
115
117
  >
@@ -238,6 +240,10 @@
238
240
  max-width: 560px;
239
241
  }
240
242
 
243
+ .modal-centered.xlarge {
244
+ max-width: 700px;
245
+ }
246
+
241
247
  .modal-footer {
242
248
  width: 100%;
243
249
  display: flex;