@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/index.js
CHANGED
|
@@ -34134,6 +34134,11 @@ var init_panel = __esm({
|
|
|
34134
34134
|
tag: "ease-panel",
|
|
34135
34135
|
shadowMode: "open",
|
|
34136
34136
|
styles: `
|
|
34137
|
+
:host {
|
|
34138
|
+
display: block;
|
|
34139
|
+
box-sizing: border-box;
|
|
34140
|
+
}
|
|
34141
|
+
|
|
34137
34142
|
@property --ease-panel-top-fade {
|
|
34138
34143
|
syntax: "<length>";
|
|
34139
34144
|
inherits: false;
|
|
@@ -34147,7 +34152,9 @@ var init_panel = __esm({
|
|
|
34147
34152
|
}
|
|
34148
34153
|
|
|
34149
34154
|
[part="section"] {
|
|
34150
|
-
display:
|
|
34155
|
+
display: flex;
|
|
34156
|
+
flex-direction: column;
|
|
34157
|
+
max-height: inherit;
|
|
34151
34158
|
width: 100%;
|
|
34152
34159
|
max-width: var(--ease-panel-max-width);
|
|
34153
34160
|
border-radius: var(--ease-panel-radius);
|
|
@@ -34284,9 +34291,10 @@ var init_panel = __esm({
|
|
|
34284
34291
|
|
|
34285
34292
|
[part="content"] {
|
|
34286
34293
|
display: block;
|
|
34294
|
+
flex: 1 1 auto;
|
|
34295
|
+
min-height: 0;
|
|
34287
34296
|
width: 100%;
|
|
34288
34297
|
box-sizing: border-box;
|
|
34289
|
-
margin: auto;
|
|
34290
34298
|
overflow: hidden;
|
|
34291
34299
|
}
|
|
34292
34300
|
|
|
@@ -34295,19 +34303,10 @@ var init_panel = __esm({
|
|
|
34295
34303
|
}
|
|
34296
34304
|
|
|
34297
34305
|
[part="body"] {
|
|
34306
|
+
display: block;
|
|
34307
|
+
height: 100%;
|
|
34298
34308
|
width: 100%;
|
|
34299
34309
|
position: relative;
|
|
34300
|
-
overflow-y: auto;
|
|
34301
|
-
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
34302
|
-
animation-name: scroll-fade;
|
|
34303
|
-
animation-timeline: scroll(self y);
|
|
34304
|
-
scroll-snap-type: y mandatory;
|
|
34305
|
-
scrollbar-width: none;
|
|
34306
|
-
max-height: calc(100dvh - 32px - var(--ease-panel-padding));
|
|
34307
|
-
|
|
34308
|
-
&::-webkit-scrollbar {
|
|
34309
|
-
display: none;
|
|
34310
|
-
}
|
|
34311
34310
|
}
|
|
34312
34311
|
|
|
34313
34312
|
@keyframes scroll-fade {
|
|
@@ -34333,6 +34332,7 @@ var init_panel = __esm({
|
|
|
34333
34332
|
|
|
34334
34333
|
[part="tab-panel"][data-state="active"] {
|
|
34335
34334
|
display: block;
|
|
34335
|
+
height: 100%;
|
|
34336
34336
|
pointer-events: auto;
|
|
34337
34337
|
}
|
|
34338
34338
|
|
|
@@ -34360,6 +34360,17 @@ var init_panel = __esm({
|
|
|
34360
34360
|
grid-gap: var(--ease-panel-gap);
|
|
34361
34361
|
box-sizing: border-box;
|
|
34362
34362
|
width: 100%;
|
|
34363
|
+
max-height: 100%;
|
|
34364
|
+
overflow-y: auto;
|
|
34365
|
+
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
34366
|
+
animation-name: scroll-fade;
|
|
34367
|
+
animation-timeline: scroll(self y);
|
|
34368
|
+
scroll-snap-type: y mandatory;
|
|
34369
|
+
scrollbar-width: none;
|
|
34370
|
+
|
|
34371
|
+
&::-webkit-scrollbar {
|
|
34372
|
+
display: none;
|
|
34373
|
+
}
|
|
34363
34374
|
}
|
|
34364
34375
|
`
|
|
34365
34376
|
}), _dec146 = Prop({
|
|
@@ -34502,8 +34513,8 @@ var init_panel = __esm({
|
|
|
34502
34513
|
</div>
|
|
34503
34514
|
</div>
|
|
34504
34515
|
<div part="content">
|
|
34505
|
-
<div part="body"
|
|
34506
|
-
${hasTabs ? this.#renderTabPanels() : html54`<div part="items"><slot></slot></div>`}
|
|
34516
|
+
<div part="body">
|
|
34517
|
+
${hasTabs ? this.#renderTabPanels() : html54`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
|
|
34507
34518
|
</div>
|
|
34508
34519
|
</div>
|
|
34509
34520
|
<div part="footer">
|
|
@@ -34545,7 +34556,7 @@ var init_panel = __esm({
|
|
|
34545
34556
|
data-state=${index === this.activeTab ? "active" : "hidden"}
|
|
34546
34557
|
data-index=${index}
|
|
34547
34558
|
>
|
|
34548
|
-
<div part="items">
|
|
34559
|
+
<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
|
|
34549
34560
|
<slot name=${`tab-${tab.id}`}></slot>
|
|
34550
34561
|
</div>
|
|
34551
34562
|
</div>
|
|
@@ -34640,12 +34651,15 @@ var init_panel = __esm({
|
|
|
34640
34651
|
} catch {
|
|
34641
34652
|
}
|
|
34642
34653
|
fromPanel.setAttribute("data-state", "hidden");
|
|
34654
|
+
content.style.height = "auto";
|
|
34643
34655
|
const previousToState = toPanel.getAttribute("data-state");
|
|
34644
34656
|
toPanel.style.display = "block";
|
|
34645
34657
|
toPanel.style.visibility = "hidden";
|
|
34646
34658
|
toPanel.style.opacity = "0";
|
|
34647
|
-
void
|
|
34648
|
-
const endHeight =
|
|
34659
|
+
void content.offsetHeight;
|
|
34660
|
+
const endHeight = content.getBoundingClientRect().height;
|
|
34661
|
+
content.style.height = `${startHeight}px`;
|
|
34662
|
+
void content.offsetHeight;
|
|
34649
34663
|
if (startHeight !== endHeight) {
|
|
34650
34664
|
content.setAttribute("data-animating", "true");
|
|
34651
34665
|
void content.offsetHeight;
|
|
@@ -40656,6 +40670,7 @@ _dec78 = Component({
|
|
|
40656
40670
|
:host {
|
|
40657
40671
|
display: block;
|
|
40658
40672
|
width: 100%;
|
|
40673
|
+
interpolate-size: allow-keywords;
|
|
40659
40674
|
}
|
|
40660
40675
|
|
|
40661
40676
|
[part="section"] {
|
|
@@ -40729,7 +40744,7 @@ _dec78 = Component({
|
|
|
40729
40744
|
grid-gap: var(--ease-folder-gap);
|
|
40730
40745
|
padding: var(--ease-folder-padding);
|
|
40731
40746
|
overflow-y: auto;
|
|
40732
|
-
overscroll-behavior:
|
|
40747
|
+
overscroll-behavior: none;
|
|
40733
40748
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
40734
40749
|
animation-name: scroll-fade;
|
|
40735
40750
|
animation-timeline: scroll(self y);
|