@caseparts-org/caseblocks 0.0.80 → 0.0.81

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,33 +1,33 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { routerOverride as s } from "./configureLink.js";
3
- import { linkClassName as l } from "./linkClassName.js";
4
- function I({
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { routerOverride as i } from "./configureLink.js";
3
+ import { linkClassName as d } from "./linkClassName.js";
4
+ function L({
5
5
  href: f,
6
- disabled: r = !1,
7
- unstyled: c = !1,
8
- hideAt: i,
9
- className: p,
10
- children: a,
11
- implementation: t,
12
- ...o
6
+ disabled: o = !1,
7
+ unstyled: m = !1,
8
+ hideAt: u,
9
+ className: c,
10
+ children: e,
11
+ implementation: a,
12
+ ...r
13
13
  }) {
14
- const u = l({ className: p, unstyled: c, disabled: r, hideAt: i }), e = {
15
- ...o,
16
- href: r ? "#" : f,
17
- className: u,
18
- "aria-disabled": r || void 0,
19
- tabIndex: r ? -1 : o.tabIndex,
20
- role: r ? "link" : o.role
21
- }, n = t || s;
22
- return n ? /* @__PURE__ */ m(
14
+ const p = d({ className: c, unstyled: m, disabled: o, hideAt: u }), t = {
15
+ ...r,
16
+ href: o ? "#" : f,
17
+ className: p,
18
+ "aria-disabled": o || void 0,
19
+ tabIndex: o ? -1 : r.tabIndex,
20
+ role: o ? "link" : r.role
21
+ }, s = typeof globalThis < "u" && globalThis.__CASEBLOCKS_LINK_IMPL || null, n = a || i || s;
22
+ return n ? /* @__PURE__ */ l(
23
23
  n,
24
24
  {
25
- ...e,
26
- "data-router-adapter": t ? "explicit" : "configured",
27
- children: a
25
+ ...t,
26
+ "data-router-adapter": a ? "explicit" : i ? "configured-module" : "configured-global",
27
+ children: e
28
28
  }
29
- ) : /* @__PURE__ */ m("a", { ...e, "data-router-adapter": "anchor", children: a });
29
+ ) : /* @__PURE__ */ l("a", { ...t, "data-router-adapter": "anchor", children: e });
30
30
  }
31
31
  export {
32
- I as Link
32
+ L as Link
33
33
  };
@@ -1,8 +1,8 @@
1
- let r = null;
2
- function n(e) {
3
- r = e;
1
+ let i = null;
2
+ function l(e) {
3
+ i = e, globalThis.__CASEBLOCKS_LINK_IMPL = e;
4
4
  }
5
5
  export {
6
- n as configureLink,
7
- r as routerOverride
6
+ l as configureLink,
7
+ i as routerOverride
8
8
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.80",
4
+ "version": "0.0.81",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",