@getflip/swirl-components 0.34.0 → 0.34.2
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 +17 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-card.cjs.entry.js +3 -1
- package/dist/cjs/swirl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +0 -22
- package/dist/collection/components/swirl-button/swirl-button.js +1 -1
- package/dist/collection/components/swirl-card/swirl-card.css +4 -0
- package/dist/collection/components/swirl-card/swirl-card.js +19 -0
- package/dist/collection/components/swirl-carousel/swirl-carousel.css +4 -4
- package/dist/components/assets/pdfjs/pdf.worker.min.js +0 -22
- package/dist/components/swirl-button2.js +1 -1
- package/dist/components/swirl-card.js +4 -1
- package/dist/components/swirl-carousel.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-button.entry.js +1 -1
- package/dist/esm/swirl-card.entry.js +3 -1
- package/dist/esm/swirl-carousel.entry.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/swirl-components/{p-32635b30.entry.js → p-61a52a24.entry.js} +1 -1
- package/dist/swirl-components/p-7405beba.entry.js +1 -0
- package/dist/swirl-components/p-80610550.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-card/swirl-card.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/vscode-data.json +4 -0
- package/dist/swirl-components/p-1cf397ce.entry.js +0 -1
- package/dist/swirl-components/p-ca5fd664.entry.js +0 -1
|
@@ -65,7 +65,7 @@ export class SwirlButton {
|
|
|
65
65
|
"button--pill": this.pill,
|
|
66
66
|
});
|
|
67
67
|
const Tag = isLink ? "a" : "button";
|
|
68
|
-
return (h(Host,
|
|
68
|
+
return (h(Host, { style: { pointerEvents: this.disabled ? "none" : "" } }, h(Tag, { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-label": ariaLabel, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value }, this.icon && (h("span", { class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !hideLabel && h("span", { class: "button__label" }, this.label))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "swirl-button"; }
|
|
71
71
|
static get encapsulation() { return "scoped"; }
|
|
@@ -44,6 +44,10 @@ a.card:focus-visible, button.card:focus-visible, .card--interactive:focus-visibl
|
|
|
44
44
|
outline-offset: var(--s-space-4);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.card--is--borderless {
|
|
48
|
+
border: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
.card--elevated {
|
|
48
52
|
border-color: transparent;
|
|
49
53
|
box-shadow: 0 0.75rem 1rem rgba(25, 26, 28, 0.12),
|
|
@@ -13,6 +13,7 @@ export class SwirlCard {
|
|
|
13
13
|
this.highlighted = undefined;
|
|
14
14
|
this.href = undefined;
|
|
15
15
|
this.imageAspectRatio = undefined;
|
|
16
|
+
this.isBorderless = undefined;
|
|
16
17
|
this.interactive = undefined;
|
|
17
18
|
this.justifyContent = "start";
|
|
18
19
|
this.linkTarget = undefined;
|
|
@@ -32,6 +33,7 @@ export class SwirlCard {
|
|
|
32
33
|
"card--has-image": hasImage,
|
|
33
34
|
"card--highlighted": this.highlighted,
|
|
34
35
|
"card--interactive": this.interactive || this.href,
|
|
36
|
+
"card--is--borderless": this.isBorderless,
|
|
35
37
|
});
|
|
36
38
|
return (h(Host, { styles: { height: this.height } }, h(Tag, { "aria-label": this.swirlAriaLabel, class: className, href: this.href, rel: Boolean(this.href) && this.linkTarget === "_blank"
|
|
37
39
|
? "noreferrer"
|
|
@@ -177,6 +179,23 @@ export class SwirlCard {
|
|
|
177
179
|
"attribute": "image-aspect-ratio",
|
|
178
180
|
"reflect": false
|
|
179
181
|
},
|
|
182
|
+
"isBorderless": {
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "boolean",
|
|
187
|
+
"resolved": "boolean",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": true,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"attribute": "is-borderless",
|
|
197
|
+
"reflect": false
|
|
198
|
+
},
|
|
180
199
|
"interactive": {
|
|
181
200
|
"type": "boolean",
|
|
182
201
|
"mutable": false,
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
z-index: 1;
|
|
74
74
|
top: calc(50% - var(--s-space-12));
|
|
75
75
|
left: var(--s-space-4);
|
|
76
|
-
|
|
76
|
+
visibility: hidden;
|
|
77
77
|
transition: opacity 0.2s;
|
|
78
78
|
transform: translateY(-50%) scale(0.72);
|
|
79
79
|
pointer-events: none;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
@media (min-width: 768px) {
|
|
84
84
|
|
|
85
85
|
.carousel__previous-slide-button {
|
|
86
|
-
|
|
86
|
+
visibility: visible
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
z-index: 1;
|
|
93
93
|
top: calc(50% - var(--s-space-12));
|
|
94
94
|
right: var(--s-space-4);
|
|
95
|
-
|
|
95
|
+
visibility: hidden;
|
|
96
96
|
transition: opacity 0.2s;
|
|
97
97
|
transform: translateY(-50%) scale(0.72);
|
|
98
98
|
pointer-events: none;
|
|
@@ -102,6 +102,6 @@
|
|
|
102
102
|
@media (min-width: 768px) {
|
|
103
103
|
|
|
104
104
|
.carousel__next-slide-button {
|
|
105
|
-
|
|
105
|
+
visibility: visible
|
|
106
106
|
}
|
|
107
107
|
}
|