@easemate/web-kit 0.5.2 → 0.5.4
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 +39 -23
- package/build/elements.cjs.map +1 -1
- package/build/elements.js +39 -23
- package/build/elements.js.map +1 -1
- package/build/index.cjs +39 -23
- package/build/index.cjs.map +1 -1
- package/build/index.js +39 -23
- package/build/index.js.map +1 -1
- package/build/react.cjs +37 -22
- package/build/react.cjs.map +1 -1
- package/build/react.js +37 -22
- package/build/react.js.map +1 -1
- package/build/register.cjs +39 -23
- package/build/register.cjs.map +1 -1
- package/build/register.js +39 -23
- package/build/register.js.map +1 -1
- package/package.json +1 -1
package/build/register.cjs
CHANGED
|
@@ -3926,11 +3926,11 @@ _dec10 = Component({
|
|
|
3926
3926
|
--ease-dropdown-panel-shadow,
|
|
3927
3927
|
0 5px 20px 0 var(--color-black-15),
|
|
3928
3928
|
0 1px 4px 0 var(--color-black-15),
|
|
3929
|
-
0 0 0
|
|
3929
|
+
0 0 0 .5px var(--color-white-4) inset,
|
|
3930
3930
|
0 1px 0 0 var(--color-white-4) inset
|
|
3931
3931
|
);
|
|
3932
3932
|
background-clip: padding-box;
|
|
3933
|
-
border:
|
|
3933
|
+
border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
|
|
3934
3934
|
box-sizing: border-box;
|
|
3935
3935
|
padding: var(--ease-dropdown-panel-padding, 4px);
|
|
3936
3936
|
}
|
|
@@ -3948,7 +3948,7 @@ _dec10 = Component({
|
|
|
3948
3948
|
}
|
|
3949
3949
|
|
|
3950
3950
|
[part="content"] ::slotted(h4) {
|
|
3951
|
-
margin: 4px 0
|
|
3951
|
+
margin: 4px 0 !important;
|
|
3952
3952
|
font-size: var(--ease-dropdown-group-label-font-size, 11px);
|
|
3953
3953
|
line-height: 1;
|
|
3954
3954
|
padding: var(--ease-dropdown-group-label-padding, 0 8px);
|
|
@@ -8786,6 +8786,7 @@ _dec29 = Component({
|
|
|
8786
8786
|
|
|
8787
8787
|
[part="field"] {
|
|
8788
8788
|
scroll-snap-align: start;
|
|
8789
|
+
scroll-margin-top: 8px;
|
|
8789
8790
|
display: grid;
|
|
8790
8791
|
grid-template-columns: var(--ease-field-label-width, 36%) auto;
|
|
8791
8792
|
column-gap: var(--ease-field-column-gap, 12px);
|
|
@@ -9307,6 +9308,7 @@ _dec30 = Component({
|
|
|
9307
9308
|
:host {
|
|
9308
9309
|
display: block;
|
|
9309
9310
|
width: 100%;
|
|
9311
|
+
interpolate-size: allow-keywords;
|
|
9310
9312
|
}
|
|
9311
9313
|
|
|
9312
9314
|
[part="section"] {
|
|
@@ -9380,7 +9382,7 @@ _dec30 = Component({
|
|
|
9380
9382
|
grid-gap: var(--ease-folder-gap);
|
|
9381
9383
|
padding: var(--ease-folder-padding);
|
|
9382
9384
|
overflow-y: auto;
|
|
9383
|
-
overscroll-behavior:
|
|
9385
|
+
overscroll-behavior: none;
|
|
9384
9386
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
9385
9387
|
animation-name: scroll-fade;
|
|
9386
9388
|
animation-timeline: scroll(self y);
|
|
@@ -23862,6 +23864,11 @@ _dec81 = Component({
|
|
|
23862
23864
|
tag: "ease-panel",
|
|
23863
23865
|
shadowMode: "open",
|
|
23864
23866
|
styles: `
|
|
23867
|
+
:host {
|
|
23868
|
+
display: block;
|
|
23869
|
+
box-sizing: border-box;
|
|
23870
|
+
}
|
|
23871
|
+
|
|
23865
23872
|
@property --ease-panel-top-fade {
|
|
23866
23873
|
syntax: "<length>";
|
|
23867
23874
|
inherits: false;
|
|
@@ -23875,7 +23882,9 @@ _dec81 = Component({
|
|
|
23875
23882
|
}
|
|
23876
23883
|
|
|
23877
23884
|
[part="section"] {
|
|
23878
|
-
display:
|
|
23885
|
+
display: flex;
|
|
23886
|
+
flex-direction: column;
|
|
23887
|
+
max-height: inherit;
|
|
23879
23888
|
width: 100%;
|
|
23880
23889
|
max-width: var(--ease-panel-max-width);
|
|
23881
23890
|
border-radius: var(--ease-panel-radius);
|
|
@@ -24012,32 +24021,34 @@ _dec81 = Component({
|
|
|
24012
24021
|
|
|
24013
24022
|
[part="content"] {
|
|
24014
24023
|
display: block;
|
|
24024
|
+
flex: 1 1 auto;
|
|
24025
|
+
min-height: 0;
|
|
24015
24026
|
width: 100%;
|
|
24016
24027
|
box-sizing: border-box;
|
|
24017
|
-
margin: auto;
|
|
24018
|
-
overflow: hidden;
|
|
24019
|
-
}
|
|
24020
|
-
|
|
24021
|
-
[part="content"][data-animating="true"] {
|
|
24022
|
-
transition: height 200ms cubic-bezier(.25, 0, .5, 1);
|
|
24023
|
-
}
|
|
24024
|
-
|
|
24025
|
-
[part="body"] {
|
|
24026
|
-
width: 100%;
|
|
24027
|
-
position: relative;
|
|
24028
24028
|
overflow-y: auto;
|
|
24029
|
+
overflow-x: hidden;
|
|
24029
24030
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
24030
24031
|
animation-name: scroll-fade;
|
|
24031
24032
|
animation-timeline: scroll(self y);
|
|
24032
|
-
scroll-snap-type: y
|
|
24033
|
+
scroll-snap-type: y proximity;
|
|
24033
24034
|
scrollbar-width: none;
|
|
24034
|
-
max-height: calc(100dvh - 32px - var(--ease-panel-padding));
|
|
24035
24035
|
|
|
24036
24036
|
&::-webkit-scrollbar {
|
|
24037
24037
|
display: none;
|
|
24038
24038
|
}
|
|
24039
24039
|
}
|
|
24040
24040
|
|
|
24041
|
+
[part="content"][data-animating="true"] {
|
|
24042
|
+
transition: height 200ms cubic-bezier(.25, 0, .5, 1);
|
|
24043
|
+
}
|
|
24044
|
+
|
|
24045
|
+
[part="body"] {
|
|
24046
|
+
display: block;
|
|
24047
|
+
height: 100%;
|
|
24048
|
+
width: 100%;
|
|
24049
|
+
position: relative;
|
|
24050
|
+
}
|
|
24051
|
+
|
|
24041
24052
|
@keyframes scroll-fade {
|
|
24042
24053
|
0% {
|
|
24043
24054
|
--top-fade: 0px;
|
|
@@ -24061,6 +24072,7 @@ _dec81 = Component({
|
|
|
24061
24072
|
|
|
24062
24073
|
[part="tab-panel"][data-state="active"] {
|
|
24063
24074
|
display: block;
|
|
24075
|
+
height: 100%;
|
|
24064
24076
|
pointer-events: auto;
|
|
24065
24077
|
}
|
|
24066
24078
|
|
|
@@ -24088,6 +24100,7 @@ _dec81 = Component({
|
|
|
24088
24100
|
grid-gap: var(--ease-panel-gap);
|
|
24089
24101
|
box-sizing: border-box;
|
|
24090
24102
|
width: 100%;
|
|
24103
|
+
max-height: 100%;
|
|
24091
24104
|
}
|
|
24092
24105
|
`
|
|
24093
24106
|
}), _dec124 = Prop({
|
|
@@ -24230,8 +24243,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24230
24243
|
</div>
|
|
24231
24244
|
</div>
|
|
24232
24245
|
<div part="content">
|
|
24233
|
-
<div part="body"
|
|
24234
|
-
${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items"><slot></slot></div>`}
|
|
24246
|
+
<div part="body">
|
|
24247
|
+
${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
24248
|
</div>
|
|
24236
24249
|
</div>
|
|
24237
24250
|
<div part="footer">
|
|
@@ -24273,7 +24286,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24273
24286
|
data-state=${index === this.activeTab ? "active" : "hidden"}
|
|
24274
24287
|
data-index=${index}
|
|
24275
24288
|
>
|
|
24276
|
-
<div part="items">
|
|
24289
|
+
<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}>
|
|
24277
24290
|
<slot name=${`tab-${tab.id}`}></slot>
|
|
24278
24291
|
</div>
|
|
24279
24292
|
</div>
|
|
@@ -24368,12 +24381,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24368
24381
|
} catch {
|
|
24369
24382
|
}
|
|
24370
24383
|
fromPanel.setAttribute("data-state", "hidden");
|
|
24384
|
+
content.style.height = "auto";
|
|
24371
24385
|
const previousToState = toPanel.getAttribute("data-state");
|
|
24372
24386
|
toPanel.style.display = "block";
|
|
24373
24387
|
toPanel.style.visibility = "hidden";
|
|
24374
24388
|
toPanel.style.opacity = "0";
|
|
24375
|
-
void
|
|
24376
|
-
const endHeight =
|
|
24389
|
+
void content.offsetHeight;
|
|
24390
|
+
const endHeight = content.getBoundingClientRect().height;
|
|
24391
|
+
content.style.height = `${startHeight}px`;
|
|
24392
|
+
void content.offsetHeight;
|
|
24377
24393
|
if (startHeight !== endHeight) {
|
|
24378
24394
|
content.setAttribute("data-animating", "true");
|
|
24379
24395
|
void content.offsetHeight;
|