@supersoniks/concorde 3.1.93 → 3.1.94

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.
@@ -559,7 +559,7 @@ let T = (k = class {
559
559
  const h = await new Response(a.readable).arrayBuffer();
560
560
  return new TextDecoder().decode(h);
561
561
  }
562
- }, k.buildDate = "Wed Aug 20 2025 11:11:45 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
562
+ }, k.buildDate = "Thu Aug 21 2025 10:27:12 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
563
563
  if (typeof window < "u") {
564
564
  const r = window;
565
565
  r[Os + "PublisherManager"] = r[Os + "PublisherManager"] || T;
@@ -10936,17 +10936,18 @@ var Fh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, st = (r, t
10936
10936
  const So = "sonic-modal";
10937
10937
  let F = class extends G(x) {
10938
10938
  constructor() {
10939
- super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc_py) var(--sc_px)", this.maxWidth = "var(--sc_max-w)", this.maxHeight = "var(--sc_max-h)", this.width = "100%", this.height = "fit-content", this.zIndex = "var(--sc_z-index)", this.effect = "slide", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "", this._animationState = "hidden", this._animationDuration = 300, this._animationConfig = {
10939
+ super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc_max-w)", this.maxHeight = "var(--sc_max-h)", this.width = "100%", this.height = "fit-content", this.zIndex = "var(--sc_z-index)", this.effect = "slide", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "", this._animationState = "hidden", this._animationDuration = 300, this._animationConfig = {
10940
10940
  quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
10941
10941
  quadOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
10942
10942
  linear: "linear",
10943
10943
  translateY: "translateY(2.5rem)",
10944
- duration: 300
10944
+ durationIn: 300,
10945
+ durationOut: 450
10945
10946
  };
10946
10947
  }
10947
10948
  static create(r) {
10948
10949
  const t = document.createElement(So);
10949
- return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc_px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc_py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc_z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
10950
+ return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc_z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
10950
10951
  t.show();
10951
10952
  }), t;
10952
10953
  }
