@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.6

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.
@@ -1,50 +1,50 @@
1
- import { jsx as a, Fragment as p } from "react/jsx-runtime";
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
2
  import { cn as m } from "../../../../utils/index.js";
3
3
  import { u as h, L as b } from "../../../../useBreadcrumb-B8DnuqkR.js";
4
- import { breadcrumbLinkVariants as o, breadcrumbLabelVariants as k } from "./Item.variants.js";
5
- const I = ({
4
+ import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as k } from "./Item.variants.js";
5
+ const g = ({
6
6
  isActive: r,
7
7
  isLast: t,
8
8
  label: n,
9
9
  target: s,
10
10
  theme: c,
11
- to: e,
12
- component: d = "a",
13
- isReactRouterDom: l = !1
11
+ to: a,
12
+ component: l = "a"
14
13
  }) => {
15
- const { isInsideRouter: u } = h(), i = (f) => {
16
- e === "#" && f.preventDefault();
17
- };
18
- return /* @__PURE__ */ a(
14
+ const { isInsideRouter: u } = h(), o = (f) => {
15
+ a === "#" && f.preventDefault();
16
+ }, i = l;
17
+ return /* @__PURE__ */ e(
19
18
  "li",
20
19
  {
21
20
  "aria-current": t ? "page" : void 0,
22
21
  className: "group font-medium text-inherit",
23
22
  "data-theme": c,
24
- children: e ? /* @__PURE__ */ a(p, { children: u || l ? /* @__PURE__ */ a(
23
+ children: a ? /* @__PURE__ */ e(p, { children: u ? /* @__PURE__ */ e(
25
24
  b,
26
25
  {
27
- to: e,
26
+ to: a,
28
27
  target: s,
29
- className: m(o({ isActive: r })),
28
+ className: m(d({ isActive: r })),
30
29
  "aria-disabled": r ? "true" : "false",
31
- onClick: i,
30
+ onClick: o,
32
31
  children: n
33
32
  }
34
- ) : /* @__PURE__ */ a(
35
- d,
33
+ ) : /* @__PURE__ */ e(
34
+ i,
36
35
  {
37
- href: e,
36
+ href: i === "a" ? a : void 0,
37
+ to: i !== "a" ? a : void 0,
38
38
  target: s,
39
- className: m(o({ isActive: r })),
39
+ className: m(d({ isActive: r })),
40
40
  "aria-disabled": r ? "true" : "false",
41
- onClick: i,
41
+ onClick: o,
42
42
  children: n
43
43
  }
44
- ) }) : /* @__PURE__ */ a("span", { className: m(k({ isActive: r })), children: n })
44
+ ) }) : /* @__PURE__ */ e("span", { className: m(k({ isActive: r })), children: n })
45
45
  }
46
46
  );
47
47
  };
48
48
  export {
49
- I as Item
49
+ g as Item
50
50
  };
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.4",
5
+ "version": "0.1.2-alpha.5",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.5",
5
+ "version": "0.1.2-alpha.6",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",