@getflip/swirl-components 0.136.0 → 0.137.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 +17 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +4 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-popover/swirl-popover.css +15 -0
- package/dist/collection/components/swirl-popover/swirl-popover.js +20 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-popover2.js +5 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-popover_2.entry.js +4 -2
- package/dist/swirl-components/p-77dfa273.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-popover/swirl-popover.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-69b074a7.entry.js +0 -1
|
@@ -130,6 +130,21 @@
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
@media (min-width: 768px) {
|
|
134
|
+
|
|
135
|
+
.popover--transparent .popover__content {
|
|
136
|
+
background-color: transparent;
|
|
137
|
+
box-shadow: none
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (min-width: 768px) {
|
|
142
|
+
|
|
143
|
+
.popover--transparent .popover__scroll-container {
|
|
144
|
+
padding: 0
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
133
148
|
.popover__backdrop {
|
|
134
149
|
position: fixed;
|
|
135
150
|
z-index: 0;
|
|
@@ -57,6 +57,7 @@ export class SwirlPopover {
|
|
|
57
57
|
this.popoverId = undefined;
|
|
58
58
|
this.placement = "bottom-start";
|
|
59
59
|
this.returnFocusToTrigger = true;
|
|
60
|
+
this.transparent = undefined;
|
|
60
61
|
this.trigger = undefined;
|
|
61
62
|
this.triggerContainer = undefined;
|
|
62
63
|
this.useContainerWidth = undefined;
|
|
@@ -242,10 +243,11 @@ export class SwirlPopover {
|
|
|
242
243
|
render() {
|
|
243
244
|
const mobile = !window.matchMedia("(min-width: 768px)").matches;
|
|
244
245
|
const className = classnames("popover", `popover--animation-${this.animation}`, `popover--placement-${this.position?.placement}`, {
|
|
245
|
-
"popover--closing": this.closing,
|
|
246
246
|
"popover--active": this.active,
|
|
247
|
+
"popover--closing": this.closing,
|
|
247
248
|
"popover--fullscreen-bottom-sheet": this.fullscreenBottomSheet,
|
|
248
249
|
"popover--inactive": !this.active,
|
|
250
|
+
"popover--transparent": this.transparent,
|
|
249
251
|
});
|
|
250
252
|
return (h(Host, null, h("div", { class: className, onKeyDown: this.onKeydown }, h("div", { "aria-hidden": !this.active ? "true" : "false", "aria-label": this.label, class: "popover__content", id: this.popoverId, part: "popover__content", role: "dialog", ref: (el) => (this.contentContainer = el), style: {
|
|
251
253
|
top: Boolean(this.position) ? `${this.position?.y}px` : "",
|
|
@@ -456,6 +458,23 @@ export class SwirlPopover {
|
|
|
456
458
|
"reflect": false,
|
|
457
459
|
"defaultValue": "true"
|
|
458
460
|
},
|
|
461
|
+
"transparent": {
|
|
462
|
+
"type": "boolean",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "boolean",
|
|
466
|
+
"resolved": "boolean",
|
|
467
|
+
"references": {}
|
|
468
|
+
},
|
|
469
|
+
"required": false,
|
|
470
|
+
"optional": true,
|
|
471
|
+
"docs": {
|
|
472
|
+
"tags": [],
|
|
473
|
+
"text": ""
|
|
474
|
+
},
|
|
475
|
+
"attribute": "transparent",
|
|
476
|
+
"reflect": false
|
|
477
|
+
},
|
|
459
478
|
"trigger": {
|
|
460
479
|
"type": "string",
|
|
461
480
|
"mutable": false,
|