@warp-ds/elements 2.0.2-next.3 → 2.0.2-next.5

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/dist/index.js CHANGED
@@ -3825,7 +3825,7 @@ var computePosition2 = (reference, floating, options) => {
3825
3825
  }));
3826
3826
  };
3827
3827
 
3828
- // node_modules/.pnpm/@warp-ds+core@1.1.7_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3828
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3829
3829
  var TOP_START = "top-start";
3830
3830
  var TOP = "top";
3831
3831
  var TOP_END = "top-end";
@@ -3926,9 +3926,9 @@ async function useRecompute(state) {
3926
3926
  // checks overflow to trigger a flip. When disabled, it will ignore overflow
3927
3927
  fallbackPlacements: state == null ? void 0 : state.fallbackPlacements
3928
3928
  }),
3929
- !(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
3930
3929
  (state == null ? void 0 : state.flip) && shift2({ crossAxis: true }),
3931
3930
  // shifts the attentionEl to make sure that it stays in view
3931
+ !(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
3932
3932
  hide2(),
3933
3933
  // will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.
3934
3934
  size2({
@@ -3974,10 +3974,6 @@ async function useRecompute(state) {
3974
3974
  left = typeof arrowX === "number" ? `${arrowX}px` : "";
3975
3975
  top = typeof arrowY === "number" ? `${arrowY}px` : "";
3976
3976
  }
3977
- const { x: shiftX } = middlewareData.shift || {};
3978
- if (typeof shiftX === "number") {
3979
- left = typeof arrowX === "number" ? `${arrowX - shiftX}px` : left;
3980
- }
3981
3977
  Object.assign(arrowEl.style, {
3982
3978
  top,
3983
3979
  right,
@@ -4457,7 +4453,7 @@ if (!customElements.get("w-box")) {
4457
4453
  // packages/breadcrumbs/index.js
4458
4454
  import { html as html12 } from "lit";
4459
4455
 
4460
- // node_modules/.pnpm/@warp-ds+core@1.1.7_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4456
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4461
4457
  function interleave(array, separator2) {
4462
4458
  return array.flatMap((el) => [el, separator2]).slice(0, -1);
4463
4459
  }
@@ -5754,6 +5750,11 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
5754
5750
  event.preventDefault();
5755
5751
  }
5756
5752
  }
5753
+ // Fire a custom 'change' event, used when the dropdown changes state.
5754
+ onChange({ target }) {
5755
+ const event = new CustomEvent("change", { detail: target.value });
5756
+ this.dispatchEvent(event);
5757
+ }
5757
5758
  render() {
5758
5759
  return html24`<div class="${select.wrapper}">
5759
5760
  ${when(
@@ -5780,7 +5781,8 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
5780
5781
  aria-describedby="${ifDefined5(__privateGet(this, _WarpSelect_instances, helpId_get))}"
5781
5782
  aria-invalid="${ifDefined5(this.invalid)}"
5782
5783
  aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _WarpSelect_instances, helpId_get))}"
5783
- @keydown=${this.handleKeyDown}>
5784
+ @keydown=${this.handleKeyDown}
5785
+ @change=${this.onChange}>
5784
5786
  ${unsafeHTML(this._options)}
5785
5787
  </select>
5786
5788
  <div class="${__privateGet(this, _WarpSelect_instances, chevronClasses_get2)}">