@citruslime/ui 3.0.4-beta.0 → 3.1.0-beta.1

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/README.md CHANGED
@@ -9,7 +9,7 @@ A Vue 3 library, written in TypeScript, which provides custom UI components.
9
9
  - 📖 [Documentation & API](https://uilibrary.citruslime.com)
10
10
  - 📌 [Citrus-Lime Ltd](https://www.citruslime.com)
11
11
 
12
- ## Install
12
+ # Install
13
13
 
14
14
  `pnpm add @citruslime/ui`
15
15
 
@@ -453,17 +453,21 @@ const Co = {
453
453
  }, To = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, et = /* @__PURE__ */ j({
454
454
  inheritAttrs: !1,
455
455
  __name: "cl-ui-modal",
456
- props: {
456
+ props: /* @__PURE__ */ de({
457
457
  headerColour: { default: "white" },
458
458
  preventClose: { type: Boolean, default: !1 },
459
459
  size: { default: "medium" },
460
460
  trapFocus: { type: Boolean, default: !1 }
461
- },
461
+ }, {
462
+ visible: { type: Boolean, required: !1, default: !1 },
463
+ visibleModifiers: {}
464
+ }),
465
+ emits: ["update:visible"],
462
466
  setup(o) {
463
- const t = o, { trapFocus: l } = Kl(t), e = R(!1), s = R(), n = ko(s);
467
+ const t = o, l = he(o, "visible"), { trapFocus: e } = Kl(t), s = R(), n = ko(s);
464
468
  ee([
465
- l,
466
- e
469
+ e,
470
+ l
467
471
  ], ([
468
472
  r,
469
473
  a
@@ -473,10 +477,10 @@ const Co = {
473
477
  });
474
478
  });
475
479
  function c() {
476
- e.value = !0, document.addEventListener("keydown", p);
480
+ l.value = !0, document.addEventListener("keydown", p);
477
481
  }
478
482
  function d() {
479
- t.preventClose || (e.value = !1, document.removeEventListener("keydown", p));
483
+ t.preventClose || (l.value = !1, document.removeEventListener("keydown", p));
480
484
  }
481
485
  function p(r) {
482
486
  r.key === "Escape" && d();
@@ -529,7 +533,7 @@ const Co = {
529
533
  A(r.$slots, "footer", pe(me({ close: d })))
530
534
  ], 16)
531
535
  ], 512), [
532
- [ue, e.value]
536
+ [ue, l.value]
533
537
  ])
534
538
  ]),
535
539
  _: 3