@cobre-npm/ds-v3 0.3.13 → 0.3.14

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.
@@ -4732,7 +4732,7 @@ const zl = (t = window.location.href) => {
4732
4732
  getParams: zl,
4733
4733
  makeBodyNotScrollable: Kl,
4734
4734
  makeBodyScrollable: nn
4735
- }, Symbol.toStringTag, { value: "Module" })), sg = (t) => (Ve("data-v-24359cbc"), t = t(), je(), t), og = { class: "co-float-modal__header d-flex justify-content-end" }, ng = /* @__PURE__ */ sg(() => /* @__PURE__ */ b("i", { class: "icon-x co-icon co-icon--md" }, null, -1)), ig = {
4735
+ }, Symbol.toStringTag, { value: "Module" })), sg = (t) => (Ve("data-v-076d253f"), t = t(), je(), t), og = { class: "co-float-modal__header d-flex justify-content-end" }, ng = /* @__PURE__ */ sg(() => /* @__PURE__ */ b("i", { class: "icon-x co-icon co-icon--md" }, null, -1)), ig = {
4736
4736
  key: 0,
4737
4737
  class: "co-float-modal__content"
4738
4738
  }, rg = {
@@ -4747,7 +4747,7 @@ const zl = (t = window.location.href) => {
4747
4747
  blurred: { type: Boolean, default: !0 },
4748
4748
  btnChevronHide: { type: Boolean, default: !0 }
4749
4749
  },
4750
- emits: ["close"],
4750
+ emits: ["close", "close-button"],
4751
4751
  setup(t, { expose: e, emit: s }) {
4752
4752
  const n = up(), r = Bt(), l = G(!1);
4753
4753
  lp(n.Escape, () => {
@@ -4755,18 +4755,26 @@ const zl = (t = window.location.href) => {
4755
4755
  });
4756
4756
  const c = s, u = () => {
4757
4757
  l.value = !l.value, l.value ? Kl() : nn();
4758
- }, h = () => {
4759
- l.value && (l.value = !1, nn(), c("close"));
4758
+ }, h = (m) => {
4759
+ l.value && (l.value = !1, nn(), c(m ? "close-button" : "close"));
4760
4760
  };
4761
4761
  return Nl(nn), e({
4762
4762
  toggleModal: u,
4763
4763
  isOpen: l
4764
4764
  }), (m, p) => (f(), g(Ce, null, [
4765
- re(ie(G_), { onTrigger: h }, {
4765
+ re(ie(G_), {
4766
+ onTrigger: p[1] || (p[1] = (w) => h(!1))
4767
+ }, {
4766
4768
  default: oe(() => [
4767
4769
  b("aside", {
4768
- class: P(["co-float-modal", l.value ? `co-float-modal--position-${m.position} co-float-modal--position-${m.position}__open` : `co-float-modal--position-${m.position}`]),
4769
- style: Oe({ width: m.size, boxShadow: m.btnChevronHide ? "0 4px 20px 0 rgba(40, 40, 43, 0.04), 0 2px 15px 0 rgba(40, 40, 43, 0.05)" : "none" })
4770
+ class: P(["co-float-modal", {
4771
+ [`co-float-modal--position-${m.position}`]: m.position,
4772
+ [`co-float-modal--position-${m.position}__open`]: l.value && m.position
4773
+ }]),
4774
+ style: Oe({
4775
+ width: m.size,
4776
+ boxShadow: m.btnChevronHide ? "0 4px 20px 0 rgba(40, 40, 43, 0.04), 0 2px 15px 0 rgba(40, 40, 43, 0.05)" : "none"
4777
+ })
4770
4778
  }, [
4771
4779
  b("nav", null, [
4772
4780
  b("section", og, [
@@ -4775,7 +4783,7 @@ const zl = (t = window.location.href) => {
4775
4783
  size: "small",
4776
4784
  theme: "icon-cloudy",
4777
4785
  class: "p-0",
4778
- onClick: h
4786
+ onClick: p[0] || (p[0] = (w) => h(!0))
4779
4787
  }, {
4780
4788
  content: oe(() => [
4781
4789
  ng
@@ -4829,7 +4837,7 @@ const zl = (t = window.location.href) => {
4829
4837
  }, null, 2)
4830
4838
  ], 64));
4831
4839
  }
4832
- }), uC = /* @__PURE__ */ ue(ag, [["__scopeId", "data-v-24359cbc"]]), lg = ["src", "alt"], cg = "https://cobre-utils.s3.us-east-2.amazonaws.com/portal/assets/country-flags/", dC = /* @__PURE__ */ U({
4840
+ }), uC = /* @__PURE__ */ ue(ag, [["__scopeId", "data-v-076d253f"]]), lg = ["src", "alt"], cg = "https://cobre-utils.s3.us-east-2.amazonaws.com/portal/assets/country-flags/", dC = /* @__PURE__ */ U({
4833
4841
  __name: "CobreCountryFlag",
4834
4842
  props: {
4835
4843
  geo: { default: "mex" }