@getflip/swirl-components 0.118.5 → 0.119.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.
@@ -10,9 +10,11 @@ export class SwirlBox {
10
10
  this.borderedBlockStart = undefined;
11
11
  this.borderedInlineEnd = undefined;
12
12
  this.borderedInlineStart = undefined;
13
+ this.bottom = undefined;
13
14
  this.centerBlock = undefined;
14
15
  this.centerInline = undefined;
15
16
  this.cover = undefined;
17
+ this.left = undefined;
16
18
  this.maxWidth = undefined;
17
19
  this.overflow = "visible";
18
20
  this.padding = "0";
@@ -20,13 +22,19 @@ export class SwirlBox {
20
22
  this.paddingBlockStart = undefined;
21
23
  this.paddingInlineEnd = undefined;
22
24
  this.paddingInlineStart = undefined;
25
+ this.position = undefined;
26
+ this.right = undefined;
27
+ this.top = undefined;
28
+ this.zIndex = undefined;
23
29
  }
24
30
  render() {
25
31
  const styles = {
26
32
  alignItems: this.centerBlock ? "center" : undefined,
33
+ bottom: this.bottom,
27
34
  display: this.centerBlock || this.centerInline ? "flex" : undefined,
28
35
  height: this.cover ? "100%" : undefined,
29
36
  justifyContent: this.centerInline ? "center" : undefined,
37
+ left: this.left,
30
38
  overflow: this.overflow,
31
39
  padding: `var(--s-space-${this.padding})`,
32
40
  paddingBlockEnd: Boolean(this.paddingBlockEnd)
@@ -41,9 +49,14 @@ export class SwirlBox {
41
49
  paddingInlineStart: Boolean(this.paddingInlineStart)
42
50
  ? `var(--s-space-${this.paddingInlineStart})`
43
51
  : undefined,
44
- position: Boolean(this.overflow) ? "relative" : "",
52
+ position: Boolean(this.overflow)
53
+ ? this.position || "relative"
54
+ : this.position,
45
55
  maxWidth: this.maxWidth,
56
+ right: this.right,
57
+ top: this.top,
46
58
  width: this.cover ? "100%" : undefined,
59
+ zIndex: this.zIndex,
47
60
  };
48
61
  const className = classnames("box", {
49
62
  "box--bordered": this.bordered,
@@ -154,6 +167,23 @@ export class SwirlBox {
154
167
  "attribute": "bordered-inline-start",
155
168
  "reflect": false
156
169
  },
170
+ "bottom": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": true,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": ""
183
+ },
184
+ "attribute": "bottom",
185
+ "reflect": false
186
+ },
157
187
  "centerBlock": {
158
188
  "type": "boolean",
159
189
  "mutable": false,
@@ -205,6 +235,23 @@ export class SwirlBox {
205
235
  "attribute": "cover",
206
236
  "reflect": false
207
237
  },
238
+ "left": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": true,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": ""
251
+ },
252
+ "attribute": "left",
253
+ "reflect": false
254
+ },
208
255
  "maxWidth": {
209
256
  "type": "string",
210
257
  "mutable": false,
@@ -355,6 +402,79 @@ export class SwirlBox {
355
402
  },
356
403
  "attribute": "padding-inline-start",
357
404
  "reflect": false
405
+ },
406
+ "position": {
407
+ "type": "string",
408
+ "mutable": false,
409
+ "complexType": {
410
+ "original": "SwirlBoxPosition",
411
+ "resolved": "\"absolute\" | \"fixed\" | \"relative\" | \"static\" | \"sticky\"",
412
+ "references": {
413
+ "SwirlBoxPosition": {
414
+ "location": "local",
415
+ "path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-box/swirl-box.tsx"
416
+ }
417
+ }
418
+ },
419
+ "required": false,
420
+ "optional": true,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": ""
424
+ },
425
+ "attribute": "position",
426
+ "reflect": false
427
+ },
428
+ "right": {
429
+ "type": "string",
430
+ "mutable": false,
431
+ "complexType": {
432
+ "original": "string",
433
+ "resolved": "string",
434
+ "references": {}
435
+ },
436
+ "required": false,
437
+ "optional": true,
438
+ "docs": {
439
+ "tags": [],
440
+ "text": ""
441
+ },
442
+ "attribute": "right",
443
+ "reflect": false
444
+ },
445
+ "top": {
446
+ "type": "string",
447
+ "mutable": false,
448
+ "complexType": {
449
+ "original": "string",
450
+ "resolved": "string",
451
+ "references": {}
452
+ },
453
+ "required": false,
454
+ "optional": true,
455
+ "docs": {
456
+ "tags": [],
457
+ "text": ""
458
+ },
459
+ "attribute": "top",
460
+ "reflect": false
461
+ },
462
+ "zIndex": {
463
+ "type": "string",
464
+ "mutable": false,
465
+ "complexType": {
466
+ "original": "string",
467
+ "resolved": "string",
468
+ "references": {}
469
+ },
470
+ "required": false,
471
+ "optional": true,
472
+ "docs": {
473
+ "tags": [],
474
+ "text": ""
475
+ },
476
+ "attribute": "z-index",
477
+ "reflect": false
358
478
  }
359
479
  };
360
480
  }
@@ -225,14 +225,14 @@ export class SwirlPopover {
225
225
  }
226
226
  lockBodyScroll() {
227
227
  const mobile = isMobileViewport();
228
- if (!mobile || this.disableScrollLock) {
228
+ if (!mobile || this.disableScrollLock || !Boolean(this.scrollContainer)) {
229
229
  return;
230
230
  }
231
231
  disableBodyScroll(this.scrollContainer);
232
232
  }
233
233
  unlockBodyScroll() {
234
234
  const mobile = isMobileViewport();
235
- if (!mobile || this.disableScrollLock) {
235
+ if (!mobile || this.disableScrollLock || !Boolean(this.scrollContainer)) {
236
236
  return;
237
237
  }
238
238
  enableBodyScroll(this.scrollContainer);