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