@caseparts-org/caseblocks 0.0.77 → 0.0.79
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/Image/Image.d.ts +21 -15
- package/dist/atoms/Image/Image.js +9 -19
- package/dist/atoms/Link/Link.d.ts +3 -9
- package/dist/atoms/Link/Link.js +27 -48
- package/dist/atoms/Link/configureLink.d.ts +3 -3
- 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.d.ts +0 -2
- package/dist/main-client.js +53 -54
- package/dist/main-server.d.ts +2 -1
- package/dist/main-server.js +19 -17
- package/dist/organisms/NotFound/NotFound.d.ts +3 -2
- package/dist/organisms/NotFound/NotFound.js +28 -23
- package/dist/organisms/Product/Product.d.ts +3 -2
- package/dist/organisms/Product/Product.js +39 -29
- package/package.json +1 -1
- /package/dist/assets/{Link.css → linkClassName.css} +0 -0
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* alt kept optional to mirror the platform, but recommended.
|
|
3
|
+
* External image component contract (e.g. next/image).
|
|
5
4
|
*/
|
|
6
|
-
export
|
|
5
|
+
export type ImageImplementation = React.ComponentType<{
|
|
6
|
+
src: string;
|
|
7
7
|
alt?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & Record<string, any>>;
|
|
10
|
+
export interface UsesImageImplementation {
|
|
11
|
+
imageImplementation?: ImageImplementation;
|
|
12
|
+
imageImplementationProps?: Record<string, any>;
|
|
8
13
|
}
|
|
9
|
-
/** Signature an external image component (e.g. next/image) must satisfy */
|
|
10
|
-
export type ImageComponent = (_props: ImageProps) => JSX.Element;
|
|
11
|
-
export declare function ImageProvider({ component, children, }: {
|
|
12
|
-
component: ImageComponent;
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* via <ImageProvider component={...}> so all internal usages gain optimization
|
|
19
|
-
* without changing design system code.
|
|
15
|
+
* Base + hybrid props.
|
|
16
|
+
* src is required here to satisfy external implementations.
|
|
20
17
|
*/
|
|
21
|
-
export
|
|
18
|
+
export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'src'> {
|
|
19
|
+
src: string;
|
|
20
|
+
alt?: string;
|
|
21
|
+
implementation?: ImageImplementation;
|
|
22
|
+
implementationProps?: Record<string, any>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Hybrid Image: explicit implementation prop wins; fallback <img>.
|
|
26
|
+
*/
|
|
27
|
+
export declare function Image({ implementation, implementationProps, src, alt, ...rest }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
function g({
|
|
3
|
+
implementation: r,
|
|
4
|
+
implementationProps: p,
|
|
5
|
+
src: m,
|
|
6
|
+
alt: o,
|
|
7
|
+
...f
|
|
7
8
|
}) {
|
|
8
|
-
return /* @__PURE__ */ r(
|
|
9
|
+
return r ? /* @__PURE__ */ n(r, { src: m, alt: o, ...f, ...p }) : /* @__PURE__ */ n("img", { src: m, alt: o, ...f });
|
|
9
10
|
}
|
|
10
|
-
const f = c(function({ alt: e, ...m }, i) {
|
|
11
|
-
const o = u(a), n = {
|
|
12
|
-
alt: e,
|
|
13
|
-
...m,
|
|
14
|
-
ref: i
|
|
15
|
-
// Consumers of injected Impl can optionally forward ref
|
|
16
|
-
};
|
|
17
|
-
return o ? /* @__PURE__ */ r(o, { ...n }) : /* @__PURE__ */ r("img", { ...n });
|
|
18
|
-
});
|
|
19
|
-
f.displayName = "Image";
|
|
20
11
|
export {
|
|
21
|
-
|
|
22
|
-
I as ImageProvider
|
|
12
|
+
g as Image
|
|
23
13
|
};
|
|
@@ -4,19 +4,13 @@ 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?: LinkImplementation;
|
|
9
9
|
}
|
|
10
10
|
/** Router component contract (e.g. next/link or react-router Link) */
|
|
11
|
-
export type
|
|
11
|
+
export type LinkImplementation = React.ComponentType<{
|
|
12
12
|
href: string;
|
|
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
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare let routerOverride:
|
|
3
|
-
export declare function configureLink(router:
|
|
1
|
+
import { LinkImplementation } from './Link';
|
|
2
|
+
export declare let routerOverride: LinkImplementation | null;
|
|
3
|
+
export declare function configureLink(router: LinkImplementation): void;
|
|
@@ -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, LinkImplementation } from '../Link/Link';
|
|
3
3
|
import { ButtonStyleProps } from '../Button/buttonClassName';
|
|
4
4
|
export interface LinkButtonProps extends LinkProps, HideAtProps, ButtonStyleProps {
|
|
5
|
+
implementation?: LinkImplementation;
|
|
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.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from './main-server';
|
|
2
|
-
export { Image, ImageProvider } from './atoms/Image/Image';
|
|
3
|
-
export type { ImageProps } from './atoms/Image/Image';
|
|
4
2
|
export { Tooltip } from './molecules/Tooltip/Tooltip';
|
|
5
3
|
export { Account } from './molecules/Account/Account';
|
|
6
4
|
export type { AccountProps } from './molecules/Account/Account';
|
package/dist/main-client.js
CHANGED
|
@@ -1,71 +1,70 @@
|
|
|
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 n } from "./atoms/Root/Head.js";
|
|
5
5
|
import { Icon as u } from "./atoms/Icon/Icon.js";
|
|
6
6
|
import { Root as c } from "./atoms/Root/Root.js";
|
|
7
|
-
import { Separator as
|
|
8
|
-
import { Text as
|
|
9
|
-
import { Input as
|
|
10
|
-
import { Link as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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
|
|
7
|
+
import { Separator as C } from "./atoms/Separator/Separator.js";
|
|
8
|
+
import { Text as g } from "./atoms/Text/Text.js";
|
|
9
|
+
import { Input as B } from "./atoms/Input/Input.js";
|
|
10
|
+
import { Link as v } from "./atoms/Link/Link.js";
|
|
11
|
+
import { linkClassName as S } from "./atoms/Link/linkClassName.js";
|
|
12
|
+
import { configureLink as s, routerOverride as F } from "./atoms/Link/configureLink.js";
|
|
13
|
+
import { LinkButton as N } from "./atoms/LinkButton/LinkButton.js";
|
|
14
|
+
import { Logo as M } from "./molecules/Logo/Logo.js";
|
|
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 { Tooltip as R } from "./molecules/Tooltip/Tooltip.js";
|
|
19
|
+
import { Account as j } from "./molecules/Account/Account.js";
|
|
20
|
+
import { Avatar as z } from "./molecules/Avatar/Avatar.js";
|
|
21
|
+
import { Chip as E } from "./molecules/Chip/Chip.js";
|
|
22
|
+
import { ToggleView as K } from "./molecules/ToggleView/ToggleView.js";
|
|
23
|
+
import { StatefulButton as W } from "./molecules/StatefulButton/StatefulButton.js";
|
|
24
|
+
import { AnimatedCheckMark as Y } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
25
|
+
import { AddToCart as _ } from "./molecules/AddToCart/AddToCart.js";
|
|
26
|
+
import { Availability as oo } from "./molecules/Availability/Availability.js";
|
|
27
|
+
import { BannerCard as to } from "./molecules/BannerCard/BannerCard.js";
|
|
28
|
+
import { MainNav as po } from "./organisms/MainNav/MainNav.js";
|
|
29
|
+
import { ChipSelector as xo } from "./organisms/ChipSelector/ChipSelector.js";
|
|
30
|
+
import { Product as ao } from "./organisms/Product/Product.js";
|
|
31
|
+
import { NotFound as io } from "./organisms/NotFound/NotFound.js";
|
|
32
32
|
import { Carousel as lo } from "./organisms/Carousel/Carousel.js";
|
|
33
33
|
import { Footer as Co } from "./organisms/Footer/Footer.js";
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
j as Account,
|
|
36
|
+
_ as AddToCart,
|
|
37
|
+
Y as AnimatedCheckMark,
|
|
38
|
+
oo as Availability,
|
|
39
|
+
z as Avatar,
|
|
40
|
+
to as BannerCard,
|
|
41
41
|
t as Button,
|
|
42
42
|
lo as Carousel,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
E as Chip,
|
|
44
|
+
xo as ChipSelector,
|
|
45
45
|
x as Column,
|
|
46
46
|
p as Flex,
|
|
47
47
|
Co as Footer,
|
|
48
48
|
f as Grid,
|
|
49
|
-
|
|
49
|
+
n as Head,
|
|
50
50
|
u as Icon,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
G as
|
|
60
|
-
io as Product,
|
|
61
|
-
s as QuantityInput,
|
|
51
|
+
B as Input,
|
|
52
|
+
v as Link,
|
|
53
|
+
N as LinkButton,
|
|
54
|
+
M as Logo,
|
|
55
|
+
po as MainNav,
|
|
56
|
+
io as NotFound,
|
|
57
|
+
O as Pricing,
|
|
58
|
+
ao as Product,
|
|
59
|
+
G as QuantityInput,
|
|
62
60
|
c as Root,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
S as
|
|
61
|
+
b as SearchBox,
|
|
62
|
+
C as Separator,
|
|
63
|
+
W as StatefulButton,
|
|
64
|
+
g as Text,
|
|
65
|
+
K as ToggleView,
|
|
66
|
+
R as Tooltip,
|
|
67
|
+
s as configureLink,
|
|
68
|
+
S as linkClassName,
|
|
69
|
+
F as routerOverride
|
|
71
70
|
};
|
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 type { LinkProps, LinkImplementation as RouterLike } from './atoms/Link/Link';
|
|
18
|
+
export { linkClassName } from './atoms/Link/linkClassName';
|
|
17
19
|
export { configureLink, routerOverride } from './atoms/Link/configureLink';
|
|
18
|
-
export type { LinkProps, RouterLike } from './atoms/Link/Link';
|
|
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
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { UsesImageImplementation } from '../../atoms/Image/Image';
|
|
2
|
+
export interface NotFoundProps extends UsesImageImplementation {
|
|
2
3
|
primaryLinkButtonProps: {
|
|
3
4
|
label: string;
|
|
4
5
|
href: string;
|
|
@@ -8,4 +9,4 @@ export interface NotFoundProps {
|
|
|
8
9
|
href: string;
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
|
-
export declare function NotFound({ primaryLinkButtonProps, secondaryLinkButtonProps }: NotFoundProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function NotFound({ primaryLinkButtonProps, secondaryLinkButtonProps, imageImplementation, imageImplementationProps, }: NotFoundProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Image as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { LinkButton as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { c as
|
|
7
|
-
import '../../assets/NotFound.css';const
|
|
8
|
-
main:
|
|
9
|
-
column:
|
|
10
|
-
description:
|
|
11
|
-
header:
|
|
12
|
-
links:
|
|
1
|
+
import { jsxs as r, jsx as A } from "react/jsx-runtime";
|
|
2
|
+
import { Image as e } from "../../atoms/Image/Image.js";
|
|
3
|
+
import { Text as s } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { LinkButton as t } from "../../atoms/LinkButton/LinkButton.js";
|
|
5
|
+
import { Flex as d } from "../../atoms/Flex/Flex.js";
|
|
6
|
+
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
7
|
+
import '../../assets/NotFound.css';const h = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAGICAYAAAAXhbibAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABQCSURBVHgB7d1fjFzXXQfwc+/MbrJOG2/tRI2BVJs8UIRa1QEkEEiw4QVRRGyDhAoS4DxAX6hIH6gEQewuokLkAZI3zAvOUwwCHId/RYC6QQRaBKqjpBKpRLKOIXbbrLvrtLazM3MP98zu2GPXu7bv7mb+3M9HiufOzN3N+vrud37nzz03BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGC0ZYGxMj13cjYAlUyEsPL1hSOnb3f/ZmCsNLL88wGopAhxsXx49Hb3zwMAlQhQgIoEKEBF+kDH2Ecf2Bs+8sF7w3vl7147F1avtEMMYal8ejwwhrKZLMSjN7669+6J7vn24N6pMGp6520VAnSM/eSHHwifmf1weC+8tPR2eO7ls93tIs8Pr/zOT78cGEvTcyc/3QjhcMyyX89CdjC9tnqlFf61PAc+8bEHw88f/FD4kZn9YVS8efxSeOnMcqhCgLIjfu3Ul7qPMcTjwnO8rSwcWQnrLYzjZZjO5FljrvyXn81CmDlRfoim/x6cngqf+bE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BqQZbPt/0LoDRScv/HtA7/6wp7UHdDrt51oNydSyKZuk1TFpqBN/bcq2Z3VbWIXeSsFYzmgczmtIZrCsdVstxrtRktA1s8dN+H3zf3ldzWLyQeLfGea7z1phDHk8eyFhZ/931DRzVY36q37uK2fLS2022h8K3bS4rvFxdR/OyoLPaSw7fXXpsDthEaz0+xMpNAtwt3NRuvdyV7wpv1T+KbHcQzgXgCm7RSCaTut6ZmCML3WH4bp+dRadrnXjy0UuZltDSJ952/+1f7Uf5dGrtO0oPTaZtVPDOsrgPd/eqf+n+12lqfqMhbhobU8PpjvcnV8o9R323m3vTT21yb3DZ4lqfrtf7sXzDf70nybt/PoKba4rUcKuuv2XW5efX7uwPvXDMSwW0Z6GtP66uzxR9/r4LxRjNnl5d/96bGbsA1sbaSvRDq390rMQrYWBizGluYd1NDoT6T/wz+f2rfa2L8b/bJb6U1ydmUI1Nd4XYnUN69y8vLE3p2Y+nN14KFovRPzqW+FcPliGm39xh/83GoAaq0+l3JuDITc6gqi/quHjLwCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwDj7fzBtEJR2mj07AAAAAElFTkSuQmCC", c = "_main_1dfh4_1", p = "_column_1dfh4_10", b = "_description_1dfh4_14", v = "_header_1dfh4_19", N = "_links_1dfh4_24", n = {
|
|
8
|
+
main: c,
|
|
9
|
+
column: p,
|
|
10
|
+
description: b,
|
|
11
|
+
header: v,
|
|
12
|
+
links: N
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
function X({
|
|
15
|
+
primaryLinkButtonProps: o,
|
|
16
|
+
secondaryLinkButtonProps: i,
|
|
17
|
+
imageImplementation: f,
|
|
18
|
+
imageImplementationProps: l
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ r(d, { flexDirection: "row", alignItems: "center", justifyContent: "center", className: n.main, children: [
|
|
21
|
+
/* @__PURE__ */ A("div", { className: n.column, children: /* @__PURE__ */ A(e, { src: h, alt: "Not found image", implementation: f, implementationProps: l }) }),
|
|
22
|
+
/* @__PURE__ */ r("div", { className: a(n.description, n.column), children: [
|
|
23
|
+
/* @__PURE__ */ A(s, { size: "6xl", variant: "display", as: "h1", className: n.header, children: "404" }),
|
|
24
|
+
/* @__PURE__ */ r(s, { size: "xl", children: [
|
|
20
25
|
"Oops! Well this is embarrassing...",
|
|
21
26
|
/* @__PURE__ */ A("br", {}),
|
|
22
27
|
"what you're looking for is missing or something is on the fritz."
|
|
23
28
|
] }),
|
|
24
|
-
/* @__PURE__ */ A(
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ A(
|
|
27
|
-
/* @__PURE__ */ A(
|
|
29
|
+
/* @__PURE__ */ A(s, { size: "xl", children: "Don't worry—for assistance call us at 1-800-421-0271" }),
|
|
30
|
+
/* @__PURE__ */ r("div", { className: n.links, children: [
|
|
31
|
+
/* @__PURE__ */ A(t, { variant: "primary", size: "md", href: o.href, children: o.label }),
|
|
32
|
+
/* @__PURE__ */ A(t, { variant: "secondary", size: "md", href: i.href, children: i.label })
|
|
28
33
|
] })
|
|
29
34
|
] })
|
|
30
35
|
] });
|
|
31
36
|
}
|
|
32
37
|
export {
|
|
33
|
-
|
|
38
|
+
X as NotFound
|
|
34
39
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { UsesImageImplementation } from '../../atoms/Image/Image';
|
|
1
2
|
import { AvailabilityProps } from '../../molecules/Availability/Availability';
|
|
2
3
|
export type ProductView = "Card" | "Tile";
|
|
3
|
-
export interface ProductProps extends AvailabilityProps {
|
|
4
|
+
export interface ProductProps extends AvailabilityProps, UsesImageImplementation {
|
|
4
5
|
productView: ProductView;
|
|
5
6
|
productDescription: string;
|
|
6
7
|
availDescription: string;
|
|
@@ -18,4 +19,4 @@ export interface ProductProps extends AvailabilityProps {
|
|
|
18
19
|
onAddToCart: (_itemKey: number, _quantity: number) => void;
|
|
19
20
|
onClose?: (_itemKey: number) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, imageImplementation, imageImplementationProps, attributes, className, onAddToCart, onClose, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Image as T } from "../../atoms/Image/Image.js";
|
|
3
3
|
import { Link as g } from "../../atoms/Link/Link.js";
|
|
4
|
-
import { Text as
|
|
4
|
+
import { Text as e } from "../../atoms/Text/Text.js";
|
|
5
5
|
import { Availability as v } from "../../molecules/Availability/Availability.js";
|
|
6
6
|
import { Pricing as x } from "../../molecules/Pricing/Pricing.js";
|
|
7
7
|
import { AddToCart as I } from "../../molecules/AddToCart/AddToCart.js";
|
|
8
|
-
import { Icon as
|
|
8
|
+
import { Icon as R } from "../../atoms/Icon/Icon.js";
|
|
9
9
|
import { c as w } from "../../clsx-OuTLNxxd.js";
|
|
10
|
-
import '../../assets/Product.css';const
|
|
11
|
-
productCard:
|
|
12
|
-
productInformation:
|
|
13
|
-
purchaseInformation:
|
|
14
|
-
addToCart:
|
|
15
|
-
addToCartButton:
|
|
16
|
-
partNumber:
|
|
17
|
-
partNumberLabel:
|
|
18
|
-
productTile:
|
|
19
|
-
topRow:
|
|
20
|
-
productData:
|
|
21
|
-
purchase:
|
|
22
|
-
attributeContainer:
|
|
10
|
+
import '../../assets/Product.css';const $ = "_productCard_10edn_1", A = "_productInformation_10edn_22", D = "_purchaseInformation_10edn_29", j = "_addToCart_10edn_37", k = "_addToCartButton_10edn_40", y = "_partNumber_10edn_48", q = "_partNumberLabel_10edn_55", E = "_productTile_10edn_59", F = "_topRow_10edn_80", G = "_productData_10edn_111", J = "_purchase_10edn_29", M = "_attributeContainer_10edn_148", t = {
|
|
11
|
+
productCard: $,
|
|
12
|
+
productInformation: A,
|
|
13
|
+
purchaseInformation: D,
|
|
14
|
+
addToCart: j,
|
|
15
|
+
addToCartButton: k,
|
|
16
|
+
partNumber: y,
|
|
17
|
+
partNumberLabel: q,
|
|
18
|
+
productTile: E,
|
|
19
|
+
topRow: F,
|
|
20
|
+
productData: G,
|
|
21
|
+
purchase: J,
|
|
22
|
+
attributeContainer: M
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function S({
|
|
25
25
|
productView: z,
|
|
26
26
|
itemKey: s,
|
|
27
|
-
partNumber:
|
|
27
|
+
partNumber: o,
|
|
28
28
|
productDescription: l,
|
|
29
29
|
availDescription: m,
|
|
30
30
|
availId: d,
|
|
@@ -34,19 +34,29 @@ function Z({
|
|
|
34
34
|
priceLabel: _,
|
|
35
35
|
price: n,
|
|
36
36
|
imgSrc: N,
|
|
37
|
+
imageImplementation: B,
|
|
38
|
+
imageImplementationProps: L,
|
|
37
39
|
attributes: c,
|
|
38
40
|
className: b,
|
|
39
41
|
onAddToCart: f,
|
|
40
42
|
onClose: C,
|
|
41
|
-
...
|
|
43
|
+
...P
|
|
42
44
|
}) {
|
|
43
45
|
return z === "Card" ? /* @__PURE__ */ a("div", { className: w(t.productCard, b), children: [
|
|
44
|
-
/* @__PURE__ */ r(
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
T,
|
|
48
|
+
{
|
|
49
|
+
src: N,
|
|
50
|
+
alt: `${o} product image`,
|
|
51
|
+
implementation: B,
|
|
52
|
+
implementationProps: L
|
|
53
|
+
}
|
|
54
|
+
),
|
|
45
55
|
/* @__PURE__ */ a("div", { className: t.productInformation, children: [
|
|
46
56
|
/* @__PURE__ */ r(g, { href: h, children: l }),
|
|
47
57
|
/* @__PURE__ */ a("div", { className: t.partNumber, children: [
|
|
48
|
-
/* @__PURE__ */ r(
|
|
49
|
-
/* @__PURE__ */ r(
|
|
58
|
+
/* @__PURE__ */ r(e, { size: "sm", className: t.partNumberLabel, children: "Part #" }),
|
|
59
|
+
/* @__PURE__ */ r(e, { size: "sm", weight: "semibold", children: o })
|
|
50
60
|
] })
|
|
51
61
|
] }),
|
|
52
62
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
|
|
@@ -72,18 +82,18 @@ function Z({
|
|
|
72
82
|
buttonDoneText: ""
|
|
73
83
|
}
|
|
74
84
|
)
|
|
75
|
-
] }) : /* @__PURE__ */ a("div", { className: w(t.productTile, b), ...
|
|
76
|
-
/* @__PURE__ */ r(T, { src: N, alt: `${
|
|
85
|
+
] }) : /* @__PURE__ */ a("div", { className: w(t.productTile, b), ...P, children: [
|
|
86
|
+
/* @__PURE__ */ r(T, { src: N, alt: `${o} product image` }),
|
|
77
87
|
/* @__PURE__ */ a("div", { className: t.productData, children: [
|
|
78
88
|
/* @__PURE__ */ a("div", { className: t.topRow, children: [
|
|
79
89
|
/* @__PURE__ */ a("div", { className: t.productInformation, children: [
|
|
80
90
|
/* @__PURE__ */ r(g, { href: h, children: l }),
|
|
81
91
|
/* @__PURE__ */ a("div", { className: t.partNumber, children: [
|
|
82
|
-
/* @__PURE__ */ r(
|
|
83
|
-
/* @__PURE__ */ r(
|
|
92
|
+
/* @__PURE__ */ r(e, { size: "sm", className: t.partNumberLabel, children: "Part #" }),
|
|
93
|
+
/* @__PURE__ */ r(e, { size: "sm", weight: "semibold", children: o })
|
|
84
94
|
] })
|
|
85
95
|
] }),
|
|
86
|
-
C && /* @__PURE__ */ r("button", { onClick: () => C(s), children: /* @__PURE__ */ r(
|
|
96
|
+
C && /* @__PURE__ */ r("button", { onClick: () => C(s), children: /* @__PURE__ */ r(R, { size: "sm", iconKey: "fa-light fa-xmark" }) })
|
|
87
97
|
] }),
|
|
88
98
|
/* @__PURE__ */ a("div", { className: t.purchase, children: [
|
|
89
99
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
|
|
@@ -101,15 +111,15 @@ function Z({
|
|
|
101
111
|
/* @__PURE__ */ r(I, { itemKey: s, onAdd: f, className: t.addToCart, addButtonClassName: t.addToCartButton })
|
|
102
112
|
] }),
|
|
103
113
|
c && c.length > 0 && /* @__PURE__ */ r("ul", { className: t.attributeContainer, children: c.map((i) => /* @__PURE__ */ a("li", { children: [
|
|
104
|
-
/* @__PURE__ */ a(
|
|
114
|
+
/* @__PURE__ */ a(e, { size: "xs", weight: "light", children: [
|
|
105
115
|
i.label,
|
|
106
116
|
":"
|
|
107
117
|
] }),
|
|
108
|
-
/* @__PURE__ */ r(
|
|
118
|
+
/* @__PURE__ */ r(e, { size: "xs", weight: "semibold", children: i.value })
|
|
109
119
|
] }, `${i.label}.${i.value}`)) })
|
|
110
120
|
] })
|
|
111
121
|
] });
|
|
112
122
|
}
|
|
113
123
|
export {
|
|
114
|
-
|
|
124
|
+
S as Product
|
|
115
125
|
};
|
package/package.json
CHANGED
|
File without changes
|