@caseparts-org/caseblocks 0.0.55 → 0.0.57
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/assets/NotFound.css +1 -0
- package/dist/assets/Root.css +1 -1
- package/dist/assets/buttonClassName.css +1 -0
- package/dist/atoms/Button/Button.d.ts +4 -5
- package/dist/atoms/Button/Button.js +16 -39
- package/dist/atoms/Button/buttonClassName.d.ts +10 -0
- package/dist/atoms/Button/buttonClassName.js +40 -0
- package/dist/atoms/Link/Link.d.ts +3 -1
- package/dist/atoms/Link/Link.js +42 -41
- package/dist/atoms/LinkButton/LinkButton.d.ts +6 -0
- package/dist/atoms/LinkButton/LinkButton.js +39 -0
- package/dist/atoms/LinkButton/LinkButton.stories.d.ts +9 -0
- package/dist/atoms/LinkButton/LinkButton.stories.js +96 -0
- package/dist/atoms/Root/Root.js +1 -1
- package/dist/main-client.d.ts +4 -0
- package/dist/main-client.js +48 -44
- package/dist/organisms/NotFound/NotFound.d.ts +11 -0
- package/dist/organisms/NotFound/NotFound.js +34 -0
- package/dist/organisms/NotFound/NotFound.stories.d.ts +7 -0
- package/dist/organisms/NotFound/NotFound.stories.js +65 -0
- package/package.json +1 -1
- package/dist/assets/Button.css +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { NotFound as o } from "./NotFound.js";
|
|
2
|
+
const e = {
|
|
3
|
+
title: "Case Parts/Organisms/NotFound",
|
|
4
|
+
component: o,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: [
|
|
10
|
+
"A presentational 404 style page section that shows a friendly message,",
|
|
11
|
+
"an illustration image, and two prominent calls-to-action implemented with",
|
|
12
|
+
`LinkButton components.
|
|
13
|
+
`,
|
|
14
|
+
`
|
|
15
|
+
Usage notes:`,
|
|
16
|
+
`
|
|
17
|
+
- Use this component on routes that are not found or content that is missing.`,
|
|
18
|
+
`
|
|
19
|
+
- Provide meaningful primary and secondary actions to help the user recover.`,
|
|
20
|
+
`
|
|
21
|
+
- Keep labels concise (ideally 2–3 words).`
|
|
22
|
+
].join(" ")
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
argTypes: {
|
|
27
|
+
primaryLinkButtonProps: {
|
|
28
|
+
control: "object",
|
|
29
|
+
description: "Primary call-to-action link button (e.g., Go Home). Provide a { label, href } object.",
|
|
30
|
+
table: {
|
|
31
|
+
type: { summary: "{ label: string; href: string }" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
secondaryLinkButtonProps: {
|
|
35
|
+
control: "object",
|
|
36
|
+
description: "Secondary link button (e.g., Contact Support). Provide a { label, href } object.",
|
|
37
|
+
table: {
|
|
38
|
+
type: { summary: "{ label: string; href: string }" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
args: {
|
|
43
|
+
primaryLinkButtonProps: { label: "Return Home to CaseParts.com", href: "/" },
|
|
44
|
+
secondaryLinkButtonProps: { label: "Sign In or Go to My Account", href: "/account" }
|
|
45
|
+
}
|
|
46
|
+
}, n = {
|
|
47
|
+
name: "Playground"
|
|
48
|
+
}, r = {
|
|
49
|
+
args: {
|
|
50
|
+
primaryLinkButtonProps: { label: "Search Products", href: "/search" },
|
|
51
|
+
secondaryLinkButtonProps: { label: "Support", href: "/support" }
|
|
52
|
+
},
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
description: {
|
|
56
|
+
story: "Variant emphasizing a support-oriented recovery path."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
n as Playground,
|
|
63
|
+
r as SupportFocused,
|
|
64
|
+
e as default
|
|
65
|
+
};
|
package/package.json
CHANGED
package/dist/assets/Button.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_1fy9r_1{--inset-shadow-color: var(--surface-surface-primary-btn);--inset-shadow-style: 0 0 0, inset 0 0 0 var(--spacing-0-125) var(--inset-shadow-color);transition-property:background-color,border-width,box-shadow,color;transition-duration:.1s;transition-timing-function:ease-in;padding:var(--spacing-1);border:none;cursor:pointer}._button_1fy9r_1:hover{box-shadow:var(--color-neutrals-neutral-2) var(--spacing-0-125) var(--spacing-0-25) var(--spacing-0-5)}._button_1fy9r_1:active{box-shadow:none}._button_1fy9r_1:disabled{background-color:var(--surface-surface-disabled-btn);color:var(--text-text-invert);transition:none;cursor:default}._button_1fy9r_1:disabled:hover{box-shadow:none}._button-primary_1fy9r_36{background-color:var(--surface-surface-primary-btn);color:var(--surface-surface-primary)}._button-primary_1fy9r_36:active{background-color:var(--color-brand-secondary-dark-teal-blue)}._button-primary_1fy9r_36:active:disabled{background-color:var(--surface-surface-disabled-btn);color:var(--text-text-invert)}._button-secondary_1fy9r_50{background-color:var(--surface-surface-secondary-btn);border:1px solid var(--border-border-secondary-btn);color:var(--text-text-links)}._button-secondary_1fy9r_50:active{--inset-shadow-color: var(--surface-surface-secondary);box-shadow:var(--inset-shadow-style)}._button-secondary_1fy9r_50:disabled{background-color:var(--surface-surface-disabled-btn-focus);color:var(--surface-surface-disabled-btn);--inset-shadow-color: var(--surface-surface-disabled-btn);box-shadow:var(--inset-shadow-style)}._button-secondary_1fy9r_50:disabled:hover{box-shadow:var(--inset-shadow-style)}._button-cta-primary_1fy9r_72{background-color:var(--surface-surface-call-to-action-btn);color:var(--surface-surface-primary)}._button-cta-primary_1fy9r_72:active{background-color:var(--surface-surface-call-to-action-btn-focus)}._button-cta-primary_1fy9r_72:active:disabled{background-color:var(--surface-surface-disabled-btn);color:var(--text-text-invert)}._button-tertiary_1fy9r_86{background-color:var(--surface-surface-tertiary-btn);color:var(--surface-surface-tertiary-btn-focus)}._button-tertiary_1fy9r_86:active{color:var(--surface-surface-disabled-btn);background-color:var(--surface-surface-tertiary-btn-focus);--inset-shadow-color: var(--surface-surface-disabled-btn);box-shadow:var(--inset-shadow-style)}._button-tertiary_1fy9r_86:active:disabled{background-color:var(--surface-surface-disabled-btn);color:var(--text-text-invert)}._button-destructive_1fy9r_104{background-color:var(--surface-surface-error-warning-btn);color:var(--surface-surface-primary)}._button-destructive_1fy9r_104:active{color:var(--surface-surface-error-warning-btn);background-color:var(--surface-surface-tertiary-btn-focus);--inset-shadow-color: var(--border-border-error-warning);box-shadow:var(--inset-shadow-style)}._button-destructive_1fy9r_104:active:disabled{background-color:var(--surface-surface-disabled-btn);color:var(--text-text-invert)}._button-size-xxs_1fy9r_122{border-radius:var(--border-radius-xs);padding:var(--spacing-spacing-4xs) var(--spacing-spacing-4xs)}._button-size-xs_1fy9r_126{border-radius:var(--border-radius-xs);padding:calc(var(--spacing-spacing-4xs) - 1px) var(--spacing-spacing-2xs)}._button-size-sm_1fy9r_130{border-radius:var(--border-radius-sm);padding:calc(var(--spacing-spacing-3xs) - 1px) var(--spacing-0-75)}._button-size-md_1fy9r_134,._button-size-lg_1fy9r_138{border-radius:var(--border-radius-sm);padding:calc(var(--spacing-spacing-2xs) - 1px) var(--spacing-spacing-default)}._button-size-xl_1fy9r_142{border-radius:var(--border-radius-sm);padding:var(--spacing-0-75) var(--spacing-spacing-default)}
|