@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.
@@ -9365,7 +9365,6 @@ var _initProto10;
9365
9365
  var _Folder;
9366
9366
  _dec30 = Component({
9367
9367
  tag: "ease-folder",
9368
- shadowMode: "open",
9369
9368
  styles: `
9370
9369
  @property --top-fade {
9371
9370
  syntax: "<length>";
@@ -9398,6 +9397,7 @@ _dec30 = Component({
9398
9397
  :host {
9399
9398
  display: block;
9400
9399
  width: 100%;
9400
+ interpolate-size: allow-keywords;
9401
9401
  }
9402
9402
 
9403
9403
  [part="section"] {
@@ -9471,7 +9471,7 @@ _dec30 = Component({
9471
9471
  grid-gap: var(--ease-folder-gap);
9472
9472
  padding: var(--ease-folder-padding);
9473
9473
  overflow-y: auto;
9474
- overscroll-behavior: contain;
9474
+ overscroll-behavior: none;
9475
9475
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9476
9476
  animation-name: scroll-fade;
9477
9477
  animation-timeline: scroll(self y);
@@ -9555,8 +9555,8 @@ var Folder = class extends (_HTMLElement12 = HTMLElement) {
9555
9555
  <ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
9556
9556
  </span>
9557
9557
  </div>
9558
- <div part="content" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9559
- <div part="body">
9558
+ <div part="content">
9559
+ <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
9560
9560
  <slot></slot>
9561
9561
  </div>
9562
9562
  </div>
@@ -23953,20 +23953,27 @@ _dec81 = Component({
23953
23953
  tag: "ease-panel",
23954
23954
  shadowMode: "open",
23955
23955
  styles: `
23956
- @property --top-fade {
23956
+ :host {
23957
+ display: block;
23958
+ box-sizing: border-box;
23959
+ }
23960
+
23961
+ @property --ease-panel-top-fade {
23957
23962
  syntax: "<length>";
23958
23963
  inherits: false;
23959
23964
  initial-value: 0px;
23960
23965
  }
23961
23966
 
23962
- @property --bottom-fade {
23967
+ @property --ease-panel-bottom-fade {
23963
23968
  syntax: "<length>";
23964
23969
  inherits: false;
23965
23970
  initial-value: 0px;
23966
23971
  }
23967
23972
 
23968
23973
  [part="section"] {
23969
- display: block;
23974
+ display: flex;
23975
+ flex-direction: column;
23976
+ max-height: inherit;
23970
23977
  width: 100%;
23971
23978
  max-width: var(--ease-panel-max-width);
23972
23979
  border-radius: var(--ease-panel-radius);
@@ -24103,9 +24110,10 @@ _dec81 = Component({
24103
24110
 
24104
24111
  [part="content"] {
24105
24112
  display: block;
24113
+ flex: 1 1 auto;
24114
+ min-height: 0;
24106
24115
  width: 100%;
24107
24116
  box-sizing: border-box;
24108
- margin: auto;
24109
24117
  overflow: hidden;
24110
24118
  }
24111
24119
 
@@ -24114,18 +24122,10 @@ _dec81 = Component({
24114
24122
  }
24115
24123
 
24116
24124
  [part="body"] {
24125
+ display: block;
24126
+ height: 100%;
24117
24127
  width: 100%;
24118
24128
  position: relative;
24119
- overflow-y: auto;
24120
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24121
- animation-name: scroll-fade;
24122
- animation-timeline: scroll(self y);
24123
- scroll-snap-type: y mandatory;
24124
- scrollbar-width: none;
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;