@easemate/web-kit 0.5.1 → 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
@@ -9288,7 +9288,6 @@ var _initProto10;
9288
9288
  var _Folder;
9289
9289
  _dec30 = Component({
9290
9290
  tag: "ease-folder",
9291
- shadowMode: "open",
9292
9291
  styles: `
9293
9292
  @property --top-fade {
9294
9293
  syntax: "<length>";
@@ -9321,6 +9320,7 @@ _dec30 = Component({
9321
9320
  :host {
9322
9321
  display: block;
9323
9322
  width: 100%;
9323
+ interpolate-size: allow-keywords;
9324
9324
  }
9325
9325
 
9326
9326
  [part="section"] {
@@ -9394,7 +9394,7 @@ _dec30 = Component({
9394
9394
  grid-gap: var(--ease-folder-gap);
9395
9395
  padding: var(--ease-folder-padding);
9396
9396
  overflow-y: auto;
9397
- overscroll-behavior: contain;
9397
+ overscroll-behavior: none;
9398
9398
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9399
9399
  animation-name: scroll-fade;
9400
9400
  animation-timeline: scroll(self y);
@@ -9478,8 +9478,8 @@ var Folder = class extends (_HTMLElement12 = HTMLElement) {
9478
9478
  <ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
9479
9479
  </span>
9480
9480
  </div>
9481
- <div part="content" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9482
- <div part="body">
9481
+ <div part="content">
9482
+ <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9483
9483
  <slot></slot>
9484
9484
  </div>
9485
9485
  </div>
@@ -23876,20 +23876,27 @@ _dec81 = Component({
23876
23876
  tag: "ease-panel",
23877
23877
  shadowMode: "open",
23878
23878
  styles: `
23879
- @property --top-fade {
23879
+ :host {
23880
+ display: block;
23881
+ box-sizing: border-box;
23882
+ }
23883
+
23884
+ @property --ease-panel-top-fade {
23880
23885
  syntax: "<length>";
23881
23886
  inherits: false;
23882
23887
  initial-value: 0px;
23883
23888
  }
23884
23889
 
23885
- @property --bottom-fade {
23890
+ @property --ease-panel-bottom-fade {
23886
23891
  syntax: "<length>";
23887
23892
  inherits: false;
23888
23893
  initial-value: 0px;
23889
23894
  }
23890
23895
 
23891
23896
  [part="section"] {
23892
- display: block;
23897
+ display: flex;
23898
+ flex-direction: column;
23899
+ max-height: inherit;
23893
23900
  width: 100%;
23894
23901
  max-width: var(--ease-panel-max-width);
23895
23902
  border-radius: var(--ease-panel-radius);
@@ -24026,9 +24033,10 @@ _dec81 = Component({
24026
24033
 
24027
24034
  [part="content"] {
24028
24035
  display: block;
24036
+ flex: 1 1 auto;
24037
+ min-height: 0;
24029
24038
  width: 100%;
24030
24039
  box-sizing: border-box;
24031
- margin: auto;
24032
24040
  overflow: hidden;
24033
24041
  }
24034
24042
 
@@ -24037,18 +24045,10 @@ _dec81 = Component({
24037
24045
  }
24038
24046
 
24039
24047
  [part="body"] {
24048
+ display: block;
24049
+ height: 100%;
24040
24050
  width: 100%;
24041
24051
  position: relative;
24042
- overflow-y: auto;
24043
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24044
- animation-name: scroll-fade;
24045
- animation-timeline: scroll(self y);
24046
- scroll-snap-type: y mandatory;
24047
- scrollbar-width: none;
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;