@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/elements.js CHANGED
@@ -3939,11 +3939,11 @@ _dec10 = Component({
3939
3939
  --ease-dropdown-panel-shadow,
3940
3940
  0 5px 20px 0 var(--color-black-15),
3941
3941
  0 1px 4px 0 var(--color-black-15),
3942
- 0 0 0 1px var(--color-white-4) inset,
3942
+ 0 0 0 .5px var(--color-white-4) inset,
3943
3943
  0 1px 0 0 var(--color-white-4) inset
3944
3944
  );
3945
3945
  background-clip: padding-box;
3946
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
3946
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
3947
3947
  box-sizing: border-box;
3948
3948
  padding: var(--ease-dropdown-panel-padding, 4px);
3949
3949
  }
@@ -3961,7 +3961,7 @@ _dec10 = Component({
3961
3961
  }
3962
3962
 
3963
3963
  [part="content"] ::slotted(h4) {
3964
- margin: 4px 0 8px 0 !important;
3964
+ margin: 4px 0 !important;
3965
3965
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
3966
3966
  line-height: 1;
3967
3967
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -8799,6 +8799,7 @@ _dec29 = Component({
8799
8799
 
8800
8800
  [part="field"] {
8801
8801
  scroll-snap-align: start;
8802
+ scroll-margin-top: 8px;
8802
8803
  display: grid;
8803
8804
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
8804
8805
  column-gap: var(--ease-field-column-gap, 12px);
@@ -9320,6 +9321,7 @@ _dec30 = Component({
9320
9321
  :host {
9321
9322
  display: block;
9322
9323
  width: 100%;
9324
+ interpolate-size: allow-keywords;
9323
9325
  }
9324
9326
 
9325
9327
  [part="section"] {
@@ -9393,7 +9395,7 @@ _dec30 = Component({
9393
9395
  grid-gap: var(--ease-folder-gap);
9394
9396
  padding: var(--ease-folder-padding);
9395
9397
  overflow-y: auto;
9396
- overscroll-behavior: contain;
9398
+ overscroll-behavior: none;
9397
9399
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9398
9400
  animation-name: scroll-fade;
9399
9401
  animation-timeline: scroll(self y);
@@ -23875,6 +23877,11 @@ _dec81 = Component({
23875
23877
  tag: "ease-panel",
23876
23878
  shadowMode: "open",
23877
23879
  styles: `
23880
+ :host {
23881
+ display: block;
23882
+ box-sizing: border-box;
23883
+ }
23884
+
23878
23885
  @property --ease-panel-top-fade {
23879
23886
  syntax: "<length>";
23880
23887
  inherits: false;
@@ -23888,7 +23895,9 @@ _dec81 = Component({
23888
23895
  }
23889
23896
 
23890
23897
  [part="section"] {
23891
- display: block;
23898
+ display: flex;
23899
+ flex-direction: column;
23900
+ max-height: inherit;
23892
23901
  width: 100%;
23893
23902
  max-width: var(--ease-panel-max-width);
23894
23903
  border-radius: var(--ease-panel-radius);
@@ -24025,32 +24034,34 @@ _dec81 = Component({
24025
24034
 
24026
24035
  [part="content"] {
24027
24036
  display: block;
24037
+ flex: 1 1 auto;
24038
+ min-height: 0;
24028
24039
  width: 100%;
24029
24040
  box-sizing: border-box;
24030
- margin: auto;
24031
- overflow: hidden;
24032
- }
24033
-
24034
- [part="content"][data-animating="true"] {
24035
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
24036
- }
24037
-
24038
- [part="body"] {
24039
- width: 100%;
24040
- position: relative;
24041
24041
  overflow-y: auto;
24042
+ overflow-x: hidden;
24042
24043
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24043
24044
  animation-name: scroll-fade;
24044
24045
  animation-timeline: scroll(self y);
24045
- scroll-snap-type: y mandatory;
24046
+ scroll-snap-type: y proximity;
24046
24047
  scrollbar-width: none;
24047
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
24048
24048
 
24049
24049
  &::-webkit-scrollbar {
24050
24050
  display: none;
24051
24051
  }
24052
24052
  }
24053
24053
 
24054
+ [part="content"][data-animating="true"] {
24055
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
24056
+ }
24057
+
24058
+ [part="body"] {
24059
+ display: block;
24060
+ height: 100%;
24061
+ width: 100%;
24062
+ position: relative;
24063
+ }
24064
+
24054
24065
  @keyframes scroll-fade {
24055
24066
  0% {
24056
24067
  --top-fade: 0px;
@@ -24074,6 +24085,7 @@ _dec81 = Component({
24074
24085
 
24075
24086
  [part="tab-panel"][data-state="active"] {
24076
24087
  display: block;
24088
+ height: 100%;
24077
24089
  pointer-events: auto;
24078
24090
  }
24079
24091
 
@@ -24101,6 +24113,7 @@ _dec81 = Component({
24101
24113
  grid-gap: var(--ease-panel-gap);
24102
24114
  box-sizing: border-box;
24103
24115
  width: 100%;
24116
+ max-height: 100%;
24104
24117
  }
24105
24118
  `
24106
24119
  }), _dec124 = Prop({
@@ -24243,8 +24256,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24243
24256
  </div>
24244
24257
  </div>
24245
24258
  <div part="content">
24246
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
24247
- ${hasTabs ? this.#renderTabPanels() : html41`<div part="items"><slot></slot></div>`}
24259
+ <div part="body">
24260
+ ${hasTabs ? this.#renderTabPanels() : html41`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
24248
24261
  </div>
24249
24262
  </div>
24250
24263
  <div part="footer">
@@ -24286,7 +24299,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24286
24299
  data-state=${index === this.activeTab ? "active" : "hidden"}
24287
24300
  data-index=${index}
24288
24301
  >
24289
- <div part="items">
24302
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
24290
24303
  <slot name=${`tab-${tab.id}`}></slot>
24291
24304
  </div>
24292
24305
  </div>
@@ -24381,12 +24394,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24381
24394
  } catch {
24382
24395
  }
24383
24396
  fromPanel.setAttribute("data-state", "hidden");
24397
+ content.style.height = "auto";
24384
24398
  const previousToState = toPanel.getAttribute("data-state");
24385
24399
  toPanel.style.display = "block";
24386
24400
  toPanel.style.visibility = "hidden";
24387
24401
  toPanel.style.opacity = "0";
24388
- void toPanel.offsetHeight;
24389
- const endHeight = toPanel.getBoundingClientRect().height;
24402
+ void content.offsetHeight;
24403
+ const endHeight = content.getBoundingClientRect().height;
24404
+ content.style.height = `${startHeight}px`;
24405
+ void content.offsetHeight;
24390
24406
  if (startHeight !== endHeight) {
24391
24407
  content.setAttribute("data-animating", "true");
24392
24408
  void content.offsetHeight;