@nubisco/ui 1.1.1 → 1.2.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/dist/index.mjs CHANGED
@@ -12354,7 +12354,8 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12354
12354
  type: { default: Ce.Button },
12355
12355
  href: { default: void 0 },
12356
12356
  target: { default: void 0 },
12357
- rel: { default: void 0 }
12357
+ rel: { default: void 0 },
12358
+ to: { default: void 0 }
12358
12359
  },
12359
12360
  emits: ["click"],
12360
12361
  setup(e) {
@@ -12367,7 +12368,7 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12367
12368
  xl: 16,
12368
12369
  xxl: 20
12369
12370
  }, l = a(() => i[t.size ?? "md"] ?? 14);
12370
- return (t, n) => (w(), o(k(e.href ? "a" : "button"), {
12371
+ return (t, n) => (w(), o(k(e.to || e.href ? "a" : "button"), {
12371
12372
  class: y([
12372
12373
  "nb-button",
12373
12374
  `nb-button--${e.variant}`,
@@ -12376,12 +12377,12 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12376
12377
  { "nb-button--loading": e.loading },
12377
12378
  { "nb-button--icon-only": r.value }
12378
12379
  ]),
12379
- href: e.href ?? void 0,
12380
+ href: e.to ? typeof e.to == "string" ? e.to : void 0 : e.href ?? void 0,
12380
12381
  target: e.href ? e.target : void 0,
12381
12382
  rel: e.href ? e.rel : void 0,
12382
- disabled: e.href ? void 0 : e.disabled || e.loading,
12383
- "aria-disabled": e.href && (e.disabled || e.loading) ? !0 : void 0,
12384
- type: e.href ? void 0 : e.type,
12383
+ disabled: !e.href && !e.to ? e.disabled || e.loading : void 0,
12384
+ "aria-disabled": (e.href || e.to) && (e.disabled || e.loading) ? !0 : void 0,
12385
+ type: !e.href && !e.to ? e.type : void 0,
12385
12386
  onClick: n[0] ||= (n) => e.disabled || e.loading ? void 0 : t.$emit("click", n)
12386
12387
  }, {
12387
12388
  default: I(() => [D(t.$slots, "default", {}, void 0, !0), e.loading || e.icon ? (w(), c("div", AUt, [e.loading ? (w(), c("span", jUt)) : e.icon ? (w(), o(m5, {
@@ -12401,7 +12402,7 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12401
12402
  "type"
12402
12403
  ]));
12403
12404
  }
12404
- }), NUt = /* @__PURE__ */ B({ default: () => h5 }), h5 = /* @__PURE__ */ V(MUt, [["__scopeId", "data-v-4e644731"]]), PUt = { class: "nb-checkbox__control" }, FUt = [
12405
+ }), NUt = /* @__PURE__ */ B({ default: () => h5 }), h5 = /* @__PURE__ */ V(MUt, [["__scopeId", "data-v-7809509d"]]), PUt = { class: "nb-checkbox__control" }, FUt = [
12405
12406
  "checked",
12406
12407
  "disabled",
12407
12408
  "indeterminate"