@nubisco/ui 1.1.1 → 1.2.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.
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 ? O("RouterLink") : e.href ? "a" : "button"), {
12371
12372
  class: y([
12372
12373
  "nb-button",
12373
12374
  `nb-button--${e.variant}`,
@@ -12376,12 +12377,13 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12376
12377
  { "nb-button--loading": e.loading },
12377
12378
  { "nb-button--icon-only": r.value }
12378
12379
  ]),
12380
+ to: e.to ?? void 0,
12379
12381
  href: e.href ?? void 0,
12380
12382
  target: e.href ? e.target : void 0,
12381
12383
  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,
12384
+ disabled: !e.href && !e.to ? e.disabled || e.loading : void 0,
12385
+ "aria-disabled": (e.href || e.to) && (e.disabled || e.loading) ? !0 : void 0,
12386
+ type: !e.href && !e.to ? e.type : void 0,
12385
12387
  onClick: n[0] ||= (n) => e.disabled || e.loading ? void 0 : t.$emit("click", n)
12386
12388
  }, {
12387
12389
  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, {
@@ -12393,6 +12395,7 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12393
12395
  _: 3
12394
12396
  }, 8, [
12395
12397
  "class",
12398
+ "to",
12396
12399
  "href",
12397
12400
  "target",
12398
12401
  "rel",
@@ -12401,7 +12404,7 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
12401
12404
  "type"
12402
12405
  ]));
12403
12406
  }
12404
- }), NUt = /* @__PURE__ */ B({ default: () => h5 }), h5 = /* @__PURE__ */ V(MUt, [["__scopeId", "data-v-4e644731"]]), PUt = { class: "nb-checkbox__control" }, FUt = [
12407
+ }), NUt = /* @__PURE__ */ B({ default: () => h5 }), h5 = /* @__PURE__ */ V(MUt, [["__scopeId", "data-v-34ea77b0"]]), PUt = { class: "nb-checkbox__control" }, FUt = [
12405
12408
  "checked",
12406
12409
  "disabled",
12407
12410
  "indeterminate"