@caseparts-org/caseblocks 0.0.76 → 0.0.77

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.
@@ -13,7 +13,6 @@ export type RouterLike = React.ComponentType<{
13
13
  className?: string;
14
14
  children: React.ReactNode;
15
15
  } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">>;
16
- export declare function configureLink(routerComponent: RouterLike): void;
17
16
  export declare function linkClassName({ className, unstyled, disabled, hideAt }: {
18
17
  className?: string;
19
18
  unstyled?: boolean;
@@ -1,58 +1,54 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { t as d } from "../../Text.module-Dzhzk2fH.js";
3
- import { c as p } from "../../clsx-OuTLNxxd.js";
4
- import { getHideAtStyles as k } from "../HideAt.js";
5
- import '../../assets/Link.css';const x = "_link_ygp31_1", g = "_disabled_ygp31_14", c = {
6
- link: x,
7
- disabled: g
2
+ import { t as p } from "../../Text.module-Dzhzk2fH.js";
3
+ import { c as u } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as x } from "../HideAt.js";
5
+ import { routerOverride as l } from "./configureLink.js";
6
+ import '../../assets/Link.css';const k = "_link_ygp31_1", _ = "_disabled_ygp31_14", m = {
7
+ link: k,
8
+ disabled: _
8
9
  };
9
- let n = null;
10
- function N(e) {
11
- n = e;
12
- }
13
- function _({
14
- className: e,
10
+ function g({
11
+ className: o,
15
12
  unstyled: t,
16
- disabled: o,
17
- hideAt: i
13
+ disabled: r,
14
+ hideAt: n
18
15
  }) {
19
- return p(
20
- e,
21
- !t && d["text-body"],
22
- !t && c.link,
23
- o && c.disabled,
24
- k(i)
16
+ return u(
17
+ o,
18
+ !t && p["text-body"],
19
+ !t && m.link,
20
+ r && m.disabled,
21
+ x(n)
25
22
  );
26
23
  }
27
- function R({
28
- href: e,
24
+ function S({
25
+ href: o,
29
26
  disabled: t = !1,
30
- unstyled: o = !1,
31
- external: i,
32
- hideAt: f,
33
- className: m,
34
- children: a,
35
- ...r
27
+ unstyled: r = !1,
28
+ external: n,
29
+ hideAt: c,
30
+ className: f,
31
+ children: i,
32
+ ...e
36
33
  }) {
37
- const u = _({ className: m, unstyled: o, disabled: t, hideAt: f }), l = {
38
- ...r,
39
- href: t ? "#" : e,
40
- className: u,
34
+ const d = g({ className: f, unstyled: r, disabled: t, hideAt: c }), a = {
35
+ ...e,
36
+ href: t ? "#" : o,
37
+ className: d,
41
38
  "aria-disabled": t || void 0,
42
- tabIndex: t ? -1 : r.tabIndex,
43
- role: t ? "link" : r.role
39
+ tabIndex: t ? -1 : e.tabIndex,
40
+ role: t ? "link" : e.role
44
41
  };
45
- return n ? /* @__PURE__ */ s(
46
- n,
42
+ return l ? /* @__PURE__ */ s(
43
+ l,
47
44
  {
48
- ...l,
45
+ ...a,
49
46
  "data-router-adapter": "configured",
50
- children: a
47
+ children: i
51
48
  }
52
- ) : /* @__PURE__ */ s("a", { ...l, children: a });
49
+ ) : /* @__PURE__ */ s("a", { ...a, children: i });
53
50
  }
54
51
  export {
55
- R as Link,
56
- N as configureLink,
57
- _ as linkClassName
52
+ S as Link,
53
+ g as linkClassName
58
54
  };
@@ -0,0 +1,3 @@
1
+ import { RouterLike } from './Link';
2
+ export declare let routerOverride: RouterLike | null;
3
+ export declare function configureLink(router: RouterLike): void;
@@ -0,0 +1,8 @@
1
+ let r = null;
2
+ function n(e) {
3
+ r = e;
4
+ }
5
+ export {
6
+ n as configureLink,
7
+ r as routerOverride
8
+ };
@@ -3,4 +3,4 @@ import { LinkProps } from '../Link/Link';
3
3
  import { ButtonStyleProps } from '../Button/buttonClassName';
4
4
  export interface LinkButtonProps extends LinkProps, HideAtProps, ButtonStyleProps {
5
5
  }
6
- export declare function LinkButton({ href, children, size, variant, hideAt, className, disabled, onClick, ...otherProps }: LinkButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function LinkButton({ href, children, size, variant, hideAt, className, disabled, ...otherProps }: LinkButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,39 +1,31 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { Link as l } from "../Link/Link.js";
3
- import { buttonClassNames as x } from "../Button/buttonClassName.js";
4
- import { c as N } from "../../clsx-OuTLNxxd.js";
5
- function v({
6
- href: m,
7
- children: n,
8
- size: s,
9
- variant: e,
10
- hideAt: a,
11
- className: u,
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { Link as u } from "../Link/Link.js";
3
+ import { buttonClassNames as f } from "../Button/buttonClassName.js";
4
+ import { c as p } from "../../clsx-OuTLNxxd.js";
5
+ function L({
6
+ href: o,
7
+ children: r,
8
+ size: m,
9
+ variant: s,
10
+ hideAt: n,
11
+ className: e,
12
12
  disabled: t,
13
- onClick: r,
14
- ...f
13
+ // onClick,
14
+ ...a
15
15
  }) {
16
- const p = x({ size: s, variant: e, hideAt: a, className: N(u), disabled: t });
17
- function i(o) {
18
- if (t) {
19
- o.preventDefault(), o.stopPropagation();
20
- return;
21
- }
22
- r == null || r(o);
23
- }
24
- return /* @__PURE__ */ c(
25
- l,
16
+ const c = f({ size: m, variant: s, hideAt: n, className: p(e), disabled: t });
17
+ return /* @__PURE__ */ i(
18
+ u,
26
19
  {
27
- href: m,
28
- className: p,
20
+ href: o,
21
+ className: c,
29
22
  disabled: t,
30
- onClick: i,
31
23
  unstyled: !0,
32
- ...f,
33
- children: n
24
+ ...a,
25
+ children: r
34
26
  }
35
27
  );
36
28
  }
37
29
  export {
38
- v as LinkButton
30
+ L as LinkButton
39
31
  };
@@ -1,6 +1,4 @@
1
1
  export * from './main-server';
2
- export { LinkButton } from './atoms/LinkButton/LinkButton';
3
- export type { LinkButtonProps } from './atoms/LinkButton/LinkButton';
4
2
  export { Image, ImageProvider } from './atoms/Image/Image';
5
3
  export type { ImageProps } from './atoms/Image/Image';
6
4
  export { Tooltip } from './molecules/Tooltip/Tooltip';
@@ -1,69 +1,71 @@
1
1
  import { Button as t } from "./atoms/Button/Button.js";
2
2
  import { Flex as p } from "./atoms/Flex/Flex.js";
3
3
  import { Column as x, Grid as f } from "./atoms/Grid/Grid.js";
4
- import { Head as n } from "./atoms/Root/Head.js";
4
+ import { Head as i } from "./atoms/Root/Head.js";
5
5
  import { Icon as u } from "./atoms/Icon/Icon.js";
6
- import { Root as d } from "./atoms/Root/Root.js";
6
+ import { Root as c } from "./atoms/Root/Root.js";
7
7
  import { Separator as g } from "./atoms/Separator/Separator.js";
8
8
  import { Text as k } from "./atoms/Text/Text.js";
9
- import { Input as B } from "./atoms/Input/Input.js";
10
- import { Link as h, configureLink as v } from "./atoms/Link/Link.js";
11
- import { Logo as S } from "./molecules/Logo/Logo.js";
12
- import { SearchBox as F } from "./molecules/SearchBox/SearchBox.js";
13
- import { QuantityInput as y } from "./molecules/QuantityInput/QuantityInput.js";
14
- import { Pricing as N } from "./molecules/Pricing/Pricing.js";
15
- import { LinkButton as s } from "./atoms/LinkButton/LinkButton.js";
16
- import { Image as G, ImageProvider as H } from "./atoms/Image/Image.js";
17
- import { Tooltip as R } from "./molecules/Tooltip/Tooltip.js";
18
- import { Account as j } from "./molecules/Account/Account.js";
19
- import { Avatar as z } from "./molecules/Avatar/Avatar.js";
20
- import { Chip as E } from "./molecules/Chip/Chip.js";
21
- import { ToggleView as K } from "./molecules/ToggleView/ToggleView.js";
22
- import { StatefulButton as U } from "./molecules/StatefulButton/StatefulButton.js";
23
- import { AnimatedCheckMark as X } from "./molecules/StatefulButton/AnimatedCheckmark.js";
24
- import { AddToCart as Z } from "./molecules/AddToCart/AddToCart.js";
25
- import { Availability as $ } from "./molecules/Availability/Availability.js";
26
- import { BannerCard as ro } from "./molecules/BannerCard/BannerCard.js";
27
- import { MainNav as eo } from "./organisms/MainNav/MainNav.js";
28
- import { ChipSelector as mo } from "./organisms/ChipSelector/ChipSelector.js";
29
- import { Product as fo } from "./organisms/Product/Product.js";
30
- import { NotFound as no } from "./organisms/NotFound/NotFound.js";
31
- import { Carousel as uo } from "./organisms/Carousel/Carousel.js";
32
- import { Footer as lo } from "./organisms/Footer/Footer.js";
9
+ import { Input as A } from "./atoms/Input/Input.js";
10
+ import { Link as I } from "./atoms/Link/Link.js";
11
+ import { configureLink as L, routerOverride as S } from "./atoms/Link/configureLink.js";
12
+ import { LinkButton as F } from "./atoms/LinkButton/LinkButton.js";
13
+ import { Logo as y } from "./molecules/Logo/Logo.js";
14
+ import { SearchBox as N } from "./molecules/SearchBox/SearchBox.js";
15
+ import { QuantityInput as s } from "./molecules/QuantityInput/QuantityInput.js";
16
+ import { Pricing as G } from "./molecules/Pricing/Pricing.js";
17
+ import { Image as O, ImageProvider as Q } from "./atoms/Image/Image.js";
18
+ import { Tooltip as V } from "./molecules/Tooltip/Tooltip.js";
19
+ import { Account as q } from "./molecules/Account/Account.js";
20
+ import { Avatar as D } from "./molecules/Avatar/Avatar.js";
21
+ import { Chip as J } from "./molecules/Chip/Chip.js";
22
+ import { ToggleView as U } from "./molecules/ToggleView/ToggleView.js";
23
+ import { StatefulButton as X } from "./molecules/StatefulButton/StatefulButton.js";
24
+ import { AnimatedCheckMark as Z } from "./molecules/StatefulButton/AnimatedCheckmark.js";
25
+ import { AddToCart as $ } from "./molecules/AddToCart/AddToCart.js";
26
+ import { Availability as ro } from "./molecules/Availability/Availability.js";
27
+ import { BannerCard as eo } from "./molecules/BannerCard/BannerCard.js";
28
+ import { MainNav as mo } from "./organisms/MainNav/MainNav.js";
29
+ import { ChipSelector as fo } from "./organisms/ChipSelector/ChipSelector.js";
30
+ import { Product as io } from "./organisms/Product/Product.js";
31
+ import { NotFound as uo } from "./organisms/NotFound/NotFound.js";
32
+ import { Carousel as lo } from "./organisms/Carousel/Carousel.js";
33
+ import { Footer as Co } from "./organisms/Footer/Footer.js";
33
34
  export {
34
- j as Account,
35
- Z as AddToCart,
36
- X as AnimatedCheckMark,
37
- $ as Availability,
38
- z as Avatar,
39
- ro as BannerCard,
35
+ q as Account,
36
+ $ as AddToCart,
37
+ Z as AnimatedCheckMark,
38
+ ro as Availability,
39
+ D as Avatar,
40
+ eo as BannerCard,
40
41
  t as Button,
41
- uo as Carousel,
42
- E as Chip,
43
- mo as ChipSelector,
42
+ lo as Carousel,
43
+ J as Chip,
44
+ fo as ChipSelector,
44
45
  x as Column,
45
46
  p as Flex,
46
- lo as Footer,
47
+ Co as Footer,
47
48
  f as Grid,
48
- n as Head,
49
+ i as Head,
49
50
  u as Icon,
50
- G as Image,
51
- H as ImageProvider,
52
- B as Input,
53
- h as Link,
54
- s as LinkButton,
55
- S as Logo,
56
- eo as MainNav,
57
- no as NotFound,
58
- N as Pricing,
59
- fo as Product,
60
- y as QuantityInput,
61
- d as Root,
62
- F as SearchBox,
51
+ O as Image,
52
+ Q as ImageProvider,
53
+ A as Input,
54
+ I as Link,
55
+ F as LinkButton,
56
+ y as Logo,
57
+ mo as MainNav,
58
+ uo as NotFound,
59
+ G as Pricing,
60
+ io as Product,
61
+ s as QuantityInput,
62
+ c as Root,
63
+ N as SearchBox,
63
64
  g as Separator,
64
- U as StatefulButton,
65
+ X as StatefulButton,
65
66
  k as Text,
66
- K as ToggleView,
67
- R as Tooltip,
68
- v as configureLink
67
+ U as ToggleView,
68
+ V as Tooltip,
69
+ L as configureLink,
70
+ S as routerOverride
69
71
  };
@@ -13,8 +13,11 @@ export { Text } from './atoms/Text/Text';
13
13
  export type { TextProps } from './atoms/Text/Text';
14
14
  export { Input } from './atoms/Input/Input';
15
15
  export type { InputProps } from './atoms/Input/Input';
16
- export { Link, configureLink } from './atoms/Link/Link';
16
+ export { Link } from './atoms/Link/Link';
17
+ export { configureLink, routerOverride } from './atoms/Link/configureLink';
17
18
  export type { LinkProps, RouterLike } from './atoms/Link/Link';
19
+ export { LinkButton } from './atoms/LinkButton/LinkButton';
20
+ export type { LinkButtonProps } from './atoms/LinkButton/LinkButton';
18
21
  export { Logo } from './molecules/Logo/Logo';
19
22
  export type { LogoProps } from './molecules/Logo/Logo';
20
23
  export { SearchBox } from './molecules/SearchBox/SearchBox';
@@ -3,15 +3,17 @@ import { Flex as p } from "./atoms/Flex/Flex.js";
3
3
  import { Column as f, Grid as m } from "./atoms/Grid/Grid.js";
4
4
  import { Head as i } from "./atoms/Root/Head.js";
5
5
  import { Icon as a } from "./atoms/Icon/Icon.js";
6
- import { Root as g } from "./atoms/Root/Root.js";
7
- import { Separator as L } from "./atoms/Separator/Separator.js";
8
- import { Text as k } from "./atoms/Text/Text.js";
9
- import { Input as B } from "./atoms/Input/Input.js";
10
- import { Link as h, configureLink as y } from "./atoms/Link/Link.js";
11
- import { Logo as F } from "./molecules/Logo/Logo.js";
12
- import { SearchBox as H } from "./molecules/SearchBox/SearchBox.js";
13
- import { QuantityInput as Q } from "./molecules/QuantityInput/QuantityInput.js";
14
- import { Pricing as T } from "./molecules/Pricing/Pricing.js";
6
+ import { Root as L } from "./atoms/Root/Root.js";
7
+ import { Separator as g } from "./atoms/Separator/Separator.js";
8
+ import { Text as B } from "./atoms/Text/Text.js";
9
+ import { Input as l } from "./atoms/Input/Input.js";
10
+ import { Link as h } from "./atoms/Link/Link.js";
11
+ import { configureLink as y, routerOverride as C } from "./atoms/Link/configureLink.js";
12
+ import { LinkButton as G } from "./atoms/LinkButton/LinkButton.js";
13
+ import { Logo as O } from "./molecules/Logo/Logo.js";
14
+ import { SearchBox as Q } from "./molecules/SearchBox/SearchBox.js";
15
+ import { QuantityInput as T } from "./molecules/QuantityInput/QuantityInput.js";
16
+ import { Pricing as j } from "./molecules/Pricing/Pricing.js";
15
17
  export {
16
18
  t as Button,
17
19
  f as Column,
@@ -19,14 +21,16 @@ export {
19
21
  m as Grid,
20
22
  i as Head,
21
23
  a as Icon,
22
- B as Input,
24
+ l as Input,
23
25
  h as Link,
24
- F as Logo,
25
- T as Pricing,
26
- Q as QuantityInput,
27
- g as Root,
28
- H as SearchBox,
29
- L as Separator,
30
- k as Text,
31
- y as configureLink
26
+ G as LinkButton,
27
+ O as Logo,
28
+ j as Pricing,
29
+ T as QuantityInput,
30
+ L as Root,
31
+ Q as SearchBox,
32
+ g as Separator,
33
+ B as Text,
34
+ y as configureLink,
35
+ C as routerOverride
32
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.76",
4
+ "version": "0.0.77",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",