@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.
- package/components.json +19 -1
- package/dist/cjs/swirl-dialog.cjs.entry.js +4 -0
- package/dist/cjs/swirl-modal.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-dialog/swirl-dialog.js +32 -0
- package/dist/collection/components/swirl-modal/swirl-modal.css +2 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-dialog.js +4 -0
- package/dist/components/swirl-modal.js +1 -1
- package/dist/esm/swirl-dialog.entry.js +4 -0
- package/dist/esm/swirl-modal.entry.js +1 -1
- package/dist/swirl-components/p-60a8ff07.entry.js +1 -0
- package/dist/swirl-components/p-7f274117.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-dialog/swirl-dialog.d.ts +2 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-8c722527.entry.js +0 -1
- package/dist/swirl-components/p-cb5c2c40.entry.js +0 -1
|
@@ -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)
|