hanap-labs 6.5.1 → 6.7.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.
@@ -370,7 +370,8 @@ var Pe = {
370
370
  separator: { default: "/" },
371
371
  separatorType: { default: "text" },
372
372
  separatorIconName: { default: "chevron-right" },
373
- activeColor: {}
373
+ activeColor: {},
374
+ linkComponent: {}
374
375
  },
375
376
  setup(e) {
376
377
  let t = W(() => e.path, {
@@ -409,12 +410,19 @@ var Pe = {
409
410
  color: "muted",
410
411
  class: "hl-mx-1",
411
412
  decorative: ""
412
- }, null, 8, ["name"])) : (k(), l("span", Ie, F(e.separator), 1))], 64)) : c("", !0), t.href ? (k(), l("a", {
413
+ }, null, 8, ["name"])) : (k(), l("span", Ie, F(e.separator), 1))], 64)) : c("", !0), t.href && e.linkComponent ? (k(), s(ee(e.linkComponent), {
413
414
  key: 1,
415
+ to: t.href,
416
+ class: C(["hl-theme-text hl-no-underline hl-transition-colors hover:hl-no-underline", d.value])
417
+ }, {
418
+ default: B(() => [f(F(t.label), 1)]),
419
+ _: 2
420
+ }, 1032, ["to", "class"])) : t.href ? (k(), l("a", {
421
+ key: 2,
414
422
  href: t.href,
415
423
  class: C(["hl-theme-text hl-no-underline hl-transition-colors hover:hl-no-underline", d.value])
416
424
  }, F(t.label), 11, Le)) : (k(), l("span", {
417
- key: 2,
425
+ key: 3,
418
426
  class: C(["hl-font-semibold", t.isActive ? a.value : "hl-theme-text"])
419
427
  }, F(t.label), 3))]))), 128))])]));
420
428
  }
@@ -708,12 +716,17 @@ var Pe = {
708
716
  glassmorphism: {
709
717
  type: Boolean,
710
718
  default: !1
719
+ },
720
+ noPadding: {
721
+ type: Boolean,
722
+ default: !1
711
723
  }
712
724
  },
713
725
  setup(e) {
714
726
  return (t, n) => (k(), l("div", x(t.$attrs, { class: [
715
727
  "hl-rounded-lg hl-border hl-border-solid",
716
728
  e.glassmorphism ? "hl-bg-surface/50 hl-backdrop-blur-lg dark:hl-bg-surface/10 hl-glassmorphism-border" : "hl-theme-bg hl-theme-border",
729
+ !e.noPadding && "hl-p-4",
717
730
  e.class
718
731
  ] }), [P(t.$slots, "default")], 16));
719
732
  }
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../chunks/components-Dtr1Xr0Z.js";
1
+ import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../chunks/components-BYAyIyN7.js";
2
2
  export { a as HLAvatar, O as HLBadge, t as HLBreadcrumb, l as HLButton, k as HLCard, s as HLCheckbox, w as HLDatepicker, o as HLIcon, p as HLInput, E as HLLabel, m as HLMenuAction, x as HLNotify, v as HLNotifyToast, _ as HLPopup, T as HLPopupContent, b as HLSelect, c as HLSkeleton, S as HLTable, h as HLTabs, y as HLTextarea, r as HL_ICON_NAMES, d as createNotifyPlugin, C as createPopupPlugin, n as getHLIconSvg, i as listHLIconNames, g as registerHLIcon, f as unmountNotifyHost, u as unmountPopupHost, e as unregisterHLIcon, D as useBreadcrumb };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./chunks/composables-Dfe_Im7E.js";
2
- import { A as l, C as u, D as d, E as f, O as ee, S as te, T as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, w as Ce, x as we, y as Te } from "./chunks/components-Dtr1Xr0Z.js";
2
+ import { A as l, C as u, D as d, E as f, O as ee, S as te, T as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, w as Ce, x as we, y as Te } from "./chunks/components-BYAyIyN7.js";
3
3
  import { n as Ee, r as De, t as Oe } from "./chunks/usePopup-DgM99GbC.js";
4
4
  import { t as ke } from "./chunks/helpers-BjMDD0mP.js";
5
5
  import { createToolkitAutoImportModules as Ae, createToolkitAutoImportOptions as je, createToolkitComponentsResolver as Me } from "./auto-import/index.js";
@@ -1,3 +1,4 @@
1
+ import type { Component } from "vue";
1
2
  import type { HLUIColor } from "../../types/ui.types";
2
3
  export interface HLBreadcrumbItem {
3
4
  label: string;
@@ -22,4 +23,6 @@ export interface HLBreadcrumbProps {
22
23
  separatorType?: "text" | "icon";
23
24
  separatorIconName?: string;
24
25
  activeColor?: HLUIColor;
26
+ /** Vue Router's RouterLink, NuxtLink, or any component that accepts a `to` prop. */
27
+ linkComponent?: Component;
25
28
  }
@@ -1,4 +1,5 @@
1
1
  export interface HLCardProps {
2
2
  class?: string;
3
3
  glassmorphism?: boolean;
4
+ noPadding?: boolean;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanap-labs",
3
- "version": "6.5.1",
3
+ "version": "6.7.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",