@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.cjs CHANGED
@@ -15104,11 +15104,11 @@ var init_dropdown = __esm({
15104
15104
  --ease-dropdown-panel-shadow,
15105
15105
  0 5px 20px 0 var(--color-black-15),
15106
15106
  0 1px 4px 0 var(--color-black-15),
15107
- 0 0 0 1px var(--color-white-4) inset,
15107
+ 0 0 0 .5px var(--color-white-4) inset,
15108
15108
  0 1px 0 0 var(--color-white-4) inset
15109
15109
  );
15110
15110
  background-clip: padding-box;
15111
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
15111
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
15112
15112
  box-sizing: border-box;
15113
15113
  padding: var(--ease-dropdown-panel-padding, 4px);
15114
15114
  }
@@ -15126,7 +15126,7 @@ var init_dropdown = __esm({
15126
15126
  }
15127
15127
 
15128
15128
  [part="content"] ::slotted(h4) {
15129
- margin: 4px 0 8px 0 !important;
15129
+ margin: 4px 0 !important;
15130
15130
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
15131
15131
  line-height: 1;
15132
15132
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -19997,6 +19997,7 @@ var init_field = __esm({
19997
19997
 
19998
19998
  [part="field"] {
19999
19999
  scroll-snap-align: start;
20000
+ scroll-margin-top: 8px;
20000
20001
  display: grid;
20001
20002
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
20002
20003
  column-gap: var(--ease-field-column-gap, 12px);
@@ -34147,6 +34148,11 @@ var init_panel = __esm({
34147
34148
  tag: "ease-panel",
34148
34149
  shadowMode: "open",
34149
34150
  styles: `
34151
+ :host {
34152
+ display: block;
34153
+ box-sizing: border-box;
34154
+ }
34155
+
34150
34156
  @property --ease-panel-top-fade {
34151
34157
  syntax: "<length>";
34152
34158
  inherits: false;
@@ -34160,7 +34166,9 @@ var init_panel = __esm({
34160
34166
  }
34161
34167
 
34162
34168
  [part="section"] {
34163
- display: block;
34169
+ display: flex;
34170
+ flex-direction: column;
34171
+ max-height: inherit;
34164
34172
  width: 100%;
34165
34173
  max-width: var(--ease-panel-max-width);
34166
34174
  border-radius: var(--ease-panel-radius);
@@ -34297,32 +34305,34 @@ var init_panel = __esm({
34297
34305
 
34298
34306
  [part="content"] {
34299
34307
  display: block;
34308
+ flex: 1 1 auto;
34309
+ min-height: 0;
34300
34310
  width: 100%;
34301
34311
  box-sizing: border-box;
34302
- margin: auto;
34303
- overflow: hidden;
34304
- }
34305
-
34306
- [part="content"][data-animating="true"] {
34307
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
34308
- }
34309
-
34310
- [part="body"] {
34311
- width: 100%;
34312
- position: relative;
34313
34312
  overflow-y: auto;
34313
+ overflow-x: hidden;
34314
34314
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
34315
34315
  animation-name: scroll-fade;
34316
34316
  animation-timeline: scroll(self y);
34317
- scroll-snap-type: y mandatory;
34317
+ scroll-snap-type: y proximity;
34318
34318
  scrollbar-width: none;
34319
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
34320
34319
 
34321
34320
  &::-webkit-scrollbar {
34322
34321
  display: none;
34323
34322
  }
34324
34323
  }
34325
34324
 
34325
+ [part="content"][data-animating="true"] {
34326
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
34327
+ }
34328
+
34329
+ [part="body"] {
34330
+ display: block;
34331
+ height: 100%;
34332
+ width: 100%;
34333
+ position: relative;
34334
+ }
34335
+
34326
34336
  @keyframes scroll-fade {
34327
34337
  0% {
34328
34338
  --top-fade: 0px;
@@ -34346,6 +34356,7 @@ var init_panel = __esm({
34346
34356
 
34347
34357
  [part="tab-panel"][data-state="active"] {
34348
34358
  display: block;
34359
+ height: 100%;
34349
34360
  pointer-events: auto;
34350
34361
  }
34351
34362
 
@@ -34373,6 +34384,7 @@ var init_panel = __esm({
34373
34384
  grid-gap: var(--ease-panel-gap);
34374
34385
  box-sizing: border-box;
34375
34386
  width: 100%;
34387
+ max-height: 100%;
34376
34388
  }
34377
34389
  `
34378
34390
  }), _dec146 = Prop({
@@ -34515,8 +34527,8 @@ var init_panel = __esm({
34515
34527
  </div>
34516
34528
  </div>
34517
34529
  <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>`}
34530
+ <div part="body">
34531
+ ${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
34532
  </div>
34521
34533
  </div>
34522
34534
  <div part="footer">
@@ -34558,7 +34570,7 @@ var init_panel = __esm({
34558
34570
  data-state=${index === this.activeTab ? "active" : "hidden"}
34559
34571
  data-index=${index}
34560
34572
  >
34561
- <div part="items">
34573
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html56.nothing}>
34562
34574
  <slot name=${`tab-${tab.id}`}></slot>
34563
34575
  </div>
34564
34576
  </div>
@@ -34653,12 +34665,15 @@ var init_panel = __esm({
34653
34665
  } catch {
34654
34666
  }
34655
34667
  fromPanel.setAttribute("data-state", "hidden");
34668
+ content.style.height = "auto";
34656
34669
  const previousToState = toPanel.getAttribute("data-state");
34657
34670
  toPanel.style.display = "block";
34658
34671
  toPanel.style.visibility = "hidden";
34659
34672
  toPanel.style.opacity = "0";
34660
- void toPanel.offsetHeight;
34661
- const endHeight = toPanel.getBoundingClientRect().height;
34673
+ void content.offsetHeight;
34674
+ const endHeight = content.getBoundingClientRect().height;
34675
+ content.style.height = `${startHeight}px`;
34676
+ void content.offsetHeight;
34662
34677
  if (startHeight !== endHeight) {
34663
34678
  content.setAttribute("data-animating", "true");
34664
34679
  void content.offsetHeight;
@@ -40775,6 +40790,7 @@ _dec78 = Component({
40775
40790
  :host {
40776
40791
  display: block;
40777
40792
  width: 100%;
40793
+ interpolate-size: allow-keywords;
40778
40794
  }
40779
40795
 
40780
40796
  [part="section"] {
@@ -40848,7 +40864,7 @@ _dec78 = Component({
40848
40864
  grid-gap: var(--ease-folder-gap);
40849
40865
  padding: var(--ease-folder-padding);
40850
40866
  overflow-y: auto;
40851
- overscroll-behavior: contain;
40867
+ overscroll-behavior: none;
40852
40868
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
40853
40869
  animation-name: scroll-fade;
40854
40870
  animation-timeline: scroll(self y);