@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/index.js CHANGED
@@ -34134,20 +34134,27 @@ var init_panel = __esm({
34134
34134
  tag: "ease-panel",
34135
34135
  shadowMode: "open",
34136
34136
  styles: `
34137
- @property --top-fade {
34137
+ :host {
34138
+ display: block;
34139
+ box-sizing: border-box;
34140
+ }
34141
+
34142
+ @property --ease-panel-top-fade {
34138
34143
  syntax: "<length>";
34139
34144
  inherits: false;
34140
34145
  initial-value: 0px;
34141
34146
  }
34142
34147
 
34143
- @property --bottom-fade {
34148
+ @property --ease-panel-bottom-fade {
34144
34149
  syntax: "<length>";
34145
34150
  inherits: false;
34146
34151
  initial-value: 0px;
34147
34152
  }
34148
34153
 
34149
34154
  [part="section"] {
34150
- display: block;
34155
+ display: flex;
34156
+ flex-direction: column;
34157
+ max-height: inherit;
34151
34158
  width: 100%;
34152
34159
  max-width: var(--ease-panel-max-width);
34153
34160
  border-radius: var(--ease-panel-radius);
@@ -34284,9 +34291,10 @@ var init_panel = __esm({
34284
34291
 
34285
34292
  [part="content"] {
34286
34293
  display: block;
34294
+ flex: 1 1 auto;
34295
+ min-height: 0;
34287
34296
  width: 100%;
34288
34297
  box-sizing: border-box;
34289
- margin: auto;
34290
34298
  overflow: hidden;
34291
34299
  }
34292
34300
 
@@ -34295,18 +34303,10 @@ var init_panel = __esm({
34295
34303
  }
34296
34304
 
34297
34305
  [part="body"] {
34306
+ display: block;
34307
+ height: 100%;
34298
34308
  width: 100%;
34299
34309
  position: relative;
34300
- overflow-y: auto;
34301
- mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34302
- animation-name: scroll-fade;
34303
- animation-timeline: scroll(self y);
34304
- scroll-snap-type: y mandatory;
34305
- scrollbar-width: none;
34306
-
34307
- &::-webkit-scrollbar {
34308
- display: none;
34309
- }
34310
34310
  }
34311
34311
 
34312
34312
  @keyframes scroll-fade {
@@ -34332,6 +34332,7 @@ var init_panel = __esm({
34332
34332
 
34333
34333
  [part="tab-panel"][data-state="active"] {
34334
34334
  display: block;
34335
+ height: 100%;
34335
34336
  pointer-events: auto;
34336
34337
  }
34337
34338
 
@@ -34359,6 +34360,17 @@ var init_panel = __esm({
34359
34360
  grid-gap: var(--ease-panel-gap);
34360
34361
  box-sizing: border-box;
34361
34362
  width: 100%;
34363
+ max-height: 100%;
34364
+ overflow-y: auto;
34365
+ mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34366
+ animation-name: scroll-fade;
34367
+ animation-timeline: scroll(self y);
34368
+ scroll-snap-type: y mandatory;
34369
+ scrollbar-width: none;
34370
+
34371
+ &::-webkit-scrollbar {
34372
+ display: none;
34373
+ }
34362
34374
  }
34363
34375
  `
34364
34376
  }), _dec146 = Prop({
@@ -34501,8 +34513,8 @@ var init_panel = __esm({
34501
34513
  </div>
34502
34514
  </div>
34503
34515
  <div part="content">
34504
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
34505
- ${hasTabs ? this.#renderTabPanels() : html54`<div part="items"><slot></slot></div>`}
34516
+ <div part="body">
34517
+ ${hasTabs ? this.#renderTabPanels() : html54`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
34506
34518
  </div>
34507
34519
  </div>
34508
34520
  <div part="footer">
@@ -34544,7 +34556,7 @@ var init_panel = __esm({
34544
34556
  data-state=${index === this.activeTab ? "active" : "hidden"}
34545
34557
  data-index=${index}
34546
34558
  >
34547
- <div part="items">
34559
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
34548
34560
  <slot name=${`tab-${tab.id}`}></slot>
34549
34561
  </div>
34550
34562
  </div>
@@ -34639,12 +34651,15 @@ var init_panel = __esm({
34639
34651
  } catch {
34640
34652
  }
34641
34653
  fromPanel.setAttribute("data-state", "hidden");
34654
+ content.style.height = "auto";
34642
34655
  const previousToState = toPanel.getAttribute("data-state");
34643
34656
  toPanel.style.display = "block";
34644
34657
  toPanel.style.visibility = "hidden";
34645
34658
  toPanel.style.opacity = "0";
34646
- void toPanel.offsetHeight;
34647
- const endHeight = toPanel.getBoundingClientRect().height;
34659
+ void content.offsetHeight;
34660
+ const endHeight = content.getBoundingClientRect().height;
34661
+ content.style.height = `${startHeight}px`;
34662
+ void content.offsetHeight;
34648
34663
  if (startHeight !== endHeight) {
34649
34664
  content.setAttribute("data-animating", "true");
34650
34665
  void content.offsetHeight;
@@ -40623,7 +40638,6 @@ var _initProto20;
40623
40638
  var _Folder;
40624
40639
  _dec78 = Component({
40625
40640
  tag: "ease-folder",
40626
- shadowMode: "open",
40627
40641
  styles: `
40628
40642
  @property --top-fade {
40629
40643
  syntax: "<length>";
@@ -40656,6 +40670,7 @@ _dec78 = Component({
40656
40670
  :host {
40657
40671
  display: block;
40658
40672
  width: 100%;
40673
+ interpolate-size: allow-keywords;
40659
40674
  }
40660
40675
 
40661
40676
  [part="section"] {
@@ -40729,7 +40744,7 @@ _dec78 = Component({
40729
40744
  grid-gap: var(--ease-folder-gap);
40730
40745
  padding: var(--ease-folder-padding);
40731
40746
  overflow-y: auto;
40732
- overscroll-behavior: contain;
40747
+ overscroll-behavior: none;
40733
40748
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
40734
40749
  animation-name: scroll-fade;
40735
40750
  animation-timeline: scroll(self y);
@@ -40813,8 +40828,8 @@ var Folder = class extends (_HTMLElement24 = HTMLElement) {
40813
40828
  <ease-icon-chevron state=${this.open ? "up" : "down"}></ease-icon-chevron>
40814
40829
  </span>
40815
40830
  </div>
40816
- <div part="content" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
40817
- <div part="body">
40831
+ <div part="content">
40832
+ <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}>
40818
40833
  <slot></slot>
40819
40834
  </div>
40820
40835
  </div>