@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/index.cjs CHANGED
@@ -34147,6 +34147,11 @@ var init_panel = __esm({
34147
34147
  tag: "ease-panel",
34148
34148
  shadowMode: "open",
34149
34149
  styles: `
34150
+ :host {
34151
+ display: block;
34152
+ box-sizing: border-box;
34153
+ }
34154
+
34150
34155
  @property --ease-panel-top-fade {
34151
34156
  syntax: "<length>";
34152
34157
  inherits: false;
@@ -34160,7 +34165,9 @@ var init_panel = __esm({
34160
34165
  }
34161
34166
 
34162
34167
  [part="section"] {
34163
- display: block;
34168
+ display: flex;
34169
+ flex-direction: column;
34170
+ max-height: inherit;
34164
34171
  width: 100%;
34165
34172
  max-width: var(--ease-panel-max-width);
34166
34173
  border-radius: var(--ease-panel-radius);
@@ -34297,9 +34304,10 @@ var init_panel = __esm({
34297
34304
 
34298
34305
  [part="content"] {
34299
34306
  display: block;
34307
+ flex: 1 1 auto;
34308
+ min-height: 0;
34300
34309
  width: 100%;
34301
34310
  box-sizing: border-box;
34302
- margin: auto;
34303
34311
  overflow: hidden;
34304
34312
  }
34305
34313
 
@@ -34308,19 +34316,10 @@ var init_panel = __esm({
34308
34316
  }
34309
34317
 
34310
34318
  [part="body"] {
34319
+ display: block;
34320
+ height: 100%;
34311
34321
  width: 100%;
34312
34322
  position: relative;
34313
- overflow-y: auto;
34314
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34315
- animation-name: scroll-fade;
34316
- animation-timeline: scroll(self y);
34317
- scroll-snap-type: y mandatory;
34318
- scrollbar-width: none;
34319
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
34320
-
34321
- &::-webkit-scrollbar {
34322
- display: none;
34323
- }
34324
34323
  }
34325
34324
 
34326
34325
  @keyframes scroll-fade {
@@ -34346,6 +34345,7 @@ var init_panel = __esm({
34346
34345
 
34347
34346
  [part="tab-panel"][data-state="active"] {
34348
34347
  display: block;
34348
+ height: 100%;
34349
34349
  pointer-events: auto;
34350
34350
  }
34351
34351
 
@@ -34373,6 +34373,17 @@ var init_panel = __esm({
34373
34373
  grid-gap: var(--ease-panel-gap);
34374
34374
  box-sizing: border-box;
34375
34375
  width: 100%;
34376
+ max-height: 100%;
34377
+ overflow-y: auto;
34378
+ mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34379
+ animation-name: scroll-fade;
34380
+ animation-timeline: scroll(self y);
34381
+ scroll-snap-type: y mandatory;
34382
+ scrollbar-width: none;
34383
+
34384
+ &::-webkit-scrollbar {
34385
+ display: none;
34386
+ }
34376
34387
  }
34377
34388
  `
34378
34389
  }), _dec146 = Prop({
@@ -34515,8 +34526,8 @@ var init_panel = __esm({
34515
34526
  </div>
34516
34527
  </div>
34517
34528
  <div part="content">
34518
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
34519
- ${hasTabs ? this.#renderTabPanels() : import_lit_html56.html`<div part="items"><slot></slot></div>`}
34529
+ <div part="body">
34530
+ ${hasTabs ? this.#renderTabPanels() : import_lit_html56.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html56.nothing}><slot></slot></div>`}
34520
34531
  </div>
34521
34532
  </div>
34522
34533
  <div part="footer">
@@ -34558,7 +34569,7 @@ var init_panel = __esm({
34558
34569
  data-state=${index === this.activeTab ? "active" : "hidden"}
34559
34570
  data-index=${index}
34560
34571
  >
34561
- <div part="items">
34572
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html56.nothing}>
34562
34573
  <slot name=${`tab-${tab.id}`}></slot>
34563
34574
  </div>
34564
34575
  </div>
@@ -34653,12 +34664,15 @@ var init_panel = __esm({
34653
34664
  } catch {
34654
34665
  }
34655
34666
  fromPanel.setAttribute("data-state", "hidden");
34667
+ content.style.height = "auto";
34656
34668
  const previousToState = toPanel.getAttribute("data-state");
34657
34669
  toPanel.style.display = "block";
34658
34670
  toPanel.style.visibility = "hidden";
34659
34671
  toPanel.style.opacity = "0";
34660
- void toPanel.offsetHeight;
34661
- const endHeight = toPanel.getBoundingClientRect().height;
34672
+ void content.offsetHeight;
34673
+ const endHeight = content.getBoundingClientRect().height;
34674
+ content.style.height = `${startHeight}px`;
34675
+ void content.offsetHeight;
34662
34676
  if (startHeight !== endHeight) {
34663
34677
  content.setAttribute("data-animating", "true");
34664
34678
  void content.offsetHeight;
@@ -40775,6 +40789,7 @@ _dec78 = Component({
40775
40789
  :host {
40776
40790
  display: block;
40777
40791
  width: 100%;
40792
+ interpolate-size: allow-keywords;
40778
40793
  }
40779
40794
 
40780
40795
  [part="section"] {
@@ -40848,7 +40863,7 @@ _dec78 = Component({
40848
40863
  grid-gap: var(--ease-folder-gap);
40849
40864
  padding: var(--ease-folder-padding);
40850
40865
  overflow-y: auto;
40851
- overscroll-behavior: contain;
40866
+ overscroll-behavior: none;
40852
40867
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
40853
40868
  animation-name: scroll-fade;
40854
40869
  animation-timeline: scroll(self y);