@caseparts-org/caseblocks 0.0.230 → 0.0.231
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._main_o7lat_1{border:1px solid var(--border-border-primary);border-radius:var(--radius-radius-lg);background:var(--surface-surface-page);overflow:hidden;max-width:1130px;min-height:580px;margin:0 auto}@media (max-width: 767px){._main_o7lat_1{flex-direction:column}}._visual_o7lat_15{position:relative;width:50%;min-width:340px;background:linear-gradient(120deg,#f7f8f8 0%,var(--color-brand-secondary-lt-teal-blue) 55%);overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--spacing-spacing-xl);padding:var(--spacing-spacing-3xl) var(--spacing-spacing-xl) var(--spacing-spacing-2xl)}@media (max-width: 767px){._visual_o7lat_15{width:100%;min-width:0}}._visual_o7lat_15:before,._visual_o7lat_15:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#cde8f5;pointer-events:none}._visual_o7lat_15:before{top:-92px;right:-92px}._visual_o7lat_15:after{left:-100px;bottom:-100px}._content_o7lat_55{position:relative;width:50%;min-width:340px;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-spacing-md);padding:var(--spacing-spacing-3xl) var(--spacing-spacing-2xl)}@media (max-width: 767px){._content_o7lat_55{width:100%;min-width:0;padding:var(--spacing-spacing-xl) var(--spacing-spacing-lg)}}._content_o7lat_55:before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--border-border-primary)}@media (max-width: 767px){._content_o7lat_55:before{right:0;width:100%;height:1px}}._statusCode_o7lat_90{color:var(--color-brand-primary-primary-teal-blue);padding:0;margin:0}._heading_o7lat_96{line-height:1.1}._badge_o7lat_100{background:var(--surface-surface-primary);border:1px solid var(--border-border-primary-btn);color:var(--text-text-secondary);text-transform:uppercase;letter-spacing:.03em}._badgeContent_o7lat_109,._calloutTitle_o7lat_110{display:inline-flex;align-items:center;gap:var(--spacing-spacing-3xs)}._illustration_o7lat_116{width:100%;max-width:280px;height:auto;position:relative;z-index:1}._illustrationCaption_o7lat_124{text-align:center;max-width:320px;position:relative;z-index:1;line-height:1.45}._callout_o7lat_110{border:1px solid var(--border-border-primary);border-radius:var(--border-radius-md);background:var(--surface-surface-secondary);padding:var(--spacing-spacing-default);display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs)}._actions_o7lat_142{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-spacing-md)}@media (max-width: 767px){._actions_o7lat_142{display:flex;flex-wrap:wrap;flex-direction:column}}._actions_o7lat_142 a{width:100%}@media (max-width: 767px){._actions_o7lat_142 a{min-width:0;justify-content:center}}._help_o7lat_163{display:inline-flex;align-items:center;gap:var(--spacing-spacing-3xs);border-top:1px solid var(--border-border-primary);padding-top:var(--spacing-spacing-md);margin-top:auto}
|
|
@@ -21,8 +21,7 @@ export interface StatusPageProps {
|
|
|
21
21
|
calloutIconKey?: IconProps['iconKey'];
|
|
22
22
|
primaryLinkButtonProps: StatusPageActionProps;
|
|
23
23
|
secondaryLinkButtonProps?: StatusPageActionProps;
|
|
24
|
-
primaryFirst?: boolean;
|
|
25
24
|
helpText?: ReactNode;
|
|
26
25
|
className?: string;
|
|
27
26
|
}
|
|
28
|
-
export declare function StatusPage({ statusCode, heading, description, illustrationSrc, illustrationAlt, illustrationWidth, illustrationHeight, statusLabel, statusLabelIconKey, illustrationCaption, calloutTitle, calloutDescription, calloutIconKey, primaryLinkButtonProps, secondaryLinkButtonProps,
|
|
27
|
+
export declare function StatusPage({ statusCode, heading, description, illustrationSrc, illustrationAlt, illustrationWidth, illustrationHeight, statusLabel, statusLabelIconKey, illustrationCaption, calloutTitle, calloutDescription, calloutIconKey, primaryLinkButtonProps, secondaryLinkButtonProps, helpText, className, }: StatusPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,106 +1,94 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as y } from "../../atoms/Flex/Flex.js";
|
|
3
3
|
import { Icon as s } from "../../atoms/Icon/Icon.js";
|
|
4
|
-
import { Image as
|
|
5
|
-
import { LinkButton as
|
|
6
|
-
import { Pill as
|
|
7
|
-
import { Text as
|
|
8
|
-
import { c as
|
|
4
|
+
import { Image as p } from "../../atoms/Image/Image.js";
|
|
5
|
+
import { LinkButton as _ } from "../../atoms/LinkButton/LinkButton.js";
|
|
6
|
+
import { Pill as K } from "../../atoms/Pill/Pill.js";
|
|
7
|
+
import { Text as l } from "../../atoms/Text/Text.js";
|
|
8
|
+
import { c as w } from "../../clsx-OuTLNxxd.js";
|
|
9
9
|
import { n as T } from "../../not-found-DhBNR9yc.js";
|
|
10
|
-
import '../../assets/StatusPage.css';const j = "
|
|
10
|
+
import '../../assets/StatusPage.css';const j = "_main_o7lat_1", I = "_visual_o7lat_15", F = "_content_o7lat_55", q = "_statusCode_o7lat_90", S = "_heading_o7lat_96", A = "_badge_o7lat_100", E = "_badgeContent_o7lat_109", G = "_calloutTitle_o7lat_110", H = "_illustration_o7lat_116", J = "_illustrationCaption_o7lat_124", M = "_callout_o7lat_110", O = "_actions_o7lat_142", Q = "_help_o7lat_163", i = {
|
|
11
11
|
main: j,
|
|
12
|
-
visual:
|
|
13
|
-
content:
|
|
14
|
-
statusCode:
|
|
15
|
-
heading:
|
|
16
|
-
badge:
|
|
17
|
-
badgeContent:
|
|
18
|
-
calloutTitle:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
actions: V,
|
|
25
|
-
help: W
|
|
12
|
+
visual: I,
|
|
13
|
+
content: F,
|
|
14
|
+
statusCode: q,
|
|
15
|
+
heading: S,
|
|
16
|
+
badge: A,
|
|
17
|
+
badgeContent: E,
|
|
18
|
+
calloutTitle: G,
|
|
19
|
+
illustration: H,
|
|
20
|
+
illustrationCaption: J,
|
|
21
|
+
callout: M,
|
|
22
|
+
actions: O,
|
|
23
|
+
help: Q
|
|
26
24
|
};
|
|
27
|
-
function
|
|
25
|
+
function k({
|
|
28
26
|
statusCode: g,
|
|
29
|
-
heading:
|
|
30
|
-
description:
|
|
27
|
+
heading: f,
|
|
28
|
+
description: u,
|
|
31
29
|
illustrationSrc: v = T,
|
|
32
|
-
illustrationAlt:
|
|
30
|
+
illustrationAlt: z,
|
|
33
31
|
illustrationWidth: x = 336,
|
|
34
|
-
illustrationHeight:
|
|
35
|
-
statusLabel:
|
|
36
|
-
statusLabelIconKey:
|
|
37
|
-
illustrationCaption:
|
|
38
|
-
calloutTitle:
|
|
39
|
-
calloutDescription:
|
|
40
|
-
calloutIconKey:
|
|
41
|
-
primaryLinkButtonProps:
|
|
42
|
-
secondaryLinkButtonProps:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
className: w
|
|
32
|
+
illustrationHeight: N = 392,
|
|
33
|
+
statusLabel: r,
|
|
34
|
+
statusLabelIconKey: d,
|
|
35
|
+
illustrationCaption: m,
|
|
36
|
+
calloutTitle: n,
|
|
37
|
+
calloutDescription: c,
|
|
38
|
+
calloutIconKey: C = "fa-solid fa-circle-info",
|
|
39
|
+
primaryLinkButtonProps: o,
|
|
40
|
+
secondaryLinkButtonProps: t,
|
|
41
|
+
helpText: h,
|
|
42
|
+
className: b
|
|
46
43
|
}) {
|
|
47
|
-
return /* @__PURE__ */ a(
|
|
44
|
+
return /* @__PURE__ */ a(y, { flexDirection: "row", alignItems: "stretch", justifyContent: "center", className: w(i.main, b), children: [
|
|
48
45
|
/* @__PURE__ */ a("div", { className: i.visual, children: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
r && /* @__PURE__ */ e(K, { size: "sm", className: i.badge, children: /* @__PURE__ */ a("span", { className: i.badgeContent, children: [
|
|
47
|
+
d && /* @__PURE__ */ e(s, { iconKey: d, size: "xs" }),
|
|
48
|
+
r
|
|
52
49
|
] }) }),
|
|
53
50
|
/* @__PURE__ */ e(
|
|
54
|
-
|
|
51
|
+
p,
|
|
55
52
|
{
|
|
56
53
|
src: v,
|
|
57
|
-
alt:
|
|
54
|
+
alt: z,
|
|
58
55
|
width: x,
|
|
59
|
-
height:
|
|
56
|
+
height: N,
|
|
60
57
|
className: i.illustration
|
|
61
58
|
}
|
|
62
59
|
),
|
|
63
|
-
|
|
60
|
+
m && /* @__PURE__ */ e(l, { size: "sm", className: i.illustrationCaption, children: m })
|
|
64
61
|
] }),
|
|
65
62
|
/* @__PURE__ */ a("div", { className: i.content, children: [
|
|
66
63
|
/* @__PURE__ */ a("div", { children: [
|
|
67
|
-
/* @__PURE__ */ e(
|
|
68
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(l, { size: "6xl", weight: "bold", variant: "display", as: "div", className: i.statusCode, children: g }),
|
|
65
|
+
/* @__PURE__ */ e(l, { size: "3xl", weight: "bold", variant: "display", as: "div", className: i.heading, children: f })
|
|
69
66
|
] }),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
(
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */ e(s, { iconKey:
|
|
74
|
-
|
|
67
|
+
/* @__PURE__ */ e(l, { size: "lg", weight: "light", children: u }),
|
|
68
|
+
(n || c) && /* @__PURE__ */ a("div", { className: i.callout, children: [
|
|
69
|
+
n && /* @__PURE__ */ a(l, { size: "md", weight: "semibold", className: i.calloutTitle, children: [
|
|
70
|
+
/* @__PURE__ */ e(s, { iconKey: C, colorToken: "secondary", size: "xs" }),
|
|
71
|
+
n
|
|
75
72
|
] }),
|
|
76
|
-
|
|
73
|
+
c && /* @__PURE__ */ e(l, { size: "sm", weight: "regular", children: c })
|
|
77
74
|
] }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
] })
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
] })
|
|
87
|
-
] })
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/* @__PURE__ */ e(o, { variant: "primary", size: "md", href: n.href, children: /* @__PURE__ */ a("span", { className: i.actionContent, children: [
|
|
93
|
-
n.iconKey && /* @__PURE__ */ e(s, { iconKey: n.iconKey, size: "xs" }),
|
|
94
|
-
n.label
|
|
95
|
-
] }) })
|
|
96
|
-
] }) }),
|
|
97
|
-
_ && /* @__PURE__ */ e("div", { className: i.help, children: /* @__PURE__ */ a(c, { size: "sm", className: i.helpRow, children: [
|
|
98
|
-
/* @__PURE__ */ e(s, { iconKey: "fa-solid fa-circle-info", colorToken: "secondary", size: "xs" }),
|
|
99
|
-
_
|
|
100
|
-
] }) })
|
|
75
|
+
/* @__PURE__ */ a("div", { className: i.actions, children: [
|
|
76
|
+
/* @__PURE__ */ a(_, { variant: "primary", size: "md", href: o.href, children: [
|
|
77
|
+
o.iconKey && /* @__PURE__ */ e(s, { iconKey: o.iconKey, size: "xs" }),
|
|
78
|
+
o.label
|
|
79
|
+
] }),
|
|
80
|
+
t && /* @__PURE__ */ a(_, { variant: "secondary", size: "md", href: t.href, children: [
|
|
81
|
+
t.iconKey && /* @__PURE__ */ e(s, { iconKey: t.iconKey, size: "xs" }),
|
|
82
|
+
t.label
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
h && /* @__PURE__ */ a("div", { className: i.help, children: [
|
|
86
|
+
/* @__PURE__ */ e(s, { iconKey: "fa-regular fa-circle-question", colorToken: "secondary", size: "xs" }),
|
|
87
|
+
/* @__PURE__ */ e(l, { size: "sm", children: h })
|
|
88
|
+
] })
|
|
101
89
|
] })
|
|
102
90
|
] });
|
|
103
91
|
}
|
|
104
92
|
export {
|
|
105
|
-
|
|
93
|
+
k as StatusPage
|
|
106
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { StatusPage as a } from "./StatusPage.js";
|
|
3
3
|
import { n as e } from "../../not-found-DhBNR9yc.js";
|
|
4
|
-
const
|
|
4
|
+
const r = {
|
|
5
5
|
title: "Case Parts/Organisms/StatusPage",
|
|
6
6
|
component: a,
|
|
7
7
|
tags: ["autodocs"],
|
|
@@ -36,16 +36,15 @@ const n = {
|
|
|
36
36
|
calloutTitle: "What can I do?",
|
|
37
37
|
calloutDescription: "Check the address and try again, search for a part, or use one of the options below to continue.",
|
|
38
38
|
primaryLinkButtonProps: {
|
|
39
|
-
label: "Return
|
|
39
|
+
label: "Return Home",
|
|
40
40
|
href: "/",
|
|
41
41
|
iconKey: "fa-solid fa-house"
|
|
42
42
|
},
|
|
43
43
|
secondaryLinkButtonProps: {
|
|
44
|
-
label: "
|
|
44
|
+
label: "My Account",
|
|
45
45
|
href: "/account",
|
|
46
|
-
iconKey: "fa-
|
|
46
|
+
iconKey: "fa-solid fa-user"
|
|
47
47
|
},
|
|
48
|
-
primaryFirst: !0,
|
|
49
48
|
helpText: "Still need help? Email hello@caseparts.com or call 1-800-421-0271."
|
|
50
49
|
}
|
|
51
50
|
}, c = {
|
|
@@ -61,21 +60,20 @@ const n = {
|
|
|
61
60
|
calloutTitle: "Why am I seeing this?",
|
|
62
61
|
calloutDescription: "Access may be limited by your company administrator, account role, or the permissions assigned to your CaseParts user.",
|
|
63
62
|
primaryLinkButtonProps: {
|
|
64
|
-
label: "
|
|
65
|
-
href: "/account",
|
|
66
|
-
iconKey: "fa-regular fa-user"
|
|
67
|
-
},
|
|
68
|
-
secondaryLinkButtonProps: {
|
|
69
|
-
label: "Return to CaseParts.com",
|
|
63
|
+
label: "Return Home",
|
|
70
64
|
href: "/",
|
|
71
65
|
iconKey: "fa-solid fa-house"
|
|
72
66
|
},
|
|
73
|
-
|
|
67
|
+
secondaryLinkButtonProps: {
|
|
68
|
+
label: "My Account",
|
|
69
|
+
href: "/account",
|
|
70
|
+
iconKey: "fa-solid fa-user"
|
|
71
|
+
},
|
|
74
72
|
helpText: "Need access? Contact your company administrator or email hello@caseparts.com. You can also call 1-800-421-0271."
|
|
75
73
|
}
|
|
76
74
|
};
|
|
77
75
|
export {
|
|
78
76
|
l as NotFound404,
|
|
79
77
|
c as Unauthorized403,
|
|
80
|
-
|
|
78
|
+
r as default
|
|
81
79
|
};
|