@easemate/web-kit 0.5.2 → 0.5.4

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
@@ -15092,11 +15092,11 @@ var init_dropdown = __esm({
15092
15092
  --ease-dropdown-panel-shadow,
15093
15093
  0 5px 20px 0 var(--color-black-15),
15094
15094
  0 1px 4px 0 var(--color-black-15),
15095
- 0 0 0 1px var(--color-white-4) inset,
15095
+ 0 0 0 .5px var(--color-white-4) inset,
15096
15096
  0 1px 0 0 var(--color-white-4) inset
15097
15097
  );
15098
15098
  background-clip: padding-box;
15099
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
15099
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
15100
15100
  box-sizing: border-box;
15101
15101
  padding: var(--ease-dropdown-panel-padding, 4px);
15102
15102
  }
@@ -15114,7 +15114,7 @@ var init_dropdown = __esm({
15114
15114
  }
15115
15115
 
15116
15116
  [part="content"] ::slotted(h4) {
15117
- margin: 4px 0 8px 0 !important;
15117
+ margin: 4px 0 !important;
15118
15118
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
15119
15119
  line-height: 1;
15120
15120
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -19984,6 +19984,7 @@ var init_field = __esm({
19984
19984
 
19985
19985
  [part="field"] {
19986
19986
  scroll-snap-align: start;
19987
+ scroll-margin-top: 8px;
19987
19988
  display: grid;
19988
19989
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
19989
19990
  column-gap: var(--ease-field-column-gap, 12px);
@@ -34134,6 +34135,11 @@ var init_panel = __esm({
34134
34135
  tag: "ease-panel",
34135
34136
  shadowMode: "open",
34136
34137
  styles: `
34138
+ :host {
34139
+ display: block;
34140
+ box-sizing: border-box;
34141
+ }
34142
+
34137
34143
  @property --ease-panel-top-fade {
34138
34144
  syntax: "<length>";
34139
34145
  inherits: false;
@@ -34147,7 +34153,9 @@ var init_panel = __esm({
34147
34153
  }
34148
34154
 
34149
34155
  [part="section"] {
34150
- display: block;
34156
+ display: flex;
34157
+ flex-direction: column;
34158
+ max-height: inherit;
34151
34159
  width: 100%;
34152
34160
  max-width: var(--ease-panel-max-width);
34153
34161
  border-radius: var(--ease-panel-radius);
@@ -34284,32 +34292,34 @@ var init_panel = __esm({
34284
34292
 
34285
34293
  [part="content"] {
34286
34294
  display: block;
34295
+ flex: 1 1 auto;
34296
+ min-height: 0;
34287
34297
  width: 100%;
34288
34298
  box-sizing: border-box;
34289
- margin: auto;
34290
- overflow: hidden;
34291
- }
34292
-
34293
- [part="content"][data-animating="true"] {
34294
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
34295
- }
34296
-
34297
- [part="body"] {
34298
- width: 100%;
34299
- position: relative;
34300
34299
  overflow-y: auto;
34300
+ overflow-x: hidden;
34301
34301
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34302
34302
  animation-name: scroll-fade;
34303
34303
  animation-timeline: scroll(self y);
34304
- scroll-snap-type: y mandatory;
34304
+ scroll-snap-type: y proximity;
34305
34305
  scrollbar-width: none;
34306
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
34307
34306
 
34308
34307
  &::-webkit-scrollbar {
34309
34308
  display: none;
34310
34309
  }
34311
34310
  }
34312
34311
 
34312
+ [part="content"][data-animating="true"] {
34313
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
34314
+ }
34315
+
34316
+ [part="body"] {
34317
+ display: block;
34318
+ height: 100%;
34319
+ width: 100%;
34320
+ position: relative;
34321
+ }
34322
+
34313
34323
  @keyframes scroll-fade {
34314
34324
  0% {
34315
34325
  --top-fade: 0px;
@@ -34333,6 +34343,7 @@ var init_panel = __esm({
34333
34343
 
34334
34344
  [part="tab-panel"][data-state="active"] {
34335
34345
  display: block;
34346
+ height: 100%;
34336
34347
  pointer-events: auto;
34337
34348
  }
34338
34349
 
@@ -34360,6 +34371,7 @@ var init_panel = __esm({
34360
34371
  grid-gap: var(--ease-panel-gap);
34361
34372
  box-sizing: border-box;
34362
34373
  width: 100%;
34374
+ max-height: 100%;
34363
34375
  }
34364
34376
  `
34365
34377
  }), _dec146 = Prop({
@@ -34502,8 +34514,8 @@ var init_panel = __esm({
34502
34514
  </div>
34503
34515
  </div>
34504
34516
  <div part="content">
34505
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
34506
- ${hasTabs ? this.#renderTabPanels() : html54`<div part="items"><slot></slot></div>`}
34517
+ <div part="body">
34518
+ ${hasTabs ? this.#renderTabPanels() : html54`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
34507
34519
  </div>
34508
34520
  </div>
34509
34521
  <div part="footer">
@@ -34545,7 +34557,7 @@ var init_panel = __esm({
34545
34557
  data-state=${index === this.activeTab ? "active" : "hidden"}
34546
34558
  data-index=${index}
34547
34559
  >
34548
- <div part="items">
34560
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
34549
34561
  <slot name=${`tab-${tab.id}`}></slot>
34550
34562
  </div>
34551
34563
  </div>
@@ -34640,12 +34652,15 @@ var init_panel = __esm({
34640
34652
  } catch {
34641
34653
  }
34642
34654
  fromPanel.setAttribute("data-state", "hidden");
34655
+ content.style.height = "auto";
34643
34656
  const previousToState = toPanel.getAttribute("data-state");
34644
34657
  toPanel.style.display = "block";
34645
34658
  toPanel.style.visibility = "hidden";
34646
34659
  toPanel.style.opacity = "0";
34647
- void toPanel.offsetHeight;
34648
- const endHeight = toPanel.getBoundingClientRect().height;
34660
+ void content.offsetHeight;
34661
+ const endHeight = content.getBoundingClientRect().height;
34662
+ content.style.height = `${startHeight}px`;
34663
+ void content.offsetHeight;
34649
34664
  if (startHeight !== endHeight) {
34650
34665
  content.setAttribute("data-animating", "true");
34651
34666
  void content.offsetHeight;
@@ -40656,6 +40671,7 @@ _dec78 = Component({
40656
40671
  :host {
40657
40672
  display: block;
40658
40673
  width: 100%;
40674
+ interpolate-size: allow-keywords;
40659
40675
  }
40660
40676
 
40661
40677
  [part="section"] {
@@ -40729,7 +40745,7 @@ _dec78 = Component({
40729
40745
  grid-gap: var(--ease-folder-gap);
40730
40746
  padding: var(--ease-folder-padding);
40731
40747
  overflow-y: auto;
40732
- overscroll-behavior: contain;
40748
+ overscroll-behavior: none;
40733
40749
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
40734
40750
  animation-name: scroll-fade;
40735
40751
  animation-timeline: scroll(self y);