@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/elements.js CHANGED
@@ -9320,6 +9320,7 @@ _dec30 = Component({
9320
9320
  :host {
9321
9321
  display: block;
9322
9322
  width: 100%;
9323
+ interpolate-size: allow-keywords;
9323
9324
  }
9324
9325
 
9325
9326
  [part="section"] {
@@ -9393,7 +9394,7 @@ _dec30 = Component({
9393
9394
  grid-gap: var(--ease-folder-gap);
9394
9395
  padding: var(--ease-folder-padding);
9395
9396
  overflow-y: auto;
9396
- overscroll-behavior: contain;
9397
+ overscroll-behavior: none;
9397
9398
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9398
9399
  animation-name: scroll-fade;
9399
9400
  animation-timeline: scroll(self y);
@@ -23875,6 +23876,11 @@ _dec81 = Component({
23875
23876
  tag: "ease-panel",
23876
23877
  shadowMode: "open",
23877
23878
  styles: `
23879
+ :host {
23880
+ display: block;
23881
+ box-sizing: border-box;
23882
+ }
23883
+
23878
23884
  @property --ease-panel-top-fade {
23879
23885
  syntax: "<length>";
23880
23886
  inherits: false;
@@ -23888,7 +23894,9 @@ _dec81 = Component({
23888
23894
  }
23889
23895
 
23890
23896
  [part="section"] {
23891
- display: block;
23897
+ display: flex;
23898
+ flex-direction: column;
23899
+ max-height: inherit;
23892
23900
  width: 100%;
23893
23901
  max-width: var(--ease-panel-max-width);
23894
23902
  border-radius: var(--ease-panel-radius);
@@ -24025,9 +24033,10 @@ _dec81 = Component({
24025
24033
 
24026
24034
  [part="content"] {
24027
24035
  display: block;
24036
+ flex: 1 1 auto;
24037
+ min-height: 0;
24028
24038
  width: 100%;
24029
24039
  box-sizing: border-box;
24030
- margin: auto;
24031
24040
  overflow: hidden;
24032
24041
  }
24033
24042
 
@@ -24036,19 +24045,10 @@ _dec81 = Component({
24036
24045
  }
24037
24046
 
24038
24047
  [part="body"] {
24048
+ display: block;
24049
+ height: 100%;
24039
24050
  width: 100%;
24040
24051
  position: relative;
24041
- overflow-y: auto;
24042
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24043
- animation-name: scroll-fade;
24044
- animation-timeline: scroll(self y);
24045
- scroll-snap-type: y mandatory;
24046
- scrollbar-width: none;
24047
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
24048
-
24049
- &::-webkit-scrollbar {
24050
- display: none;
24051
- }
24052
24052
  }
24053
24053
 
24054
24054
  @keyframes scroll-fade {
@@ -24074,6 +24074,7 @@ _dec81 = Component({
24074
24074
 
24075
24075
  [part="tab-panel"][data-state="active"] {
24076
24076
  display: block;
24077
+ height: 100%;
24077
24078
  pointer-events: auto;
24078
24079
  }
24079
24080
 
@@ -24101,6 +24102,17 @@ _dec81 = Component({
24101
24102
  grid-gap: var(--ease-panel-gap);
24102
24103
  box-sizing: border-box;
24103
24104
  width: 100%;
24105
+ max-height: 100%;
24106
+ overflow-y: auto;
24107
+ mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24108
+ animation-name: scroll-fade;
24109
+ animation-timeline: scroll(self y);
24110
+ scroll-snap-type: y mandatory;
24111
+ scrollbar-width: none;
24112
+
24113
+ &::-webkit-scrollbar {
24114
+ display: none;
24115
+ }
24104
24116
  }
24105
24117
  `
24106
24118
  }), _dec124 = Prop({
@@ -24243,8 +24255,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24243
24255
  </div>
24244
24256
  </div>
24245
24257
  <div part="content">
24246
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
24247
- ${hasTabs ? this.#renderTabPanels() : html41`<div part="items"><slot></slot></div>`}
24258
+ <div part="body">
24259
+ ${hasTabs ? this.#renderTabPanels() : html41`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
24248
24260
  </div>
24249
24261
  </div>
24250
24262
  <div part="footer">
@@ -24286,7 +24298,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24286
24298
  data-state=${index === this.activeTab ? "active" : "hidden"}
24287
24299
  data-index=${index}
24288
24300
  >
24289
- <div part="items">
24301
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
24290
24302
  <slot name=${`tab-${tab.id}`}></slot>
24291
24303
  </div>
24292
24304
  </div>
@@ -24381,12 +24393,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24381
24393
  } catch {
24382
24394
  }
24383
24395
  fromPanel.setAttribute("data-state", "hidden");
24396
+ content.style.height = "auto";
24384
24397
  const previousToState = toPanel.getAttribute("data-state");
24385
24398
  toPanel.style.display = "block";
24386
24399
  toPanel.style.visibility = "hidden";
24387
24400
  toPanel.style.opacity = "0";
24388
- void toPanel.offsetHeight;
24389
- const endHeight = toPanel.getBoundingClientRect().height;
24401
+ void content.offsetHeight;
24402
+ const endHeight = content.getBoundingClientRect().height;
24403
+ content.style.height = `${startHeight}px`;
24404
+ void content.offsetHeight;
24390
24405
  if (startHeight !== endHeight) {
24391
24406
  content.setAttribute("data-animating", "true");
24392
24407
  void content.offsetHeight;