@easemate/web-kit 0.5.2 → 0.5.3
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/build/elements.cjs +34 -19
- package/build/elements.cjs.map +1 -1
- package/build/elements.js +34 -19
- package/build/elements.js.map +1 -1
- package/build/index.cjs +34 -19
- package/build/index.cjs.map +1 -1
- package/build/index.js +34 -19
- package/build/index.js.map +1 -1
- package/build/react.cjs +32 -18
- package/build/react.cjs.map +1 -1
- package/build/react.js +32 -18
- package/build/react.js.map +1 -1
- package/build/register.cjs +34 -19
- package/build/register.cjs.map +1 -1
- package/build/register.js +34 -19
- package/build/register.js.map +1 -1
- package/package.json +1 -1
package/build/register.cjs
CHANGED
|
@@ -9307,6 +9307,7 @@ _dec30 = Component({
|
|
|
9307
9307
|
:host {
|
|
9308
9308
|
display: block;
|
|
9309
9309
|
width: 100%;
|
|
9310
|
+
interpolate-size: allow-keywords;
|
|
9310
9311
|
}
|
|
9311
9312
|
|
|
9312
9313
|
[part="section"] {
|
|
@@ -9380,7 +9381,7 @@ _dec30 = Component({
|
|
|
9380
9381
|
grid-gap: var(--ease-folder-gap);
|
|
9381
9382
|
padding: var(--ease-folder-padding);
|
|
9382
9383
|
overflow-y: auto;
|
|
9383
|
-
overscroll-behavior:
|
|
9384
|
+
overscroll-behavior: none;
|
|
9384
9385
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
9385
9386
|
animation-name: scroll-fade;
|
|
9386
9387
|
animation-timeline: scroll(self y);
|
|
@@ -23862,6 +23863,11 @@ _dec81 = Component({
|
|
|
23862
23863
|
tag: "ease-panel",
|
|
23863
23864
|
shadowMode: "open",
|
|
23864
23865
|
styles: `
|
|
23866
|
+
:host {
|
|
23867
|
+
display: block;
|
|
23868
|
+
box-sizing: border-box;
|
|
23869
|
+
}
|
|
23870
|
+
|
|
23865
23871
|
@property --ease-panel-top-fade {
|
|
23866
23872
|
syntax: "<length>";
|
|
23867
23873
|
inherits: false;
|
|
@@ -23875,7 +23881,9 @@ _dec81 = Component({
|
|
|
23875
23881
|
}
|
|
23876
23882
|
|
|
23877
23883
|
[part="section"] {
|
|
23878
|
-
display:
|
|
23884
|
+
display: flex;
|
|
23885
|
+
flex-direction: column;
|
|
23886
|
+
max-height: inherit;
|
|
23879
23887
|
width: 100%;
|
|
23880
23888
|
max-width: var(--ease-panel-max-width);
|
|
23881
23889
|
border-radius: var(--ease-panel-radius);
|
|
@@ -24012,9 +24020,10 @@ _dec81 = Component({
|
|
|
24012
24020
|
|
|
24013
24021
|
[part="content"] {
|
|
24014
24022
|
display: block;
|
|
24023
|
+
flex: 1 1 auto;
|
|
24024
|
+
min-height: 0;
|
|
24015
24025
|
width: 100%;
|
|
24016
24026
|
box-sizing: border-box;
|
|
24017
|
-
margin: auto;
|
|
24018
24027
|
overflow: hidden;
|
|
24019
24028
|
}
|
|
24020
24029
|
|
|
@@ -24023,19 +24032,10 @@ _dec81 = Component({
|
|
|
24023
24032
|
}
|
|
24024
24033
|
|
|
24025
24034
|
[part="body"] {
|
|
24035
|
+
display: block;
|
|
24036
|
+
height: 100%;
|
|
24026
24037
|
width: 100%;
|
|
24027
24038
|
position: relative;
|
|
24028
|
-
overflow-y: auto;
|
|
24029
|
-
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
24030
|
-
animation-name: scroll-fade;
|
|
24031
|
-
animation-timeline: scroll(self y);
|
|
24032
|
-
scroll-snap-type: y mandatory;
|
|
24033
|
-
scrollbar-width: none;
|
|
24034
|
-
max-height: calc(100dvh - 32px - var(--ease-panel-padding));
|
|
24035
|
-
|
|
24036
|
-
&::-webkit-scrollbar {
|
|
24037
|
-
display: none;
|
|
24038
|
-
}
|
|
24039
24039
|
}
|
|
24040
24040
|
|
|
24041
24041
|
@keyframes scroll-fade {
|
|
@@ -24061,6 +24061,7 @@ _dec81 = Component({
|
|
|
24061
24061
|
|
|
24062
24062
|
[part="tab-panel"][data-state="active"] {
|
|
24063
24063
|
display: block;
|
|
24064
|
+
height: 100%;
|
|
24064
24065
|
pointer-events: auto;
|
|
24065
24066
|
}
|
|
24066
24067
|
|
|
@@ -24088,6 +24089,17 @@ _dec81 = Component({
|
|
|
24088
24089
|
grid-gap: var(--ease-panel-gap);
|
|
24089
24090
|
box-sizing: border-box;
|
|
24090
24091
|
width: 100%;
|
|
24092
|
+
max-height: 100%;
|
|
24093
|
+
overflow-y: auto;
|
|
24094
|
+
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
24095
|
+
animation-name: scroll-fade;
|
|
24096
|
+
animation-timeline: scroll(self y);
|
|
24097
|
+
scroll-snap-type: y mandatory;
|
|
24098
|
+
scrollbar-width: none;
|
|
24099
|
+
|
|
24100
|
+
&::-webkit-scrollbar {
|
|
24101
|
+
display: none;
|
|
24102
|
+
}
|
|
24091
24103
|
}
|
|
24092
24104
|
`
|
|
24093
24105
|
}), _dec124 = Prop({
|
|
@@ -24230,8 +24242,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24230
24242
|
</div>
|
|
24231
24243
|
</div>
|
|
24232
24244
|
<div part="content">
|
|
24233
|
-
<div part="body"
|
|
24234
|
-
${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items"><slot></slot></div>`}
|
|
24245
|
+
<div part="body">
|
|
24246
|
+
${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}><slot></slot></div>`}
|
|
24235
24247
|
</div>
|
|
24236
24248
|
</div>
|
|
24237
24249
|
<div part="footer">
|
|
@@ -24273,7 +24285,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24273
24285
|
data-state=${index === this.activeTab ? "active" : "hidden"}
|
|
24274
24286
|
data-index=${index}
|
|
24275
24287
|
>
|
|
24276
|
-
<div part="items">
|
|
24288
|
+
<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}>
|
|
24277
24289
|
<slot name=${`tab-${tab.id}`}></slot>
|
|
24278
24290
|
</div>
|
|
24279
24291
|
</div>
|
|
@@ -24368,12 +24380,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24368
24380
|
} catch {
|
|
24369
24381
|
}
|
|
24370
24382
|
fromPanel.setAttribute("data-state", "hidden");
|
|
24383
|
+
content.style.height = "auto";
|
|
24371
24384
|
const previousToState = toPanel.getAttribute("data-state");
|
|
24372
24385
|
toPanel.style.display = "block";
|
|
24373
24386
|
toPanel.style.visibility = "hidden";
|
|
24374
24387
|
toPanel.style.opacity = "0";
|
|
24375
|
-
void
|
|
24376
|
-
const endHeight =
|
|
24388
|
+
void content.offsetHeight;
|
|
24389
|
+
const endHeight = content.getBoundingClientRect().height;
|
|
24390
|
+
content.style.height = `${startHeight}px`;
|
|
24391
|
+
void content.offsetHeight;
|
|
24377
24392
|
if (startHeight !== endHeight) {
|
|
24378
24393
|
content.setAttribute("data-animating", "true");
|
|
24379
24394
|
void content.offsetHeight;
|