@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/register.js CHANGED
@@ -3924,11 +3924,11 @@ _dec10 = Component({
3924
3924
  --ease-dropdown-panel-shadow,
3925
3925
  0 5px 20px 0 var(--color-black-15),
3926
3926
  0 1px 4px 0 var(--color-black-15),
3927
- 0 0 0 1px var(--color-white-4) inset,
3927
+ 0 0 0 .5px var(--color-white-4) inset,
3928
3928
  0 1px 0 0 var(--color-white-4) inset
3929
3929
  );
3930
3930
  background-clip: padding-box;
3931
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
3931
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
3932
3932
  box-sizing: border-box;
3933
3933
  padding: var(--ease-dropdown-panel-padding, 4px);
3934
3934
  }
@@ -3946,7 +3946,7 @@ _dec10 = Component({
3946
3946
  }
3947
3947
 
3948
3948
  [part="content"] ::slotted(h4) {
3949
- margin: 4px 0 8px 0 !important;
3949
+ margin: 4px 0 !important;
3950
3950
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
3951
3951
  line-height: 1;
3952
3952
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -8784,6 +8784,7 @@ _dec29 = Component({
8784
8784
 
8785
8785
  [part="field"] {
8786
8786
  scroll-snap-align: start;
8787
+ scroll-margin-top: 8px;
8787
8788
  display: grid;
8788
8789
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
8789
8790
  column-gap: var(--ease-field-column-gap, 12px);
@@ -9305,6 +9306,7 @@ _dec30 = Component({
9305
9306
  :host {
9306
9307
  display: block;
9307
9308
  width: 100%;
9309
+ interpolate-size: allow-keywords;
9308
9310
  }
9309
9311
 
9310
9312
  [part="section"] {
@@ -9378,7 +9380,7 @@ _dec30 = Component({
9378
9380
  grid-gap: var(--ease-folder-gap);
9379
9381
  padding: var(--ease-folder-padding);
9380
9382
  overflow-y: auto;
9381
- overscroll-behavior: contain;
9383
+ overscroll-behavior: none;
9382
9384
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
9383
9385
  animation-name: scroll-fade;
9384
9386
  animation-timeline: scroll(self y);
@@ -23860,6 +23862,11 @@ _dec81 = Component({
23860
23862
  tag: "ease-panel",
23861
23863
  shadowMode: "open",
23862
23864
  styles: `
23865
+ :host {
23866
+ display: block;
23867
+ box-sizing: border-box;
23868
+ }
23869
+
23863
23870
  @property --ease-panel-top-fade {
23864
23871
  syntax: "<length>";
23865
23872
  inherits: false;
@@ -23873,7 +23880,9 @@ _dec81 = Component({
23873
23880
  }
23874
23881
 
23875
23882
  [part="section"] {
23876
- display: block;
23883
+ display: flex;
23884
+ flex-direction: column;
23885
+ max-height: inherit;
23877
23886
  width: 100%;
23878
23887
  max-width: var(--ease-panel-max-width);
23879
23888
  border-radius: var(--ease-panel-radius);
@@ -24010,32 +24019,34 @@ _dec81 = Component({
24010
24019
 
24011
24020
  [part="content"] {
24012
24021
  display: block;
24022
+ flex: 1 1 auto;
24023
+ min-height: 0;
24013
24024
  width: 100%;
24014
24025
  box-sizing: border-box;
24015
- margin: auto;
24016
- overflow: hidden;
24017
- }
24018
-
24019
- [part="content"][data-animating="true"] {
24020
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
24021
- }
24022
-
24023
- [part="body"] {
24024
- width: 100%;
24025
- position: relative;
24026
24026
  overflow-y: auto;
24027
+ overflow-x: hidden;
24027
24028
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
24028
24029
  animation-name: scroll-fade;
24029
24030
  animation-timeline: scroll(self y);
24030
- scroll-snap-type: y mandatory;
24031
+ scroll-snap-type: y proximity;
24031
24032
  scrollbar-width: none;
24032
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
24033
24033
 
24034
24034
  &::-webkit-scrollbar {
24035
24035
  display: none;
24036
24036
  }
24037
24037
  }
24038
24038
 
24039
+ [part="content"][data-animating="true"] {
24040
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
24041
+ }
24042
+
24043
+ [part="body"] {
24044
+ display: block;
24045
+ height: 100%;
24046
+ width: 100%;
24047
+ position: relative;
24048
+ }
24049
+
24039
24050
  @keyframes scroll-fade {
24040
24051
  0% {
24041
24052
  --top-fade: 0px;
@@ -24059,6 +24070,7 @@ _dec81 = Component({
24059
24070
 
24060
24071
  [part="tab-panel"][data-state="active"] {
24061
24072
  display: block;
24073
+ height: 100%;
24062
24074
  pointer-events: auto;
24063
24075
  }
24064
24076
 
@@ -24086,6 +24098,7 @@ _dec81 = Component({
24086
24098
  grid-gap: var(--ease-panel-gap);
24087
24099
  box-sizing: border-box;
24088
24100
  width: 100%;
24101
+ max-height: 100%;
24089
24102
  }
24090
24103
  `
24091
24104
  }), _dec124 = Prop({
@@ -24228,8 +24241,8 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24228
24241
  </div>
24229
24242
  </div>
24230
24243
  <div part="content">
24231
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
24232
- ${hasTabs ? this.#renderTabPanels() : html41`<div part="items"><slot></slot></div>`}
24244
+ <div part="body">
24245
+ ${hasTabs ? this.#renderTabPanels() : html41`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
24233
24246
  </div>
24234
24247
  </div>
24235
24248
  <div part="footer">
@@ -24271,7 +24284,7 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24271
24284
  data-state=${index === this.activeTab ? "active" : "hidden"}
24272
24285
  data-index=${index}
24273
24286
  >
24274
- <div part="items">
24287
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
24275
24288
  <slot name=${`tab-${tab.id}`}></slot>
24276
24289
  </div>
24277
24290
  </div>
@@ -24366,12 +24379,15 @@ var Panel = class extends (_HTMLElement40 = HTMLElement) {
24366
24379
  } catch {
24367
24380
  }
24368
24381
  fromPanel.setAttribute("data-state", "hidden");
24382
+ content.style.height = "auto";
24369
24383
  const previousToState = toPanel.getAttribute("data-state");
24370
24384
  toPanel.style.display = "block";
24371
24385
  toPanel.style.visibility = "hidden";
24372
24386
  toPanel.style.opacity = "0";
24373
- void toPanel.offsetHeight;
24374
- const endHeight = toPanel.getBoundingClientRect().height;
24387
+ void content.offsetHeight;
24388
+ const endHeight = content.getBoundingClientRect().height;
24389
+ content.style.height = `${startHeight}px`;
24390
+ void content.offsetHeight;
24375
24391
  if (startHeight !== endHeight) {
24376
24392
  content.setAttribute("data-animating", "true");
24377
24393
  void content.offsetHeight;