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