@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/elements.cjs
CHANGED
|
@@ -4016,11 +4016,11 @@ _dec10 = Component({
|
|
|
4016
4016
|
--ease-dropdown-panel-shadow,
|
|
4017
4017
|
0 5px 20px 0 var(--color-black-15),
|
|
4018
4018
|
0 1px 4px 0 var(--color-black-15),
|
|
4019
|
-
0 0 0
|
|
4019
|
+
0 0 0 .5px var(--color-white-4) inset,
|
|
4020
4020
|
0 1px 0 0 var(--color-white-4) inset
|
|
4021
4021
|
);
|
|
4022
4022
|
background-clip: padding-box;
|
|
4023
|
-
border:
|
|
4023
|
+
border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
|
|
4024
4024
|
box-sizing: border-box;
|
|
4025
4025
|
padding: var(--ease-dropdown-panel-padding, 4px);
|
|
4026
4026
|
}
|
|
@@ -4038,7 +4038,7 @@ _dec10 = Component({
|
|
|
4038
4038
|
}
|
|
4039
4039
|
|
|
4040
4040
|
[part="content"] ::slotted(h4) {
|
|
4041
|
-
margin: 4px 0
|
|
4041
|
+
margin: 4px 0 !important;
|
|
4042
4042
|
font-size: var(--ease-dropdown-group-label-font-size, 11px);
|
|
4043
4043
|
line-height: 1;
|
|
4044
4044
|
padding: var(--ease-dropdown-group-label-padding, 0 8px);
|
|
@@ -8876,6 +8876,7 @@ _dec29 = Component({
|
|
|
8876
8876
|
|
|
8877
8877
|
[part="field"] {
|
|
8878
8878
|
scroll-snap-align: start;
|
|
8879
|
+
scroll-margin-top: 8px;
|
|
8879
8880
|
display: grid;
|
|
8880
8881
|
grid-template-columns: var(--ease-field-label-width, 36%) auto;
|
|
8881
8882
|
column-gap: var(--ease-field-column-gap, 12px);
|
|
@@ -9397,6 +9398,7 @@ _dec30 = Component({
|
|
|
9397
9398
|
:host {
|
|
9398
9399
|
display: block;
|
|
9399
9400
|
width: 100%;
|
|
9401
|
+
interpolate-size: allow-keywords;
|
|
9400
9402
|
}
|
|
9401
9403
|
|
|
9402
9404
|
[part="section"] {
|
|
@@ -9470,7 +9472,7 @@ _dec30 = Component({
|
|
|
9470
9472
|
grid-gap: var(--ease-folder-gap);
|
|
9471
9473
|
padding: var(--ease-folder-padding);
|
|
9472
9474
|
overflow-y: auto;
|
|
9473
|
-
overscroll-behavior:
|
|
9475
|
+
overscroll-behavior: none;
|
|
9474
9476
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
9475
9477
|
animation-name: scroll-fade;
|
|
9476
9478
|
animation-timeline: scroll(self y);
|
|
@@ -23952,6 +23954,11 @@ _dec81 = Component({
|
|
|
23952
23954
|
tag: "ease-panel",
|
|
23953
23955
|
shadowMode: "open",
|
|
23954
23956
|
styles: `
|
|
23957
|
+
:host {
|
|
23958
|
+
display: block;
|
|
23959
|
+
box-sizing: border-box;
|
|
23960
|
+
}
|
|
23961
|
+
|
|
23955
23962
|
@property --ease-panel-top-fade {
|
|
23956
23963
|
syntax: "<length>";
|
|
23957
23964
|
inherits: false;
|
|
@@ -23965,7 +23972,9 @@ _dec81 = Component({
|
|
|
23965
23972
|
}
|
|
23966
23973
|
|
|
23967
23974
|
[part="section"] {
|
|
23968
|
-
display:
|
|
23975
|
+
display: flex;
|
|
23976
|
+
flex-direction: column;
|
|
23977
|
+
max-height: inherit;
|
|
23969
23978
|
width: 100%;
|
|
23970
23979
|
max-width: var(--ease-panel-max-width);
|
|
23971
23980
|
border-radius: var(--ease-panel-radius);
|
|
@@ -24102,32 +24111,34 @@ _dec81 = Component({
|
|
|
24102
24111
|
|
|
24103
24112
|
[part="content"] {
|
|
24104
24113
|
display: block;
|
|
24114
|
+
flex: 1 1 auto;
|
|
24115
|
+
min-height: 0;
|
|
24105
24116
|
width: 100%;
|
|
24106
24117
|
box-sizing: border-box;
|
|
24107
|
-
margin: auto;
|
|
24108
|
-
overflow: hidden;
|
|
24109
|
-
}
|
|
24110
|
-
|
|
24111
|
-
[part="content"][data-animating="true"] {
|
|
24112
|
-
transition: height 200ms cubic-bezier(.25, 0, .5, 1);
|
|
24113
|
-
}
|
|
24114
|
-
|
|
24115
|
-
[part="body"] {
|
|
24116
|
-
width: 100%;
|
|
24117
|
-
position: relative;
|
|
24118
24118
|
overflow-y: auto;
|
|
24119
|
+
overflow-x: hidden;
|
|
24119
24120
|
mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
|
|
24120
24121
|
animation-name: scroll-fade;
|
|
24121
24122
|
animation-timeline: scroll(self y);
|
|
24122
|
-
scroll-snap-type: y
|
|
24123
|
+
scroll-snap-type: y proximity;
|
|
24123
24124
|
scrollbar-width: none;
|
|
24124
|
-
max-height: calc(100dvh - 32px - var(--ease-panel-padding));
|
|
24125
24125
|
|
|
24126
24126
|
&::-webkit-scrollbar {
|
|
24127
24127
|
display: none;
|
|
24128
24128
|
}
|
|
24129
24129
|
}
|
|
24130
24130
|
|
|
24131
|
+
[part="content"][data-animating="true"] {
|
|
24132
|
+
transition: height 200ms cubic-bezier(.25, 0, .5, 1);
|
|
24133
|
+
}
|
|
24134
|
+
|
|
24135
|
+
[part="body"] {
|
|
24136
|
+
display: block;
|
|
24137
|
+
height: 100%;
|
|
24138
|
+
width: 100%;
|
|
24139
|
+
position: relative;
|
|
24140
|
+
}
|
|
24141
|
+
|
|
24131
24142
|
@keyframes scroll-fade {
|
|
24132
24143
|
0% {
|
|
24133
24144
|
--top-fade: 0px;
|
|
@@ -24151,6 +24162,7 @@ _dec81 = Component({
|
|
|
24151
24162
|
|
|
24152
24163
|
[part="tab-panel"][data-state="active"] {
|
|
24153
24164
|
display: block;
|
|
24165
|
+
height: 100%;
|
|
24154
24166
|
pointer-events: auto;
|
|
24155
24167
|
}
|
|
24156
24168
|
|
|
@@ -24178,6 +24190,7 @@ _dec81 = Component({
|
|
|
24178
24190
|
grid-gap: var(--ease-panel-gap);
|
|
24179
24191
|
box-sizing: border-box;
|
|
24180
24192
|
width: 100%;
|
|
24193
|
+
max-height: 100%;
|
|
24181
24194
|
}
|
|
24182
24195
|
`
|
|
24183
24196
|
}), _dec124 = Prop({
|
|
@@ -24320,8 +24333,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24320
24333
|
</div>
|
|
24321
24334
|
</div>
|
|
24322
24335
|
<div part="content">
|
|
24323
|
-
<div part="body"
|
|
24324
|
-
${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items"><slot></slot></div>`}
|
|
24336
|
+
<div part="body">
|
|
24337
|
+
${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}><slot></slot></div>`}
|
|
24325
24338
|
</div>
|
|
24326
24339
|
</div>
|
|
24327
24340
|
<div part="footer">
|
|
@@ -24363,7 +24376,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24363
24376
|
data-state=${index === this.activeTab ? "active" : "hidden"}
|
|
24364
24377
|
data-index=${index}
|
|
24365
24378
|
>
|
|
24366
|
-
<div part="items">
|
|
24379
|
+
<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}>
|
|
24367
24380
|
<slot name=${`tab-${tab.id}`}></slot>
|
|
24368
24381
|
</div>
|
|
24369
24382
|
</div>
|
|
@@ -24458,12 +24471,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
|
|
|
24458
24471
|
} catch {
|
|
24459
24472
|
}
|
|
24460
24473
|
fromPanel.setAttribute("data-state", "hidden");
|
|
24474
|
+
content.style.height = "auto";
|
|
24461
24475
|
const previousToState = toPanel.getAttribute("data-state");
|
|
24462
24476
|
toPanel.style.display = "block";
|
|
24463
24477
|
toPanel.style.visibility = "hidden";
|
|
24464
24478
|
toPanel.style.opacity = "0";
|
|
24465
|
-
void
|
|
24466
|
-
const endHeight =
|
|
24479
|
+
void content.offsetHeight;
|
|
24480
|
+
const endHeight = content.getBoundingClientRect().height;
|
|
24481
|
+
content.style.height = `${startHeight}px`;
|
|
24482
|
+
void content.offsetHeight;
|
|
24467
24483
|
if (startHeight !== endHeight) {
|
|
24468
24484
|
content.setAttribute("data-animating", "true");
|
|
24469
24485
|
void content.offsetHeight;
|