@cobre-npm/ds-v3 0.20.1 → 0.21.0

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.
@@ -6096,7 +6096,7 @@ const q1 = /* @__PURE__ */ Au(S1, [["render", z1]]), X1 = {
6096
6096
  ]);
6097
6097
  };
6098
6098
  }
6099
- }), rT = (t) => (tn("data-v-0e07e6a7"), t = t(), nn(), t), oT = { class: "co-snack d-flex align-items-center justify-content-between" }, iT = { class: "d-flex align-items-center" }, sT = { class: "co-mb-0 co-label co-label--md co-fw-500" }, lT = /* @__PURE__ */ rT(() => /* @__PURE__ */ S("i", { class: "icon-x co-icon co-icon--md co-text-primary-10" }, null, -1)), uT = /* @__PURE__ */ De({
6099
+ }), rT = (t) => (tn("data-v-7c6ff637"), t = t(), nn(), t), oT = { class: "co-snack d-flex align-items-center justify-content-between" }, iT = { class: "d-flex align-items-center" }, sT = { class: "co-mb-0 co-label co-label--md co-fw-500" }, lT = /* @__PURE__ */ rT(() => /* @__PURE__ */ S("i", { class: "icon-x co-icon co-icon--md co-text-primary-10" }, null, -1)), uT = /* @__PURE__ */ De({
6100
6100
  __name: "CobreSnackBar",
6101
6101
  props: {
6102
6102
  closeToast: {},
@@ -6108,32 +6108,34 @@ const q1 = /* @__PURE__ */ Au(S1, [["render", z1]]), X1 = {
6108
6108
  } }
6109
6109
  },
6110
6110
  setup(t) {
6111
- const e = t, { closeToast: n } = wu(e), a = (r) => {
6112
- n.value && n.value(r);
6111
+ const e = t, { closeToast: n } = wu(e), a = (o) => {
6112
+ n.value && n.value(o);
6113
+ }, r = () => {
6114
+ e.btnAction && (e.btnAction(), e.closeToast());
6113
6115
  };
6114
- return (r, o) => (y(), D("div", oT, [
6116
+ return (o, i) => (y(), D("div", oT, [
6115
6117
  S("div", iT, [
6116
6118
  S("div", {
6117
- class: ie(`co-center co-p-2 co-snack__icon co-snack__icon--${r.type} co-me-8`)
6119
+ class: ie(`co-center co-p-2 co-snack__icon co-snack__icon--${o.type} co-me-8`)
6118
6120
  }, [
6119
6121
  S("i", {
6120
6122
  class: ie(["co-icon co-icon--sm co-text-primary-95", {
6121
- "icon-check": r.type === "success",
6122
- "icon-x": r.type === "error"
6123
+ "icon-check": o.type === "success",
6124
+ "icon-x": o.type === "error"
6123
6125
  }])
6124
6126
  }, null, 2)
6125
6127
  ], 2),
6126
- S("p", sT, ve(r.message), 1),
6127
- r.btnLabel ? (y(), Pe(bt, {
6128
+ S("p", sT, ve(o.message), 1),
6129
+ o.btnLabel ? (y(), Pe(bt, {
6128
6130
  key: 0,
6129
6131
  theme: "ghost-teal",
6130
6132
  size: "auto",
6131
6133
  class: "co-ms-12",
6132
- label: r.btnLabel,
6133
- onClick: r.btnAction
6134
- }, null, 8, ["label", "onClick"])) : F("", !0)
6134
+ label: o.btnLabel,
6135
+ onClick: r
6136
+ }, null, 8, ["label"])) : F("", !0)
6135
6137
  ]),
6136
- r.showCloseButton ? (y(), Pe(bt, {
6138
+ o.showCloseButton ? (y(), Pe(bt, {
6137
6139
  key: 0,
6138
6140
  theme: "ghost",
6139
6141
  size: "auto",
@@ -6147,7 +6149,7 @@ const q1 = /* @__PURE__ */ Au(S1, [["render", z1]]), X1 = {
6147
6149
  })) : F("", !0)
6148
6150
  ]));
6149
6151
  }
6150
- }), YI = /* @__PURE__ */ ct(uT, [["__scopeId", "data-v-0e07e6a7"]]), cT = ["title"], dT = { class: "co-label co-label--sm mb-0 overflow-hidden text-nowrap text-truncate" }, VI = /* @__PURE__ */ De({
6152
+ }), YI = /* @__PURE__ */ ct(uT, [["__scopeId", "data-v-7c6ff637"]]), cT = ["title"], dT = { class: "co-label co-label--sm mb-0 overflow-hidden text-nowrap text-truncate" }, VI = /* @__PURE__ */ De({
6151
6153
  __name: "CobreTableCellCopy",
6152
6154
  props: {
6153
6155
  text: { default: "" },