@getflip/swirl-components 0.138.0 → 0.139.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.
@@ -14,9 +14,12 @@ export class SwirlBox {
14
14
  this.centerBlock = undefined;
15
15
  this.centerInline = undefined;
16
16
  this.cover = undefined;
17
+ this.height = undefined;
17
18
  this.left = undefined;
18
19
  this.maxHeight = undefined;
20
+ this.minHeight = undefined;
19
21
  this.maxWidth = undefined;
22
+ this.minWidth = undefined;
20
23
  this.overflow = "visible";
21
24
  this.padding = "0";
22
25
  this.paddingBlockEnd = undefined;
@@ -25,7 +28,9 @@ export class SwirlBox {
25
28
  this.paddingInlineStart = undefined;
26
29
  this.position = undefined;
27
30
  this.right = undefined;
31
+ this.shrink = undefined;
28
32
  this.top = undefined;
33
+ this.width = undefined;
29
34
  this.zIndex = undefined;
30
35
  }
31
36
  render() {
@@ -33,11 +38,14 @@ export class SwirlBox {
33
38
  alignItems: this.centerBlock ? "center" : undefined,
34
39
  bottom: this.bottom,
35
40
  display: this.centerBlock || this.centerInline ? "flex" : undefined,
36
- height: this.cover ? "100%" : undefined,
41
+ flexShrink: this.shrink,
42
+ height: this.cover ? "100%" : this.height,
37
43
  justifyContent: this.centerInline ? "center" : undefined,
38
44
  left: this.left,
39
45
  maxHeight: this.maxHeight,
46
+ minHeight: this.minHeight,
40
47
  maxWidth: this.maxWidth,
48
+ minWidth: this.minWidth,
41
49
  overflow: this.overflow,
42
50
  padding: `var(--s-space-${this.padding})`,
43
51
  paddingBlockEnd: Boolean(this.paddingBlockEnd)
@@ -57,7 +65,7 @@ export class SwirlBox {
57
65
  : this.position,
58
66
  right: this.right,
59
67
  top: this.top,
60
- width: this.cover ? "100%" : undefined,
68
+ width: this.cover ? "100%" : this.width,
61
69
  zIndex: this.zIndex,
62
70
  };
63
71
  const className = classnames("box", {
@@ -237,6 +245,23 @@ export class SwirlBox {
237
245
  "attribute": "cover",
238
246
  "reflect": false
239
247
  },
248
+ "height": {
249
+ "type": "string",
250
+ "mutable": false,
251
+ "complexType": {
252
+ "original": "string",
253
+ "resolved": "string",
254
+ "references": {}
255
+ },
256
+ "required": false,
257
+ "optional": true,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": ""
261
+ },
262
+ "attribute": "height",
263
+ "reflect": false
264
+ },
240
265
  "left": {
241
266
  "type": "string",
242
267
  "mutable": false,
@@ -271,6 +296,23 @@ export class SwirlBox {
271
296
  "attribute": "max-height",
272
297
  "reflect": false
273
298
  },
299
+ "minHeight": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "string",
304
+ "resolved": "string",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": true,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": ""
312
+ },
313
+ "attribute": "min-height",
314
+ "reflect": false
315
+ },
274
316
  "maxWidth": {
275
317
  "type": "string",
276
318
  "mutable": false,
@@ -288,6 +330,23 @@ export class SwirlBox {
288
330
  "attribute": "max-width",
289
331
  "reflect": false
290
332
  },
333
+ "minWidth": {
334
+ "type": "string",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "string",
338
+ "resolved": "string",
339
+ "references": {}
340
+ },
341
+ "required": false,
342
+ "optional": true,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": ""
346
+ },
347
+ "attribute": "min-width",
348
+ "reflect": false
349
+ },
291
350
  "overflow": {
292
351
  "type": "string",
293
352
  "mutable": false,
@@ -461,6 +520,23 @@ export class SwirlBox {
461
520
  "attribute": "right",
462
521
  "reflect": false
463
522
  },
523
+ "shrink": {
524
+ "type": "string",
525
+ "mutable": false,
526
+ "complexType": {
527
+ "original": "string",
528
+ "resolved": "string",
529
+ "references": {}
530
+ },
531
+ "required": false,
532
+ "optional": true,
533
+ "docs": {
534
+ "tags": [],
535
+ "text": ""
536
+ },
537
+ "attribute": "shrink",
538
+ "reflect": false
539
+ },
464
540
  "top": {
465
541
  "type": "string",
466
542
  "mutable": false,
@@ -478,6 +554,23 @@ export class SwirlBox {
478
554
  "attribute": "top",
479
555
  "reflect": false
480
556
  },
557
+ "width": {
558
+ "type": "string",
559
+ "mutable": false,
560
+ "complexType": {
561
+ "original": "string",
562
+ "resolved": "string",
563
+ "references": {}
564
+ },
565
+ "required": false,
566
+ "optional": true,
567
+ "docs": {
568
+ "tags": [],
569
+ "text": ""
570
+ },
571
+ "attribute": "width",
572
+ "reflect": false
573
+ },
481
574
  "zIndex": {
482
575
  "type": "string",
483
576
  "mutable": false,
@@ -24,7 +24,4 @@ const Template = (args) => {
24
24
  return element;
25
25
  };
26
26
  export const SwirlBox = Template.bind({});
27
- SwirlBox.args = {
28
- cover: true,
29
- padding: "16",
30
- };
27
+ SwirlBox.args = {};
@@ -4,7 +4,6 @@ export class SwirlImageGridItem {
4
4
  constructor() {
5
5
  this.onLoad = () => {
6
6
  this.loaded = true;
7
- console.log(this.loaded);
8
7
  };
9
8
  this.alt = undefined;
10
9
  this.icon = undefined;