@easemate/web-kit 0.5.1 → 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 +38 -23
- package/build/elements.cjs.map +1 -1
- package/build/elements.js +38 -23
- package/build/elements.js.map +1 -1
- package/build/index.cjs +38 -23
- package/build/index.cjs.map +1 -1
- package/build/index.js +38 -23
- package/build/index.js.map +1 -1
- package/build/react.cjs +34 -19
- package/build/react.cjs.map +1 -1
- package/build/react.js +34 -19
- package/build/react.js.map +1 -1
- package/build/register.cjs +38 -23
- package/build/register.cjs.map +1 -1
- package/build/register.js +38 -23
- package/build/register.js.map +1 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -34147,20 +34147,27 @@ var init_panel = __esm({
|
|
|
34147
34147
|
tag: "ease-panel",
|
|
34148
34148
|
shadowMode: "open",
|
|
34149
34149
|
styles: `
|
|
34150
|
-
|
|
34150
|
+
:host {
|
|
34151
|
+
display: block;
|
|
34152
|
+
box-sizing: border-box;
|
|
34153
|
+
}
|
|
34154
|
+
|
|
34155
|
+
@property --ease-panel-top-fade {
|
|
34151
34156
|
syntax: "<length>";
|
|
34152
34157
|
inherits: false;
|
|
34153
34158
|
initial-value: 0px;
|
|
34154
34159
|
}
|
|
34155
34160
|
|
|
34156
|
-
@property --bottom-fade {
|
|
34161
|
+
@property --ease-panel-bottom-fade {
|
|
34157
34162
|
syntax: "<length>";
|
|
34158
34163
|
inherits: false;
|
|
34159
34164
|
initial-value: 0px;
|
|
34160
34165
|
}
|
|
34161
34166
|
|
|
34162
34167
|
[part="section"] {
|
|
34163
|
-
display:
|
|
34168
|
+
display: flex;
|
|
34169
|
+
flex-direction: column;
|
|
34170
|
+
max-height: inherit;
|
|
34164
34171
|
width: 100%;
|
|
34165
34172
|
max-width: var(--ease-panel-max-width);
|
|
34166
34173
|
border-radius: var(--ease-panel-radius);
|
|
@@ -34297,9 +34304,10 @@ var init_panel = __esm({
|
|
|
34297
34304
|
|
|
34298
34305
|
[part="content"] {
|
|
34299
34306
|
display: block;
|
|
34307
|
+
flex: 1 1 auto;
|
|
34308
|
+
min-height: 0;
|
|
34300
34309
|
width: 100%;
|
|
34301
34310
|
box-sizing: border-box;
|
|
34302
|
-
margin: auto;
|
|
34303
34311
|
overflow: hidden;
|
|
34304
34312
|
}
|
|
34305
34313
|
|
|
@@ -34308,18 +34316,10 @@ var init_panel = __esm({
|
|
|
34308
34316
|
}
|
|
34309
34317
|
|
|
34310
34318
|
[part="body"] {
|
|
34319
|
+
display: block;
|
|
34320
|
+
height: 100%;
|
|
34311
34321
|
width: 100%;
|
|
34312
34322
|
position: relative;
|
|
34313
|
-
overflow-y: auto;
|
|
34314
|
-
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
34315
|
-
animation-name: scroll-fade;
|
|
34316
|
-
animation-timeline: scroll(self y);
|
|
34317
|
-
scroll-snap-type: y mandatory;
|
|
34318
|
-
scrollbar-width: none;
|
|
34319
|
-
|
|
34320
|
-
&::-webkit-scrollbar {
|
|
34321
|
-
display: none;
|
|
34322
|
-
}
|
|
34323
34323
|
}
|
|
34324
34324
|
|
|
34325
34325
|
@keyframes scroll-fade {
|
|
@@ -34345,6 +34345,7 @@ var init_panel = __esm({
|
|
|
34345
34345
|
|
|
34346
34346
|
[part="tab-panel"][data-state="active"] {
|
|
34347
34347
|
display: block;
|
|
34348
|
+
height: 100%;
|
|
34348
34349
|
pointer-events: auto;
|
|
34349
34350
|
}
|
|
34350
34351
|
|
|
@@ -34372,6 +34373,17 @@ var init_panel = __esm({
|
|
|
34372
34373
|
grid-gap: var(--ease-panel-gap);
|
|
34373
34374
|
box-sizing: border-box;
|
|
34374
34375
|
width: 100%;
|
|
34376
|
+
max-height: 100%;
|
|
34377
|
+
overflow-y: auto;
|
|
34378
|
+
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
34379
|
+
animation-name: scroll-fade;
|
|
34380
|
+
animation-timeline: scroll(self y);
|
|
34381
|
+
scroll-snap-type: y mandatory;
|
|
34382
|
+
scrollbar-width: none;
|
|
34383
|
+
|
|
34384
|
+
&::-webkit-scrollbar {
|
|
34385
|
+
display: none;
|
|
34386
|
+
}
|
|
34375
34387
|
}
|
|
34376
34388
|
`
|
|
34377
34389
|
}), _dec146 = Prop({
|
|
@@ -34514,8 +34526,8 @@ var init_panel = __esm({
|
|
|
34514
34526
|
</div>
|
|
34515
34527
|
</div>
|
|
34516
34528
|
<div part="content">
|
|
34517
|
-
<div part="body"
|
|
34518
|
-
${hasTabs ? this.#renderTabPanels() : import_lit_html56.html`<div part="items"><slot></slot></div>`}
|
|
34529
|
+
<div part="body">
|
|
34530
|
+
${hasTabs ? this.#renderTabPanels() : import_lit_html56.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html56.nothing}><slot></slot></div>`}
|
|
34519
34531
|
</div>
|
|
34520
34532
|
</div>
|
|
34521
34533
|
<div part="footer">
|
|
@@ -34557,7 +34569,7 @@ var init_panel = __esm({
|
|
|
34557
34569
|
data-state=${index === this.activeTab ? "active" : "hidden"}
|
|
34558
34570
|
data-index=${index}
|
|
34559
34571
|
>
|
|
34560
|
-
<div part="items">
|
|
34572
|
+
<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html56.nothing}>
|
|
34561
34573
|
<slot name=${`tab-${tab.id}`}></slot>
|
|
34562
34574
|
</div>
|
|
34563
34575
|
</div>
|
|
@@ -34652,12 +34664,15 @@ var init_panel = __esm({
|
|
|
34652
34664
|
} catch {
|
|
34653
34665
|
}
|
|
34654
34666
|
fromPanel.setAttribute("data-state", "hidden");
|
|
34667
|
+
content.style.height = "auto";
|
|
34655
34668
|
const previousToState = toPanel.getAttribute("data-state");
|
|
34656
34669
|
toPanel.style.display = "block";
|
|
34657
34670
|
toPanel.style.visibility = "hidden";
|
|
34658
34671
|
toPanel.style.opacity = "0";
|
|
34659
|
-
void
|
|
34660
|
-
const endHeight =
|
|
34672
|
+
void content.offsetHeight;
|
|
34673
|
+
const endHeight = content.getBoundingClientRect().height;
|
|
34674
|
+
content.style.height = `${startHeight}px`;
|
|
34675
|
+
void content.offsetHeight;
|
|
34661
34676
|
if (startHeight !== endHeight) {
|
|
34662
34677
|
content.setAttribute("data-animating", "true");
|
|
34663
34678
|
void content.offsetHeight;
|
|
@@ -40742,7 +40757,6 @@ var _initProto20;
|
|
|
40742
40757
|
var _Folder;
|
|
40743
40758
|
_dec78 = Component({
|
|
40744
40759
|
tag: "ease-folder",
|
|
40745
|
-
shadowMode: "open",
|
|
40746
40760
|
styles: `
|
|
40747
40761
|
@property --top-fade {
|
|
40748
40762
|
syntax: "<length>";
|
|
@@ -40775,6 +40789,7 @@ _dec78 = Component({
|
|
|
40775
40789
|
:host {
|
|
40776
40790
|
display: block;
|
|
40777
40791
|
width: 100%;
|
|
40792
|
+
interpolate-size: allow-keywords;
|
|
40778
40793
|
}
|
|
40779
40794
|
|
|
40780
40795
|
[part="section"] {
|
|
@@ -40848,7 +40863,7 @@ _dec78 = Component({
|
|
|
40848
40863
|
grid-gap: var(--ease-folder-gap);
|
|
40849
40864
|
padding: var(--ease-folder-padding);
|
|
40850
40865
|
overflow-y: auto;
|
|
40851
|
-
overscroll-behavior:
|
|
40866
|
+
overscroll-behavior: none;
|
|
40852
40867
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
40853
40868
|
animation-name: scroll-fade;
|
|
40854
40869
|
animation-timeline: scroll(self y);
|
|
@@ -40932,8 +40947,8 @@ var Folder = class extends (_HTMLElement24 = HTMLElement) {
|
|
|
40932
40947
|
<ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
|
|
40933
40948
|
</span>
|
|
40934
40949
|
</div>
|
|
40935
|
-
<div part="content"
|
|
40936
|
-
<div part="body">
|
|
40950
|
+
<div part="content">
|
|
40951
|
+
<div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
|
|
40937
40952
|
<slot></slot>
|
|
40938
40953
|
</div>
|
|
40939
40954
|
</div>
|