@getflip/swirl-components 0.177.1 → 0.178.0

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.
@@ -46,6 +46,7 @@ export class SwirlDialog {
46
46
  */
47
47
  async open() {
48
48
  this.dialog.show();
49
+ this.dialogOpen.emit();
49
50
  }
50
51
  /**
51
52
  * Close the dialog.
@@ -57,6 +58,7 @@ export class SwirlDialog {
57
58
  this.closing = true;
58
59
  setTimeout(() => {
59
60
  this.dialog.hide();
61
+ this.dialogClose.emit();
60
62
  this.closing = false;
61
63
  }, 150);
62
64
  }
@@ -178,6 +180,36 @@ export class SwirlDialog {
178
180
  }
179
181
  static get events() {
180
182
  return [{
183
+ "method": "dialogClose",
184
+ "name": "dialogClose",
185
+ "bubbles": true,
186
+ "cancelable": true,
187
+ "composed": true,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": ""
191
+ },
192
+ "complexType": {
193
+ "original": "void",
194
+ "resolved": "void",
195
+ "references": {}
196
+ }
197
+ }, {
198
+ "method": "dialogOpen",
199
+ "name": "dialogOpen",
200
+ "bubbles": true,
201
+ "cancelable": true,
202
+ "composed": true,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": ""
206
+ },
207
+ "complexType": {
208
+ "original": "void",
209
+ "resolved": "void",
210
+ "references": {}
211
+ }
212
+ }, {
181
213
  "method": "primaryAction",
182
214
  "name": "primaryAction",
183
215
  "bubbles": true,
@@ -22,6 +22,7 @@
22
22
  --swirl-modal-height: auto;
23
23
  --swirl-modal-max-height: 90vh;
24
24
  --swirl-modal-view-height: 100vh;
25
+ --swirl-modal-max-width: 40rem;
25
26
  }
26
27
 
27
28
  @supports (height: 100dvh) {
@@ -285,7 +286,6 @@
285
286
  display: flex;
286
287
  overflow: hidden;
287
288
  width: 100vw;
288
- max-width: 40rem;
289
289
  height: var(--swirl-modal-view-height);
290
290
  background-color: var(--s-surface-overlay-default);
291
291
  flex-direction: column;
@@ -295,6 +295,7 @@
295
295
 
296
296
  .modal__body {
297
297
  width: 90vw;
298
+ max-width: var(--swirl-modal-max-width);
298
299
  max-height: var(--swirl-modal-max-height);
299
300
  border-radius: var(--s-border-radius-base);
300
301
  box-shadow: var(--s-shadow-level-3)