@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.
@@ -9397,6 +9397,7 @@ _dec30 = Component({
9397
9397
  :host {
9398
9398
  display: block;
9399
9399
  width: 100%;
9400
+ interpolate-size: allow-keywords;
9400
9401
  }
9401
9402
 
9402
9403
  [part="section"] {
@@ -9470,7 +9471,7 @@ _dec30 = Component({
9470
9471
  grid-gap: var(--ease-folder-gap);
9471
9472
  padding: var(--ease-folder-padding);
9472
9473
  overflow-y: auto;
9473
- overscroll-behavior: contain;
9474
+ overscroll-behavior: none;
9474
9475
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9475
9476
  animation-name: scroll-fade;
9476
9477
  animation-timeline: scroll(self y);
@@ -23952,6 +23953,11 @@ _dec81 = Component({
23952
23953
  tag: "ease-panel",
23953
23954
  shadowMode: "open",
23954
23955
  styles: `
23956
+ :host {
23957
+ display: block;
23958
+ box-sizing: border-box;
23959
+ }
23960
+
23955
23961
  @property --ease-panel-top-fade {
23956
23962
  syntax: "<length>";
23957
23963
  inherits: false;
@@ -23965,7 +23971,9 @@ _dec81 = Component({
23965
23971
  }
23966
23972
 
23967
23973
  [part="section"] {
23968
- display: block;
23974
+ display: flex;
23975
+ flex-direction: column;
23976
+ max-height: inherit;
23969
23977
  width: 100%;
23970
23978
  max-width: var(--ease-panel-max-width);
23971
23979
  border-radius: var(--ease-panel-radius);
@@ -24102,9 +24110,10 @@ _dec81 = Component({
24102
24110
 
24103
24111
  [part="content"] {
24104
24112
  display: block;
24113
+ flex: 1 1 auto;
24114
+ min-height: 0;
24105
24115
  width: 100%;
24106
24116
  box-sizing: border-box;
24107
- margin: auto;
24108
24117
  overflow: hidden;
24109
24118
  }
24110
24119
 
@@ -24113,19 +24122,10 @@ _dec81 = Component({
24113
24122
  }
24114
24123
 
24115
24124
  [part="body"] {
24125
+ display: block;
24126
+ height: 100%;
24116
24127
  width: 100%;
24117
24128
  position: relative;
24118
- overflow-y: auto;
24119
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24120
- animation-name: scroll-fade;
24121
- animation-timeline: scroll(self y);
24122
- scroll-snap-type: y mandatory;
24123
- scrollbar-width: none;
24124
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
24125
-
24126
- &::-webkit-scrollbar {
24127
- display: none;
24128
- }
24129
24129
  }
24130
24130
 
24131
24131
  @keyframes scroll-fade {
@@ -24151,6 +24151,7 @@ _dec81 = Component({
24151
24151
 
24152
24152
  [part="tab-panel"][data-state="active"] {
24153
24153
  display: block;
24154
+ height: 100%;
24154
24155
  pointer-events: auto;
24155
24156
  }
24156
24157
 
@@ -24178,6 +24179,17 @@ _dec81 = Component({
24178
24179
  grid-gap: var(--ease-panel-gap);
24179
24180
  box-sizing: border-box;
24180
24181
  width: 100%;
24182
+ max-height: 100%;
24183
+ overflow-y: auto;
24184
+ mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24185
+ animation-name: scroll-fade;
24186
+ animation-timeline: scroll(self y);
24187
+ scroll-snap-type: y mandatory;
24188
+ scrollbar-width: none;
24189
+
24190
+ &::-webkit-scrollbar {
24191
+ display: none;
24192
+ }
24181
24193
  }
24182
24194
  `
24183
24195
  }), _dec124 = Prop({
@@ -24320,8 +24332,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24320
24332
  </div>
24321
24333
  </div>
24322
24334
  <div part="content">
24323
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
24324
- ${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items"><slot></slot></div>`}
24335
+ <div part="body">
24336
+ ${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
24337
  </div>
24326
24338
  </div>
24327
24339
  <div part="footer">
@@ -24363,7 +24375,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24363
24375
  data-state=${index === this.activeTab ? "active" : "hidden"}
24364
24376
  data-index=${index}
24365
24377
  >
24366
- <div part="items">
24378
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}>
24367
24379
  <slot name=${`tab-${tab.id}`}></slot>
24368
24380
  </div>
24369
24381
  </div>
@@ -24458,12 +24470,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24458
24470
  } catch {
24459
24471
  }
24460
24472
  fromPanel.setAttribute("data-state", "hidden");
24473
+ content.style.height = "auto";
24461
24474
  const previousToState = toPanel.getAttribute("data-state");
24462
24475
  toPanel.style.display = "block";
24463
24476
  toPanel.style.visibility = "hidden";
24464
24477
  toPanel.style.opacity = "0";
24465
- void toPanel.offsetHeight;
24466
- const endHeight = toPanel.getBoundingClientRect().height;
24478
+ void content.offsetHeight;
24479
+ const endHeight = content.getBoundingClientRect().height;
24480
+ content.style.height = `${startHeight}px`;
24481
+ void content.offsetHeight;
24467
24482
  if (startHeight !== endHeight) {
24468
24483
  content.setAttribute("data-animating", "true");
24469
24484
  void content.offsetHeight;