@cobre-npm/ds-v3 0.88.0 → 0.89.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.
@@ -4594,31 +4594,35 @@ const Xv = { class: "co-input" }, Kv = {
4594
4594
  },
4595
4595
  emits: ["clickPrimary", "clickSecondary"],
4596
4596
  setup(a, { expose: e }) {
4597
- const t = H(null), n = () => {
4598
- var r;
4599
- (r = t == null ? void 0 : t.value) == null || r.toggleModal();
4597
+ const t = H(null), n = L(() => {
4598
+ var o;
4599
+ return (o = t == null ? void 0 : t.value) == null ? void 0 : o.isOpen;
4600
+ }), r = () => {
4601
+ var o;
4602
+ (o = t == null ? void 0 : t.value) == null || o.toggleModal();
4600
4603
  };
4601
4604
  return e({
4602
- toggleModal: n
4603
- }), (r, o) => (f(), ge(_g, {
4605
+ toggleModal: r,
4606
+ isOpen: n
4607
+ }), (o, s) => (f(), ge(_g, {
4604
4608
  ref_key: "modalControl",
4605
4609
  ref: t,
4606
- size: r.size,
4610
+ size: o.size,
4607
4611
  hasCloseButton: !1
4608
4612
  }, {
4609
4613
  content: ue(() => [
4610
4614
  Ce(Hu, {
4611
- title: r.title,
4612
- subtitle: r.description,
4613
- labelPrimary: r.labelPrimary,
4614
- labelSecondary: r.labelSecondary,
4615
- icon: r.icon,
4616
- hasCloseButton: r.hasCloseButton,
4617
- isLoadingBtnPrimary: r.isLoadingBtnPrimary,
4618
- themeBtnPrimary: r.themeBtnPrimary,
4619
- onClickPrimary: o[0] || (o[0] = (s) => r.$emit("clickPrimary")),
4620
- onClickSecondary: o[1] || (o[1] = (s) => r.$emit("clickSecondary")),
4621
- onClose: o[2] || (o[2] = (s) => n())
4615
+ title: o.title,
4616
+ subtitle: o.description,
4617
+ labelPrimary: o.labelPrimary,
4618
+ labelSecondary: o.labelSecondary,
4619
+ icon: o.icon,
4620
+ hasCloseButton: o.hasCloseButton,
4621
+ isLoadingBtnPrimary: o.isLoadingBtnPrimary,
4622
+ themeBtnPrimary: o.themeBtnPrimary,
4623
+ onClickPrimary: s[0] || (s[0] = (l) => o.$emit("clickPrimary")),
4624
+ onClickSecondary: s[1] || (s[1] = (l) => o.$emit("clickSecondary")),
4625
+ onClose: s[2] || (s[2] = (l) => r())
4622
4626
  }, null, 8, ["title", "subtitle", "labelPrimary", "labelSecondary", "icon", "hasCloseButton", "isLoadingBtnPrimary", "themeBtnPrimary"])
4623
4627
  ]),
4624
4628
  _: 1
@@ -13,6 +13,7 @@ interface Props {
13
13
  }
14
14
  declare const _default: import("vue").DefineComponent<Props, {
15
15
  toggleModal: () => void;
16
+ isOpen: import("vue").ComputedRef<boolean | undefined>;
16
17
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
18
  clickPrimary: (...args: any[]) => void;
18
19
  clickSecondary: (...args: any[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"