@caseparts-org/caseblocks 0.0.73 → 0.0.75

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.
@@ -14,4 +14,4 @@ export declare function linkClassName({ className, unstyled, disabled, hideAt }:
14
14
  hideAt?: HideAtProps["hideAt"];
15
15
  }): string;
16
16
  /** SSR‑safe base link primitive */
17
- export declare function Link({ href, disabled, unstyled, external, hideAt, className, children, onClick, ...rest }: LinkProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Link({ href, disabled, unstyled, hideAt, className, children, ...rest }: LinkProps): import("react/jsx-runtime").JSX.Element;
@@ -1,55 +1,48 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { t as u } from "../../Text.module-Dzhzk2fH.js";
3
- import { c as _ } from "../../clsx-OuTLNxxd.js";
4
- import { getHideAtStyles as g } from "../HideAt.js";
5
- import '../../assets/Link.css';const k = "_link_ygp31_1", y = "_disabled_ygp31_14", i = {
6
- link: k,
7
- disabled: y
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { t as f } from "../../Text.module-Dzhzk2fH.js";
3
+ import { c as d } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as k } from "../HideAt.js";
5
+ import '../../assets/Link.css';const p = "_link_ygp31_1", x = "_disabled_ygp31_14", i = {
6
+ link: p,
7
+ disabled: x
8
8
  };
9
- function b({
9
+ function _({
10
10
  className: e,
11
11
  unstyled: t,
12
- disabled: n,
13
- hideAt: s
12
+ disabled: o,
13
+ hideAt: n
14
14
  }) {
15
- return _(
15
+ return d(
16
16
  e,
17
- !t && u["text-body"],
17
+ !t && f["text-body"],
18
18
  !t && i.link,
19
- n && i.disabled,
20
- g(s)
19
+ o && i.disabled,
20
+ k(n)
21
21
  );
22
22
  }
23
- function S({
23
+ function h({
24
24
  href: e,
25
25
  disabled: t = !1,
26
- unstyled: n = !1,
27
- external: s,
28
- hideAt: l,
29
- className: f,
30
- children: m,
31
- onClick: r,
32
- ...o
26
+ unstyled: o = !1,
27
+ // external,
28
+ hideAt: n,
29
+ className: r,
30
+ children: l,
31
+ // onClick,
32
+ ...s
33
33
  }) {
34
- function p(a) {
35
- if (t) {
36
- a.preventDefault(), a.stopPropagation();
37
- return;
38
- }
39
- r == null || r(a);
40
- }
41
- const c = b({ className: f, unstyled: n, disabled: t, hideAt: l }), x = {
42
- ...o,
34
+ const a = _({ className: r, unstyled: o, disabled: t, hideAt: n }), m = {
35
+ ...s,
43
36
  href: t ? "#" : e,
44
- className: c,
45
- onClick: p,
37
+ className: a,
38
+ // onClick: handleClick,
46
39
  "aria-disabled": t || void 0,
47
- tabIndex: t ? -1 : o.tabIndex,
48
- role: t ? "link" : o.role
40
+ tabIndex: t ? -1 : s.tabIndex,
41
+ role: t ? "link" : s.role
49
42
  };
50
- return /* @__PURE__ */ d("a", { ...x, children: m });
43
+ return /* @__PURE__ */ c("a", { ...m, children: l });
51
44
  }
52
45
  export {
53
- S as Link,
54
- b as linkClassName
46
+ h as Link,
47
+ _ as linkClassName
55
48
  };
@@ -1,35 +1,36 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { linkClassName as x } from "./Link.js";
3
- function k(a) {
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { linkClassName as l } from "./Link.js";
3
+ function k(n) {
4
4
  return function({
5
5
  href: o,
6
6
  disabled: r = !1,
7
7
  unstyled: f = !1,
8
8
  hideAt: p,
9
- className: i,
10
- children: m,
9
+ className: u,
10
+ children: i,
11
11
  onClick: t,
12
- ...n
12
+ ...e
13
13
  }) {
14
- function u(e) {
14
+ function m(a) {
15
15
  if (r) {
16
- e.preventDefault(), e.stopPropagation();
16
+ a.preventDefault(), a.stopPropagation();
17
17
  return;
18
18
  }
19
- t == null || t(e);
19
+ t == null || t(a);
20
20
  }
21
- const c = x({ className: i, unstyled: f, disabled: r, hideAt: p });
22
- return /* @__PURE__ */ l(
23
- a,
21
+ const x = l({ className: u, unstyled: f, disabled: r, hideAt: p });
22
+ return /* @__PURE__ */ c(
23
+ n,
24
24
  {
25
- ...n,
25
+ ...e,
26
26
  href: r ? "#" : o,
27
- className: c,
28
- onClick: u,
27
+ className: x,
28
+ onClick: m,
29
29
  "aria-disabled": r || void 0,
30
- tabIndex: r ? -1 : n.tabIndex,
31
- role: r ? "link" : n.role,
32
- children: m
30
+ tabIndex: r ? -1 : e.tabIndex,
31
+ role: r ? "link" : e.role,
32
+ "data-router-adapter": "next",
33
+ children: i
33
34
  }
34
35
  );
35
36
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.73",
4
+ "version": "0.0.75",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",