@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/react.js CHANGED
@@ -4892,11 +4892,11 @@ var init_dropdown = __esm({
4892
4892
  --ease-dropdown-panel-shadow,
4893
4893
  0 5px 20px 0 var(--color-black-15),
4894
4894
  0 1px 4px 0 var(--color-black-15),
4895
- 0 0 0 1px var(--color-white-4) inset,
4895
+ 0 0 0 .5px var(--color-white-4) inset,
4896
4896
  0 1px 0 0 var(--color-white-4) inset
4897
4897
  );
4898
4898
  background-clip: padding-box;
4899
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
4899
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
4900
4900
  box-sizing: border-box;
4901
4901
  padding: var(--ease-dropdown-panel-padding, 4px);
4902
4902
  }
@@ -4914,7 +4914,7 @@ var init_dropdown = __esm({
4914
4914
  }
4915
4915
 
4916
4916
  [part="content"] ::slotted(h4) {
4917
- margin: 4px 0 8px 0 !important;
4917
+ margin: 4px 0 !important;
4918
4918
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
4919
4919
  line-height: 1;
4920
4920
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -14804,6 +14804,7 @@ var init_field = __esm({
14804
14804
 
14805
14805
  [part="field"] {
14806
14806
  scroll-snap-align: start;
14807
+ scroll-margin-top: 8px;
14807
14808
  display: grid;
14808
14809
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
14809
14810
  column-gap: var(--ease-field-column-gap, 12px);
@@ -15299,6 +15300,11 @@ var init_panel = __esm({
15299
15300
  tag: "ease-panel",
15300
15301
  shadowMode: "open",
15301
15302
  styles: `
15303
+ :host {
15304
+ display: block;
15305
+ box-sizing: border-box;
15306
+ }
15307
+
15302
15308
  @property --ease-panel-top-fade {
15303
15309
  syntax: "<length>";
15304
15310
  inherits: false;
@@ -15312,7 +15318,9 @@ var init_panel = __esm({
15312
15318
  }
15313
15319
 
15314
15320
  [part="section"] {
15315
- display: block;
15321
+ display: flex;
15322
+ flex-direction: column;
15323
+ max-height: inherit;
15316
15324
  width: 100%;
15317
15325
  max-width: var(--ease-panel-max-width);
15318
15326
  border-radius: var(--ease-panel-radius);
@@ -15449,32 +15457,34 @@ var init_panel = __esm({
15449
15457
 
15450
15458
  [part="content"] {
15451
15459
  display: block;
15460
+ flex: 1 1 auto;
15461
+ min-height: 0;
15452
15462
  width: 100%;
15453
15463
  box-sizing: border-box;
15454
- margin: auto;
15455
- overflow: hidden;
15456
- }
15457
-
15458
- [part="content"][data-animating="true"] {
15459
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
15460
- }
15461
-
15462
- [part="body"] {
15463
- width: 100%;
15464
- position: relative;
15465
15464
  overflow-y: auto;
15465
+ overflow-x: hidden;
15466
15466
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
15467
15467
  animation-name: scroll-fade;
15468
15468
  animation-timeline: scroll(self y);
15469
- scroll-snap-type: y mandatory;
15469
+ scroll-snap-type: y proximity;
15470
15470
  scrollbar-width: none;
15471
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
15472
15471
 
15473
15472
  &::-webkit-scrollbar {
15474
15473
  display: none;
15475
15474
  }
15476
15475
  }
15477
15476
 
15477
+ [part="content"][data-animating="true"] {
15478
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
15479
+ }
15480
+
15481
+ [part="body"] {
15482
+ display: block;
15483
+ height: 100%;
15484
+ width: 100%;
15485
+ position: relative;
15486
+ }
15487
+
15478
15488
  @keyframes scroll-fade {
15479
15489
  0% {
15480
15490
  --top-fade: 0px;
@@ -15498,6 +15508,7 @@ var init_panel = __esm({
15498
15508
 
15499
15509
  [part="tab-panel"][data-state="active"] {
15500
15510
  display: block;
15511
+ height: 100%;
15501
15512
  pointer-events: auto;
15502
15513
  }
15503
15514
 
@@ -15525,6 +15536,7 @@ var init_panel = __esm({
15525
15536
  grid-gap: var(--ease-panel-gap);
15526
15537
  box-sizing: border-box;
15527
15538
  width: 100%;
15539
+ max-height: 100%;
15528
15540
  }
15529
15541
  `
15530
15542
  }), _dec121 = Prop({
@@ -15667,8 +15679,8 @@ var init_panel = __esm({
15667
15679
  </div>
15668
15680
  </div>
15669
15681
  <div part="content">
15670
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
15671
- ${hasTabs ? this.#renderTabPanels() : html21`<div part="items"><slot></slot></div>`}
15682
+ <div part="body">
15683
+ ${hasTabs ? this.#renderTabPanels() : html21`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}><slot></slot></div>`}
15672
15684
  </div>
15673
15685
  </div>
15674
15686
  <div part="footer">
@@ -15710,7 +15722,7 @@ var init_panel = __esm({
15710
15722
  data-state=${index === this.activeTab ? "active" : "hidden"}
15711
15723
  data-index=${index}
15712
15724
  >
15713
- <div part="items">
15725
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : nothing2}>
15714
15726
  <slot name=${`tab-${tab.id}`}></slot>
15715
15727
  </div>
15716
15728
  </div>
@@ -15805,12 +15817,15 @@ var init_panel = __esm({
15805
15817
  } catch {
15806
15818
  }
15807
15819
  fromPanel.setAttribute("data-state", "hidden");
15820
+ content.style.height = "auto";
15808
15821
  const previousToState = toPanel.getAttribute("data-state");
15809
15822
  toPanel.style.display = "block";
15810
15823
  toPanel.style.visibility = "hidden";
15811
15824
  toPanel.style.opacity = "0";
15812
- void toPanel.offsetHeight;
15813
- const endHeight = toPanel.getBoundingClientRect().height;
15825
+ void content.offsetHeight;
15826
+ const endHeight = content.getBoundingClientRect().height;
15827
+ content.style.height = `${startHeight}px`;
15828
+ void content.offsetHeight;
15814
15829
  if (startHeight !== endHeight) {
15815
15830
  content.setAttribute("data-animating", "true");
15816
15831
  void content.offsetHeight;