@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.
- package/dist/atoms/Link/Link.d.ts +0 -1
- package/dist/atoms/Link/Link.js +38 -42
- package/dist/atoms/Link/configureLink.d.ts +3 -0
- package/dist/atoms/Link/configureLink.js +8 -0
- package/dist/atoms/LinkButton/LinkButton.d.ts +1 -1
- package/dist/atoms/LinkButton/LinkButton.js +21 -29
- package/dist/main-client.d.ts +0 -2
- package/dist/main-client.js +56 -54
- package/dist/main-server.d.ts +4 -1
- package/dist/main-server.js +22 -18
- package/package.json +1 -1
|
@@ -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;
|
package/dist/atoms/Link/Link.js
CHANGED
|
@@ -1,58 +1,54 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as
|
|
4
|
-
import { getHideAtStyles as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
n = e;
|
|
12
|
-
}
|
|
13
|
-
function _({
|
|
14
|
-
className: e,
|
|
10
|
+
function g({
|
|
11
|
+
className: o,
|
|
15
12
|
unstyled: t,
|
|
16
|
-
disabled:
|
|
17
|
-
hideAt:
|
|
13
|
+
disabled: r,
|
|
14
|
+
hideAt: n
|
|
18
15
|
}) {
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
!t &&
|
|
22
|
-
!t &&
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
28
|
-
href:
|
|
24
|
+
function S({
|
|
25
|
+
href: o,
|
|
29
26
|
disabled: t = !1,
|
|
30
|
-
unstyled:
|
|
31
|
-
external:
|
|
32
|
-
hideAt:
|
|
33
|
-
className:
|
|
34
|
-
children:
|
|
35
|
-
...
|
|
27
|
+
unstyled: r = !1,
|
|
28
|
+
external: n,
|
|
29
|
+
hideAt: c,
|
|
30
|
+
className: f,
|
|
31
|
+
children: i,
|
|
32
|
+
...e
|
|
36
33
|
}) {
|
|
37
|
-
const
|
|
38
|
-
...
|
|
39
|
-
href: t ? "#" :
|
|
40
|
-
className:
|
|
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 :
|
|
43
|
-
role: t ? "link" :
|
|
39
|
+
tabIndex: t ? -1 : e.tabIndex,
|
|
40
|
+
role: t ? "link" : e.role
|
|
44
41
|
};
|
|
45
|
-
return
|
|
46
|
-
|
|
42
|
+
return l ? /* @__PURE__ */ s(
|
|
43
|
+
l,
|
|
47
44
|
{
|
|
48
|
-
...
|
|
45
|
+
...a,
|
|
49
46
|
"data-router-adapter": "configured",
|
|
50
|
-
children:
|
|
47
|
+
children: i
|
|
51
48
|
}
|
|
52
|
-
) : /* @__PURE__ */ s("a", { ...
|
|
49
|
+
) : /* @__PURE__ */ s("a", { ...a, children: i });
|
|
53
50
|
}
|
|
54
51
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
_ as linkClassName
|
|
52
|
+
S as Link,
|
|
53
|
+
g as linkClassName
|
|
58
54
|
};
|
|
@@ -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,
|
|
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
|
|
2
|
-
import { Link as
|
|
3
|
-
import { buttonClassNames as
|
|
4
|
-
import { c as
|
|
5
|
-
function
|
|
6
|
-
href:
|
|
7
|
-
children:
|
|
8
|
-
size:
|
|
9
|
-
variant:
|
|
10
|
-
hideAt:
|
|
11
|
-
className:
|
|
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
|
|
14
|
-
...
|
|
13
|
+
// onClick,
|
|
14
|
+
...a
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
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:
|
|
28
|
-
className:
|
|
20
|
+
href: o,
|
|
21
|
+
className: c,
|
|
29
22
|
disabled: t,
|
|
30
|
-
onClick: i,
|
|
31
23
|
unstyled: !0,
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
24
|
+
...a,
|
|
25
|
+
children: r
|
|
34
26
|
}
|
|
35
27
|
);
|
|
36
28
|
}
|
|
37
29
|
export {
|
|
38
|
-
|
|
30
|
+
L as LinkButton
|
|
39
31
|
};
|
package/dist/main-client.d.ts
CHANGED
|
@@ -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';
|
package/dist/main-client.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
10
|
-
import { Link as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
lo as Carousel,
|
|
43
|
+
J as Chip,
|
|
44
|
+
fo as ChipSelector,
|
|
44
45
|
x as Column,
|
|
45
46
|
p as Flex,
|
|
46
|
-
|
|
47
|
+
Co as Footer,
|
|
47
48
|
f as Grid,
|
|
48
|
-
|
|
49
|
+
i as Head,
|
|
49
50
|
u as Icon,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
65
|
+
X as StatefulButton,
|
|
65
66
|
k as Text,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
U as ToggleView,
|
|
68
|
+
V as Tooltip,
|
|
69
|
+
L as configureLink,
|
|
70
|
+
S as routerOverride
|
|
69
71
|
};
|
package/dist/main-server.d.ts
CHANGED
|
@@ -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
|
|
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';
|
package/dist/main-server.js
CHANGED
|
@@ -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
|
|
7
|
-
import { Separator as
|
|
8
|
-
import { Text as
|
|
9
|
-
import { Input as
|
|
10
|
-
import { Link as h
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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
|
-
|
|
24
|
+
l as Input,
|
|
23
25
|
h as Link,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
};
|