@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/register.js CHANGED
@@ -9273,7 +9273,6 @@ var _initProto10;
9273
9273
  var _Folder;
9274
9274
  _dec30 = Component({
9275
9275
  tag: "ease-folder",
9276
- shadowMode: "open",
9277
9276
  styles: `
9278
9277
  @property --top-fade {
9279
9278
  syntax: "<length>";
@@ -9306,6 +9305,7 @@ _dec30 = Component({
9306
9305
  :host {
9307
9306
  display: block;
9308
9307
  width: 100%;
9308
+ interpolate-size: allow-keywords;
9309
9309
  }
9310
9310
 
9311
9311
  [part="section"] {
@@ -9379,7 +9379,7 @@ _dec30 = Component({
9379
9379
  grid-gap: var(--ease-folder-gap);
9380
9380
  padding: var(--ease-folder-padding);
9381
9381
  overflow-y: auto;
9382
- overscroll-behavior: contain;
9382
+ overscroll-behavior: none;
9383
9383
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9384
9384
  animation-name: scroll-fade;
9385
9385
  animation-timeline: scroll(self y);
@@ -9463,8 +9463,8 @@ var Folder = class extends (_HTMLElement12 = HTMLElement) {
9463
9463
  <ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
9464
9464
  </span>
9465
9465
  </div>
9466
- <div part="content" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9467
- <div part="body">
9466
+ <div part="content">
9467
+ <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9468
9468
  <slot></slot>
9469
9469
  </div>
9470
9470
  </div>
@@ -23861,20 +23861,27 @@ _dec81 = Component({
23861
23861
  tag: "ease-panel",
23862
23862
  shadowMode: "open",
23863
23863
  styles: `
23864
- @property --top-fade {
23864
+ :host {
23865
+ display: block;
23866
+ box-sizing: border-box;
23867
+ }
23868
+
23869
+ @property --ease-panel-top-fade {
23865
23870
  syntax: "<length>";
23866
23871
  inherits: false;
23867
23872
  initial-value: 0px;
23868
23873
  }
23869
23874
 
23870
- @property --bottom-fade {
23875
+ @property --ease-panel-bottom-fade {
23871
23876
  syntax: "<length>";
23872
23877
  inherits: false;
23873
23878
  initial-value: 0px;
23874
23879
  }
23875
23880
 
23876
23881
  [part="section"] {
23877
- display: block;
23882
+ display: flex;
23883
+ flex-direction: column;
23884
+ max-height: inherit;
23878
23885
  width: 100%;
23879
23886
  max-width: var(--ease-panel-max-width);
23880
23887
  border-radius: var(--ease-panel-radius);
@@ -24011,9 +24018,10 @@ _dec81 = Component({
24011
24018
 
24012
24019
  [part="content"] {
24013
24020
  display: block;
24021
+ flex: 1 1 auto;
24022
+ min-height: 0;
24014
24023
  width: 100%;
24015
24024
  box-sizing: border-box;
24016
- margin: auto;
24017
24025
  overflow: hidden;
24018
24026
  }
24019
24027
 
@@ -24022,18 +24030,10 @@ _dec81 = Component({
24022
24030
  }
24023
24031
 
24024
24032
  [part="body"] {
24033
+ display: block;
24034
+ height: 100%;
24025
24035
  width: 100%;
24026
24036
  position: relative;
24027
- overflow-y: auto;
24028
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24029
- animation-name: scroll-fade;
24030
- animation-timeline: scroll(self y);
24031
- scroll-snap-type: y mandatory;
24032
- scrollbar-width: none;
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;