@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.
@@ -9275,7 +9275,6 @@ var _initProto10;
9275
9275
  var _Folder;
9276
9276
  _dec30 = Component({
9277
9277
  tag: "ease-folder",
9278
- shadowMode: "open",
9279
9278
  styles: `
9280
9279
  @property --top-fade {
9281
9280
  syntax: "<length>";
@@ -9308,6 +9307,7 @@ _dec30 = Component({
9308
9307
  :host {
9309
9308
  display: block;
9310
9309
  width: 100%;
9310
+ interpolate-size: allow-keywords;
9311
9311
  }
9312
9312
 
9313
9313
  [part="section"] {
@@ -9381,7 +9381,7 @@ _dec30 = Component({
9381
9381
  grid-gap: var(--ease-folder-gap);
9382
9382
  padding: var(--ease-folder-padding);
9383
9383
  overflow-y: auto;
9384
- overscroll-behavior: contain;
9384
+ overscroll-behavior: none;
9385
9385
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9386
9386
  animation-name: scroll-fade;
9387
9387
  animation-timeline: scroll(self y);
@@ -9465,8 +9465,8 @@ var Folder = class extends (_HTMLElement12 = HTMLElement) {
9465
9465
  <ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
9466
9466
  </span>
9467
9467
  </div>
9468
- <div part="content" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9469
- <div part="body">
9468
+ <div part="content">
9469
+ <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9470
9470
  <slot></slot>
9471
9471
  </div>
9472
9472
  </div>
@@ -23863,20 +23863,27 @@ _dec81 = Component({
23863
23863
  tag: "ease-panel",
23864
23864
  shadowMode: "open",
23865
23865
  styles: `
23866
- @property --top-fade {
23866
+ :host {
23867
+ display: block;
23868
+ box-sizing: border-box;
23869
+ }
23870
+
23871
+ @property --ease-panel-top-fade {
23867
23872
  syntax: "<length>";
23868
23873
  inherits: false;
23869
23874
  initial-value: 0px;
23870
23875
  }
23871
23876
 
23872
- @property --bottom-fade {
23877
+ @property --ease-panel-bottom-fade {
23873
23878
  syntax: "<length>";
23874
23879
  inherits: false;
23875
23880
  initial-value: 0px;
23876
23881
  }
23877
23882
 
23878
23883
  [part="section"] {
23879
- display: block;
23884
+ display: flex;
23885
+ flex-direction: column;
23886
+ max-height: inherit;
23880
23887
  width: 100%;
23881
23888
  max-width: var(--ease-panel-max-width);
23882
23889
  border-radius: var(--ease-panel-radius);
@@ -24013,9 +24020,10 @@ _dec81 = Component({
24013
24020
 
24014
24021
  [part="content"] {
24015
24022
  display: block;
24023
+ flex: 1 1 auto;
24024
+ min-height: 0;
24016
24025
  width: 100%;
24017
24026
  box-sizing: border-box;
24018
- margin: auto;
24019
24027
  overflow: hidden;
24020
24028
  }
24021
24029
 
@@ -24024,18 +24032,10 @@ _dec81 = Component({
24024
24032
  }
24025
24033
 
24026
24034
  [part="body"] {
24035
+ display: block;
24036
+ height: 100%;
24027
24037
  width: 100%;
24028
24038
  position: relative;
24029
- overflow-y: auto;
24030
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24031
- animation-name: scroll-fade;
24032
- animation-timeline: scroll(self y);
24033
- scroll-snap-type: y mandatory;
24034
- scrollbar-width: none;
24035
-
24036
- &::-webkit-scrollbar {
24037
- display: none;
24038
- }
24039
24039
  }
24040
24040
 
24041
24041
  @keyframes scroll-fade {
@@ -24061,6 +24061,7 @@ _dec81 = Component({
24061
24061
 
24062
24062
  [part="tab-panel"][data-state="active"] {
24063
24063
  display: block;
24064
+ height: 100%;
24064
24065
  pointer-events: auto;
24065
24066
  }
24066
24067
 
@@ -24088,6 +24089,17 @@ _dec81 = Component({
24088
24089
  grid-gap: var(--ease-panel-gap);
24089
24090
  box-sizing: border-box;
24090
24091
  width: 100%;
24092
+ max-height: 100%;
24093
+ overflow-y: auto;
24094
+ mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24095
+ animation-name: scroll-fade;
24096
+ animation-timeline: scroll(self y);
24097
+ scroll-snap-type: y mandatory;
24098
+ scrollbar-width: none;
24099
+
24100
+ &::-webkit-scrollbar {
24101
+ display: none;
24102
+ }
24091
24103
  }
24092
24104
  `
24093
24105
  }), _dec124 = Prop({
@@ -24230,8 +24242,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24230
24242
  </div>
24231
24243
  </div>
24232
24244
  <div part="content">
24233
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
24234
- ${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items"><slot></slot></div>`}
24245
+ <div part="body">
24246
+ ${hasTabs ? this.#renderTabPanels() : import_lit_html42.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}><slot></slot></div>`}
24235
24247
  </div>
24236
24248
  </div>
24237
24249
  <div part="footer">
@@ -24273,7 +24285,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24273
24285
  data-state=${index === this.activeTab ? "active" : "hidden"}
24274
24286
  data-index=${index}
24275
24287
  >
24276
- <div part="items">
24288
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html42.nothing}>
24277
24289
  <slot name=${`tab-${tab.id}`}></slot>
24278
24290
  </div>
24279
24291
  </div>
@@ -24368,12 +24380,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24368
24380
  } catch {
24369
24381
  }
24370
24382
  fromPanel.setAttribute("data-state", "hidden");
24383
+ content.style.height = "auto";
24371
24384
  const previousToState = toPanel.getAttribute("data-state");
24372
24385
  toPanel.style.display = "block";
24373
24386
  toPanel.style.visibility = "hidden";
24374
24387
  toPanel.style.opacity = "0";
24375
- void toPanel.offsetHeight;
24376
- const endHeight = toPanel.getBoundingClientRect().height;
24388
+ void content.offsetHeight;
24389
+ const endHeight = content.getBoundingClientRect().height;
24390
+ content.style.height = `${startHeight}px`;
24391
+ void content.offsetHeight;
24377
24392
  if (startHeight !== endHeight) {
24378
24393
  content.setAttribute("data-animating", "true");
24379
24394
  void content.offsetHeight;