@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.cjs CHANGED
@@ -4904,11 +4904,11 @@ var init_dropdown = __esm({
4904
4904
  --ease-dropdown-panel-shadow,
4905
4905
  0 5px 20px 0 var(--color-black-15),
4906
4906
  0 1px 4px 0 var(--color-black-15),
4907
- 0 0 0 1px var(--color-white-4) inset,
4907
+ 0 0 0 .5px var(--color-white-4) inset,
4908
4908
  0 1px 0 0 var(--color-white-4) inset
4909
4909
  );
4910
4910
  background-clip: padding-box;
4911
- border: 1px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
4911
+ border: .25px solid var(--ease-dropdown-panel-border-color, var(--color-gray-825));
4912
4912
  box-sizing: border-box;
4913
4913
  padding: var(--ease-dropdown-panel-padding, 4px);
4914
4914
  }
@@ -4926,7 +4926,7 @@ var init_dropdown = __esm({
4926
4926
  }
4927
4927
 
4928
4928
  [part="content"] ::slotted(h4) {
4929
- margin: 4px 0 8px 0 !important;
4929
+ margin: 4px 0 !important;
4930
4930
  font-size: var(--ease-dropdown-group-label-font-size, 11px);
4931
4931
  line-height: 1;
4932
4932
  padding: var(--ease-dropdown-group-label-padding, 0 8px);
@@ -14817,6 +14817,7 @@ var init_field = __esm({
14817
14817
 
14818
14818
  [part="field"] {
14819
14819
  scroll-snap-align: start;
14820
+ scroll-margin-top: 8px;
14820
14821
  display: grid;
14821
14822
  grid-template-columns: var(--ease-field-label-width, 36%) auto;
14822
14823
  column-gap: var(--ease-field-column-gap, 12px);
@@ -15312,6 +15313,11 @@ var init_panel = __esm({
15312
15313
  tag: "ease-panel",
15313
15314
  shadowMode: "open",
15314
15315
  styles: `
15316
+ :host {
15317
+ display: block;
15318
+ box-sizing: border-box;
15319
+ }
15320
+
15315
15321
  @property --ease-panel-top-fade {
15316
15322
  syntax: "<length>";
15317
15323
  inherits: false;
@@ -15325,7 +15331,9 @@ var init_panel = __esm({
15325
15331
  }
15326
15332
 
15327
15333
  [part="section"] {
15328
- display: block;
15334
+ display: flex;
15335
+ flex-direction: column;
15336
+ max-height: inherit;
15329
15337
  width: 100%;
15330
15338
  max-width: var(--ease-panel-max-width);
15331
15339
  border-radius: var(--ease-panel-radius);
@@ -15462,32 +15470,34 @@ var init_panel = __esm({
15462
15470
 
15463
15471
  [part="content"] {
15464
15472
  display: block;
15473
+ flex: 1 1 auto;
15474
+ min-height: 0;
15465
15475
  width: 100%;
15466
15476
  box-sizing: border-box;
15467
- margin: auto;
15468
- overflow: hidden;
15469
- }
15470
-
15471
- [part="content"][data-animating="true"] {
15472
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
15473
- }
15474
-
15475
- [part="body"] {
15476
- width: 100%;
15477
- position: relative;
15478
15477
  overflow-y: auto;
15478
+ overflow-x: hidden;
15479
15479
  mask-image: linear-gradient(to bottom, #0000, #ffff var(--top-fade) calc(100% - var(--bottom-fade)), #0000);
15480
15480
  animation-name: scroll-fade;
15481
15481
  animation-timeline: scroll(self y);
15482
- scroll-snap-type: y mandatory;
15482
+ scroll-snap-type: y proximity;
15483
15483
  scrollbar-width: none;
15484
- max-height: calc(100dvh - 32px - var(--ease-panel-padding));
15485
15484
 
15486
15485
  &::-webkit-scrollbar {
15487
15486
  display: none;
15488
15487
  }
15489
15488
  }
15490
15489
 
15490
+ [part="content"][data-animating="true"] {
15491
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1);
15492
+ }
15493
+
15494
+ [part="body"] {
15495
+ display: block;
15496
+ height: 100%;
15497
+ width: 100%;
15498
+ position: relative;
15499
+ }
15500
+
15491
15501
  @keyframes scroll-fade {
15492
15502
  0% {
15493
15503
  --top-fade: 0px;
@@ -15511,6 +15521,7 @@ var init_panel = __esm({
15511
15521
 
15512
15522
  [part="tab-panel"][data-state="active"] {
15513
15523
  display: block;
15524
+ height: 100%;
15514
15525
  pointer-events: auto;
15515
15526
  }
15516
15527
 
@@ -15538,6 +15549,7 @@ var init_panel = __esm({
15538
15549
  grid-gap: var(--ease-panel-gap);
15539
15550
  box-sizing: border-box;
15540
15551
  width: 100%;
15552
+ max-height: 100%;
15541
15553
  }
15542
15554
  `
15543
15555
  }), _dec121 = Prop({
@@ -15680,8 +15692,8 @@ var init_panel = __esm({
15680
15692
  </div>
15681
15693
  </div>
15682
15694
  <div part="content">
15683
- <div part="body" style=${this.maxHeight ? `max-height: ${this.maxHeight};` : ""}>
15684
- ${hasTabs ? this.#renderTabPanels() : import_lit_html22.html`<div part="items"><slot></slot></div>`}
15695
+ <div part="body">
15696
+ ${hasTabs ? this.#renderTabPanels() : import_lit_html22.html`<div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html22.nothing}><slot></slot></div>`}
15685
15697
  </div>
15686
15698
  </div>
15687
15699
  <div part="footer">
@@ -15723,7 +15735,7 @@ var init_panel = __esm({
15723
15735
  data-state=${index === this.activeTab ? "active" : "hidden"}
15724
15736
  data-index=${index}
15725
15737
  >
15726
- <div part="items">
15738
+ <div part="items" style=${this.maxHeight ? `max-height: ${this.maxHeight}` : import_lit_html22.nothing}>
15727
15739
  <slot name=${`tab-${tab.id}`}></slot>
15728
15740
  </div>
15729
15741
  </div>
@@ -15818,12 +15830,15 @@ var init_panel = __esm({
15818
15830
  } catch {
15819
15831
  }
15820
15832
  fromPanel.setAttribute("data-state", "hidden");
15833
+ content.style.height = "auto";
15821
15834
  const previousToState = toPanel.getAttribute("data-state");
15822
15835
  toPanel.style.display = "block";
15823
15836
  toPanel.style.visibility = "hidden";
15824
15837
  toPanel.style.opacity = "0";
15825
- void toPanel.offsetHeight;
15826
- const endHeight = toPanel.getBoundingClientRect().height;
15838
+ void content.offsetHeight;
15839
+ const endHeight = content.getBoundingClientRect().height;
15840
+ content.style.height = `${startHeight}px`;
15841
+ void content.offsetHeight;
15827
15842
  if (startHeight !== endHeight) {
15828
15843
  content.setAttribute("data-animating", "true");
15829
15844
  void content.offsetHeight;