@@ -11075,37 +11076,37 @@ let F = class extends G(x) {
11075
11076
  // ------------------------
11076
11077
  animation(r) {
11077
11078
  return new Promise((t) => {
11078
- const { quartOut: e, linear: i, translateY: s, duration: o, quadOut: n } = this._animationConfig, a = this._modalElement;
11079
- if (!a) return t();
11080
- const c = r === "in";
11081
- c ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
11079
+ const { quartOut: e, linear: i, translateY: s, durationIn: o, durationOut: n, quadOut: a } = this._animationConfig, c = this._modalElement;
11080
+ if (!c) return t();
11081
+ const h = r === "in", d = h ? o : n;
11082
+ h ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
11082
11083
  this.style.setProperty("--sc_backdrop-opacity", "0");
11083
11084
  }, 300);
11084
- const h = [];
11085
- this.effect === "slide" && (h.push(
11086
- a.animate(
11085
+ const p = [];
11086
+ this.effect === "slide" && (p.push(
11087
+ c.animate(
11087
11088
  [
11088
- { transform: c ? s : "translateY(0)" },
11089
- { transform: c ? "translateY(0)" : s }
11089
+ { transform: h ? s : "translateY(0)" },
11090
+ { transform: h ? "translateY(0)" : s }
11090
11091
  ],
11091
11092
  {
11092
- duration: o,
11093
- easing: c ? e : n,
11093
+ duration: d,
11094
+ easing: h ? e : a,
11094
11095
  fill: "both",
11095
- delay: c ? 100 : 0
11096
+ delay: h ? 100 : 0
11096
11097
  }
11097
11098
  )
11098
- ), h.push(
11099
- a.animate(
11100
- [{ opacity: c ? 0 : 1 }, { opacity: c ? 1 : 0 }],
11099
+ ), p.push(
11100
+ c.animate(
11101
+ [{ opacity: h ? 0 : 1 }, { opacity: h ? 1 : 0 }],
11101
11102
  {
11102
- duration: o,
11103
+ duration: d,
11103
11104
  easing: i,
11104
11105
  fill: "both",
11105
- delay: c ? 100 : 0
11106
+ delay: h ? 100 : 0
11106
11107
  }
11107
11108
  )
11108
- )), Promise.all(h.map((d) => d.finished)).then(
11109
+ )), Promise.all(p.map((m) => m.finished)).then(
11109
11110
  () => t()
11110
11111
  );
11111
11112
  });
@@ -11115,8 +11116,8 @@ F.styles = [
11115
11116
  fs,
11116
11117
  P`
11117
11118
  :host {
11118
- --sc_py: 2.5rem;
11119
- --sc_px: 1.5rem;
11119
+ --sc-modal-py: 2.5rem;
11120
+ --sc-modal-px: 1.5rem;
11120
11121
  --sc_max-w: min(100vw, 40rem);
11121
11122
  --sc_max-h: 85vh;
11122
11123
  --sc_rounded: var(--sc-rounded-lg);
@@ -11147,7 +11148,6 @@ F.styles = [
11147
11148
  z-index: var(--sc_z-index);
11148
11149
  }
11149
11150
 
11150
- /*#modal::backdrop {*/
11151
11151
  #backdrop {
11152
11152
  opacity: var(--sc_backdrop-opacity, 0);
11153
11153
  background: var(
@@ -11165,7 +11165,7 @@ F.styles = [
11165
11165
  flex-direction: column;
11166
11166
  min-height: 10rem;
11167
11167
  line-height: 1.25;
11168
- padding: var(--sc_py) var(--sc_px);
11168
+ padding: var(--sc-modal-py) var(--sc-modal-px);
11169
11169
  }
11170
11170
 
11171
11171
  ::slotted(sonic-modal-subtitle),
@@ -11200,17 +11200,17 @@ F.styles = [
11200
11200
  padding-right: 1em;
11201
11201
  }
11202
11202
 
11203
- :host([align="left"]) .modal-content {
11203
+ :host([align="left"]) #modal-content {
11204
11204
  text-align: left;
11205
11205
  align-items: flex-start;
11206
11206
  }
11207
11207
 
11208
- :host([align="center"]) .modal-content {
11208
+ :host([align="center"]) #modal-content {
11209
11209
  text-align: center;
11210
11210
  align-items: center;
11211
11211
  }
11212
11212
 
11213
- :host([align="right"]) .modal-content {
11213
+ :host([align="right"]) #modal-content {
11214
11214
  text-align: right;
11215
11215
  align-items: flex-end;
11216
11216
  }
@@ -11218,26 +11218,30 @@ F.styles = [
11218
11218
  /* Close button */
11219
11219
  ::slotted(sonic-modal-close),
11220
11220
  sonic-modal-close {
11221
+ --sc_translate-x: calc(var(--sc-modal-px) - 0.25rem);
11222
+ --sc_translate-y: calc(-1 * var(--sc-modal-py) - 0.25rem);
11223
+ --sc_top: 0.25rem;
11224
+ --sc_x: 0.25rem;
11221
11225
  position: sticky;
11222
11226
  display: block;
11223
- align-self: flex-end;
11224
11227
  height: 0;
11225
- top: var(--sc_py);
11226
- right: 0.5rem;
11227
- transform: translateX(calc(var(--sc_px) - 0.2rem))
11228
- translateY(calc(-1 * var(--sc_py) + 0.2rem));
11228
+ top: var(--sc_top);
11229
+ margin-left: auto;
11230
+ margin-top: calc(-1 * var(--sc-modal-py) - 0.25rem);
11231
+ margin-bottom: var(--sc-modal-py);
11232
+ transform: translateX(var(--sc_translate-x));
11229
11233
  z-index: 20;
11230
11234
  }
11231
11235
  :host([align="right"]) ::slotted(sonic-modal-close),
11232
11236
  :host([align="right"]) sonic-modal-close {
11233
11237
  right: auto;
11234
- left: 0.5rem;
11235
- transform: translateX(calc(-1 * var(--sc_px)))
11236
- translateY(calc(-1 * var(--sc_py)));
11238
+ margin-right: auto;
11239
+ margin-left: 0;
11240
+ transform: translateX(calc(-1 * var(--sc_translate-x)));
11237
11241
  }
11238
11242
 
11239
11243
  /* Border radius */
11240
- :host([rounded="none"]) modal {
11244
+ :host([rounded="none"]) #modal {
11241
11245
  --sc-img-radius: 0 !important;
11242
11246
  }
11243
11247
  `