@getflip/swirl-components 0.139.0 → 0.140.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.
- package/components.json +19 -3
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/swirl-stack.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +0 -22
- package/dist/collection/components/swirl-button-group/swirl-button-group.js +1 -1
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.css +6 -0
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +1 -1
- package/dist/collection/components/swirl-stack/swirl-stack.css +8 -0
- package/dist/collection/components/swirl-stack/swirl-stack.js +1 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +0 -22
- package/dist/components/swirl-image-grid-item.js +2 -2
- package/dist/components/swirl-stack2.js +1 -1
- package/dist/esm/swirl-image-grid-item.entry.js +2 -2
- package/dist/esm/swirl-stack.entry.js +1 -1
- package/dist/swirl-components/{p-6f44b355.entry.js → p-08d65be5.entry.js} +1 -1
- package/dist/swirl-components/p-3aa956d6.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-stack/swirl-stack.d.ts +1 -1
- package/package.json +1 -1
- package/vscode-data.json +12 -0
- package/dist/swirl-components/p-0bb0dc4f.entry.js +0 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-02-
|
|
2
|
+
"timestamp": "2024-02-01T12:07:46",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "3.3.1",
|
|
@@ -3650,7 +3650,7 @@
|
|
|
3650
3650
|
"props": [
|
|
3651
3651
|
{
|
|
3652
3652
|
"name": "orientation",
|
|
3653
|
-
"type": "\"horizontal\" | \"vertical\"",
|
|
3653
|
+
"type": "\"horizontal\" | \"horizontal-reverse\" | \"vertical\" | \"vertical-reverse\"",
|
|
3654
3654
|
"mutable": false,
|
|
3655
3655
|
"attr": "orientation",
|
|
3656
3656
|
"reflectToAttr": false,
|
|
@@ -3662,9 +3662,17 @@
|
|
|
3662
3662
|
"value": "horizontal",
|
|
3663
3663
|
"type": "string"
|
|
3664
3664
|
},
|
|
3665
|
+
{
|
|
3666
|
+
"value": "horizontal-reverse",
|
|
3667
|
+
"type": "string"
|
|
3668
|
+
},
|
|
3665
3669
|
{
|
|
3666
3670
|
"value": "vertical",
|
|
3667
3671
|
"type": "string"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
"value": "vertical-reverse",
|
|
3675
|
+
"type": "string"
|
|
3668
3676
|
}
|
|
3669
3677
|
],
|
|
3670
3678
|
"optional": true,
|
|
@@ -22778,7 +22786,7 @@
|
|
|
22778
22786
|
},
|
|
22779
22787
|
{
|
|
22780
22788
|
"name": "orientation",
|
|
22781
|
-
"type": "\"horizontal\" | \"vertical\"",
|
|
22789
|
+
"type": "\"horizontal\" | \"horizontal-reverse\" | \"vertical\" | \"vertical-reverse\"",
|
|
22782
22790
|
"mutable": false,
|
|
22783
22791
|
"attr": "orientation",
|
|
22784
22792
|
"reflectToAttr": false,
|
|
@@ -22790,9 +22798,17 @@
|
|
|
22790
22798
|
"value": "horizontal",
|
|
22791
22799
|
"type": "string"
|
|
22792
22800
|
},
|
|
22801
|
+
{
|
|
22802
|
+
"value": "horizontal-reverse",
|
|
22803
|
+
"type": "string"
|
|
22804
|
+
},
|
|
22793
22805
|
{
|
|
22794
22806
|
"value": "vertical",
|
|
22795
22807
|
"type": "string"
|
|
22808
|
+
},
|
|
22809
|
+
{
|
|
22810
|
+
"value": "vertical-reverse",
|
|
22811
|
+
"type": "string"
|
|
22796
22812
|
}
|
|
22797
22813
|
],
|
|
22798
22814
|
"optional": true,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-1de6abbd.js');
|
|
6
6
|
const index$1 = require('./index-2ddd0598.js');
|
|
7
7
|
|
|
8
|
-
const swirlImageGridItemCss = ":host{display:block;width:100%;min-height:0}:host *{box-sizing:border-box}:host(:not(:only-child)) .image-grid-item__background{display:none}:host(:not(:only-child)) .image-grid-item__image{-o-object-fit:cover;object-fit:cover}:host(:nth-child(n+5)){display:none}.image-grid-item{position:relative;display:inline-flex;overflow:hidden;width:100%;height:100%}button.image-grid-item{padding:0;border:none;background-color:transparent;cursor:pointer}button.image-grid-item:focus:not(:focus-visible){outline:none}button.image-grid-item:focus-visible{z-index:1;outline-color:var(--s-focus-default);outline-offset:var(--s-space-2)}.image-grid-item--has-overlay .image-grid-item__image{scale:1.1;filter:blur(5px)}.image-grid-item__background{position:absolute;background-size:cover;inset:-40px;filter:blur(20px)}.image-grid-item__image{z-index:1;display:inline-flex;width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center}.image-grid-item__icon{position:absolute;z-index:1;top:50%;left:50%;display:flex;width:3rem;height:3rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-on-image);background-color:rgba(0, 0, 0, 0.6);transform:translate3d(-50%, -50%, 0)}.image-grid-item__icon ::part(icon){width:2rem;height:2rem}.image-grid-item__overlay{position:absolute;z-index:2;display:flex;justify-content:center;align-items:center;color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.4);font-size:var(--s-font-size-2xl);inset:0}.image-grid-item__spinner{position:absolute;z-index:3;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.4);inset:0}";
|
|
8
|
+
const swirlImageGridItemCss = ":host{display:block;width:100%;min-height:0}:host *{box-sizing:border-box}:host(:not(:only-child)) .image-grid-item__background{display:none}:host(:not(:only-child)) .image-grid-item__image{-o-object-fit:cover;object-fit:cover}:host(:nth-child(n+5)){display:none}.image-grid-item{position:relative;display:inline-flex;overflow:hidden;width:100%;height:100%}button.image-grid-item{padding:0;border:none;background-color:transparent;cursor:pointer}button.image-grid-item:focus:not(:focus-visible){outline:none}button.image-grid-item:focus-visible{z-index:1;outline-color:var(--s-focus-default);outline-offset:var(--s-space-2)}.image-grid-item--has-overlay .image-grid-item__image{scale:1.1;filter:blur(5px)}.image-grid-item__background{position:absolute;background-size:cover;inset:-40px;filter:blur(20px)}.image-grid-item__image{z-index:1;display:inline-flex;width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center}.image-grid-item__loading-placeholder{display:inline-flex;width:100%;height:100%}.image-grid-item__icon{position:absolute;z-index:1;top:50%;left:50%;display:flex;width:3rem;height:3rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-on-image);background-color:rgba(0, 0, 0, 0.6);transform:translate3d(-50%, -50%, 0)}.image-grid-item__icon ::part(icon){width:2rem;height:2rem}.image-grid-item__overlay{position:absolute;z-index:2;display:flex;justify-content:center;align-items:center;color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.4);font-size:var(--s-font-size-2xl);inset:0}.image-grid-item__spinner{position:absolute;z-index:3;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.4);inset:0}";
|
|
9
9
|
|
|
10
10
|
const SwirlImageGridItem = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -53,7 +53,7 @@ const SwirlImageGridItem = class {
|
|
|
53
53
|
this.loaded
|
|
54
54
|
? `url(${this.src})`
|
|
55
55
|
: undefined,
|
|
56
|
-
} }),
|
|
56
|
+
} }), this.loading !== "intersecting" || this.inViewport ? (index.h("img", { alt: this.alt, class: "image-grid-item__image", loading: this.loading !== "intersecting" ? this.loading : undefined, onLoad: this.onLoad, src: this.src })) : (index.h("div", { class: "image-grid-item__loading-placeholder" })), this.loaded && this.icon && !Boolean(this.overlay) && (index.h("div", { class: "image-grid-item__icon", innerHTML: this.icon })), this.overlay && (index.h("div", { class: "image-grid-item__overlay" }, this.overlay)), !this.loaded && (index.h("div", { class: "image-grid-item__spinner" }, index.h("swirl-spinner", null))))));
|
|
57
57
|
}
|
|
58
58
|
get el() { return index.getElement(this); }
|
|
59
59
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-1de6abbd.js');
|
|
6
6
|
const index$1 = require('./index-2ddd0598.js');
|
|
7
7
|
|
|
8
|
-
const swirlStackCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%;margin:0}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:1}ol.stack,ul.stack{margin:0;padding:0;list-style:none}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-horizontal{flex-direction:row}.stack--wrap{flex-wrap:wrap}";
|
|
8
|
+
const swirlStackCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%;margin:0}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:1}ol.stack,ul.stack{margin:0;padding:0;list-style:none}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-vertical-reverse{flex-direction:column-reverse}.stack--orientation-horizontal{flex-direction:row}.stack--orientation-horizontal-reverse{flex-direction:row-reverse}.stack--wrap{flex-wrap:wrap}";
|
|
9
9
|
|
|
10
10
|
const SwirlStack = class {
|
|
11
11
|
constructor(hostRef) {
|