@caseparts-org/caseblocks 0.0.70 → 0.0.72
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/Text.module-Dzhzk2fH.js +39 -0
- package/dist/assets/BannerCard.css +1 -1
- package/dist/assets/Footer.css +1 -0
- package/dist/assets/Root.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/atoms/Button/buttonClassName.js +1 -1
- package/dist/atoms/Link/Link.js +1 -1
- package/dist/atoms/Text/Text.d.ts +2 -1
- package/dist/atoms/Text/Text.js +14 -12
- package/dist/atoms/Text/Text.stories.d.ts +1 -0
- package/dist/atoms/Text/Text.stories.js +87 -27
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +4 -2
- package/dist/main-server.d.ts +1 -0
- package/dist/molecules/Avatar/Avatar.js +1 -1
- package/dist/molecules/BannerCard/BannerCard.js +21 -21
- package/dist/molecules/Logo/Logo.d.ts +4 -1
- package/dist/molecules/Logo/Logo.js +13 -11
- package/dist/molecules/Logo/Logo.stories.d.ts +540 -0
- package/dist/molecules/Logo/Logo.stories.js +26 -7
- package/dist/organisms/Footer/Footer.d.ts +5 -0
- package/dist/organisms/Footer/Footer.js +160 -0
- package/dist/organisms/Footer/Footer.stories.d.ts +36 -0
- package/dist/organisms/Footer/Footer.stories.js +72 -0
- package/dist/styles/tokens.css +1 -0
- package/package.json +1 -1
- package/dist/Text.module-smM1g1J4.js +0 -25
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Grid as m, Column as l } from "../../atoms/Grid/Grid.js";
|
|
3
|
+
import { Flex as s } from "../../atoms/Flex/Flex.js";
|
|
4
|
+
import { Link as i } from "../../atoms/Link/Link.js";
|
|
5
|
+
import { Icon as n } from "../../atoms/Icon/Icon.js";
|
|
6
|
+
import { Logo as x } from "../../molecules/Logo/Logo.js";
|
|
7
|
+
import { Text as o } from "../../atoms/Text/Text.js";
|
|
8
|
+
import { Tooltip as a } from "../../molecules/Tooltip/Tooltip.js";
|
|
9
|
+
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import '../../assets/Footer.css';const y = "_footer_1r911_2", p = "_grid_1r911_18", C = "_title_1r911_31", b = "_columnContent_1r911_40", _ = "_history_1r911_48", w = "_logo_1r911_62", t = {
|
|
11
|
+
footer: y,
|
|
12
|
+
grid: p,
|
|
13
|
+
"bottom-grid": "_bottom-grid_1r911_19",
|
|
14
|
+
title: C,
|
|
15
|
+
"title-help": "_title-help_1r911_36",
|
|
16
|
+
columnContent: b,
|
|
17
|
+
history: _,
|
|
18
|
+
"history-text": "_history-text_1r911_57",
|
|
19
|
+
logo: w,
|
|
20
|
+
"icon-gap": "_icon-gap_1r911_68",
|
|
21
|
+
"copyright-text": "_copyright-text_1r911_72"
|
|
22
|
+
};
|
|
23
|
+
function A({ homeRoute: g, isOnline: d = !0, className: c, ...u }) {
|
|
24
|
+
const f = h(t.footer, c);
|
|
25
|
+
return /* @__PURE__ */ r("footer", { className: f, ...u, children: [
|
|
26
|
+
/* @__PURE__ */ r(m, { gridWrapperClassName: h(c, t.grid), children: [
|
|
27
|
+
/* @__PURE__ */ r(l, { span: [4, 6, 3], className: t.gridColumn, children: [
|
|
28
|
+
/* @__PURE__ */ e(i, { href: g, children: /* @__PURE__ */ e(x, { variant: "white", className: t.logo }) }),
|
|
29
|
+
/* @__PURE__ */ e("div", { className: t.history, children: /* @__PURE__ */ e(o, { size: "sm", weight: "extra-light", colorToken: "footer", className: t["history-text"], children: "CaseParts has been a leading distributor of commercial refrigeration parts since 1972. Our team of experts are dedicated to helping every customer source parts at great prices." }) })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ r(l, { span: [4, 6, 3], className: t.gridColumn, children: [
|
|
32
|
+
/* @__PURE__ */ e(o, { size: "sm", colorToken: "footer", weight: "semibold", as: "div", className: t.title, children: "Customer Care" }),
|
|
33
|
+
/* @__PURE__ */ r(s, { flexDirection: "column", className: t.columnContent, children: [
|
|
34
|
+
/* @__PURE__ */ e(i, { href: "/about", unstyled: !0, children: "About Us" }),
|
|
35
|
+
/* @__PURE__ */ e(i, { href: "/contact", unstyled: !0, children: "Contact Us" }),
|
|
36
|
+
/* @__PURE__ */ e(i, { href: "/faq", unstyled: !0, children: "FAQs" }),
|
|
37
|
+
/* @__PURE__ */ e(i, { href: "/account", unstyled: !0, children: "Order Status" }),
|
|
38
|
+
/* @__PURE__ */ e(i, { href: "#", unstyled: !0, children: "Payment Methods" }),
|
|
39
|
+
/* @__PURE__ */ e(i, { href: "#", unstyled: !0, children: "Returns Policy" }),
|
|
40
|
+
/* @__PURE__ */ e(i, { href: "#", unstyled: !0, children: "Shipping & Delivery" }),
|
|
41
|
+
/* @__PURE__ */ e(i, { href: "#", unstyled: !0, children: "Sales Tax Certificates" })
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ r(l, { span: [4, 6, 3], className: t.gridColumn, children: [
|
|
45
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: /* @__PURE__ */ e(o, { size: "sm", colorToken: "footer", weight: "semibold", as: "div", className: t.title, children: "Custom Parts" }) }),
|
|
46
|
+
/* @__PURE__ */ r(s, { flexDirection: "column", className: t.columnContent, children: [
|
|
47
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Cutting Boards" }),
|
|
48
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Gaskets" }),
|
|
49
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Heaters & Pans" }),
|
|
50
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Walk-in Doors" }),
|
|
51
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Warmer Wires" }),
|
|
52
|
+
/* @__PURE__ */ e(i, { href: "/custom", unstyled: !0, children: "Wire Shelving" })
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ r(l, { span: [4, 6, 3], className: t.gridColumn, children: [
|
|
56
|
+
/* @__PURE__ */ e(o, { size: "sm", weight: "semibold", colorToken: "footer", as: "div", className: `${t.title} ${t["title-help"]}`, children: "How May We Help?" }),
|
|
57
|
+
/* @__PURE__ */ r(s, { flexDirection: "column", className: t.columnContent, children: [
|
|
58
|
+
/* @__PURE__ */ r(s, { flexDirection: "row", justifyContent: "flex-start", className: t["icon-gap"], children: [
|
|
59
|
+
/* @__PURE__ */ e(n, { iconKey: "fa-solid fa-location-dot", size: "sm", colorToken: "warning" }),
|
|
60
|
+
/* @__PURE__ */ e(
|
|
61
|
+
a,
|
|
62
|
+
{
|
|
63
|
+
trigger: /* @__PURE__ */ r("div", { children: [
|
|
64
|
+
/* @__PURE__ */ e(o, { size: "sm", weight: "extra-light", colorToken: "footer", children: "Los Angeles (800) 421-0291" }),
|
|
65
|
+
/* @__PURE__ */ e("br", {}),
|
|
66
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Weekdays | 8:00AM – 4:30PM PT" })
|
|
67
|
+
] }),
|
|
68
|
+
children: /* @__PURE__ */ r("div", { children: [
|
|
69
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: "Case Parts - Los Angeles" }),
|
|
70
|
+
/* @__PURE__ */ e("br", {}),
|
|
71
|
+
/* @__PURE__ */ r(o, { size: "xs", weight: "regular", children: [
|
|
72
|
+
"877 Monterey Pass Road",
|
|
73
|
+
/* @__PURE__ */ e("br", {}),
|
|
74
|
+
"Monterey Park, CA 91754"
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ e("br", {}),
|
|
77
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: /* @__PURE__ */ e(i, { href: "https://goo.gl/maps/PzF4o1beyyTanKVk6", target: "_blank", rel: "noopener noreferrer", children: "Directions" }) })
|
|
78
|
+
] })
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ r(s, { flexDirection: "row", justifyContent: "flex-start", className: t["icon-gap"], children: [
|
|
83
|
+
/* @__PURE__ */ e(n, { iconKey: "fa-solid fa-location-dot", size: "sm", colorToken: "warning" }),
|
|
84
|
+
/* @__PURE__ */ e(
|
|
85
|
+
a,
|
|
86
|
+
{
|
|
87
|
+
trigger: /* @__PURE__ */ r("div", { children: [
|
|
88
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "St. Louis (800) 423-9397" }),
|
|
89
|
+
/* @__PURE__ */ e("br", {}),
|
|
90
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Weekdays | 8:00AM – 4:30PM CDT" })
|
|
91
|
+
] }),
|
|
92
|
+
children: /* @__PURE__ */ r("div", { children: [
|
|
93
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: "Case Parts - St. Louis" }),
|
|
94
|
+
/* @__PURE__ */ e("br", {}),
|
|
95
|
+
/* @__PURE__ */ r(o, { size: "xs", weight: "regular", children: [
|
|
96
|
+
"3218 Rider Trail South",
|
|
97
|
+
/* @__PURE__ */ e("br", {}),
|
|
98
|
+
"Earth City, MO 63045"
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ e("br", {}),
|
|
101
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: /* @__PURE__ */ e(i, { href: "https://goo.gl/maps/JgBTWQ8LyaXR2UrS9", target: "_blank", rel: "noopener noreferrer", children: "Directions" }) })
|
|
102
|
+
] })
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ r(s, { flexDirection: "row", justifyContent: "flex-start", className: t["icon-gap"], children: [
|
|
107
|
+
/* @__PURE__ */ e(n, { iconKey: "fa-solid fa-location-dot", size: "sm", colorToken: "warning" }),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
a,
|
|
110
|
+
{
|
|
111
|
+
trigger: /* @__PURE__ */ r("div", { children: [
|
|
112
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Seattle (800) 731-5416" }),
|
|
113
|
+
/* @__PURE__ */ e("br", {}),
|
|
114
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Weekdays | 8:30AM – 5:00PM PT" })
|
|
115
|
+
] }),
|
|
116
|
+
children: /* @__PURE__ */ r("div", { children: [
|
|
117
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: "Case Parts - Seattle" }),
|
|
118
|
+
/* @__PURE__ */ e("br", {}),
|
|
119
|
+
/* @__PURE__ */ r(o, { size: "xs", weight: "regular", children: [
|
|
120
|
+
"25315 74th Ave South, Suite 101",
|
|
121
|
+
/* @__PURE__ */ e("br", {}),
|
|
122
|
+
"Kent, WA 98032"
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ e("br", {}),
|
|
125
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "semibold", children: /* @__PURE__ */ e(i, { href: "https://goo.gl/maps/BhvC7NY94vXQG8uW8", target: "_blank", rel: "noopener noreferrer", children: "Directions" }) })
|
|
126
|
+
] })
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ r(s, { flexDirection: "row", justifyContent: "flex-start", className: t["icon-gap"], children: [
|
|
131
|
+
/* @__PURE__ */ e(n, { iconKey: "fa-kit fa-chat", size: "sm", colorToken: d ? "success" : "default-inverted" }),
|
|
132
|
+
/* @__PURE__ */ r("div", { children: [
|
|
133
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Live Chat Support" }),
|
|
134
|
+
/* @__PURE__ */ e("br", {}),
|
|
135
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: d ? "Currently Online" : "Currently Offline" })
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ r(s, { flexDirection: "row", justifyContent: "flex-start", className: t["icon-gap"], children: [
|
|
139
|
+
/* @__PURE__ */ e(n, { iconKey: "fa-solid fa-megaphone", size: "sm", colorToken: "default-inverted" }),
|
|
140
|
+
/* @__PURE__ */ r("div", { children: [
|
|
141
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Part Research Request" }),
|
|
142
|
+
/* @__PURE__ */ e("br", {}),
|
|
143
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "extra-light", colorToken: "footer", children: "Ask Our Experts to Source a Part" })
|
|
144
|
+
] })
|
|
145
|
+
] })
|
|
146
|
+
] })
|
|
147
|
+
] })
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ e(m, { gridWrapperClassName: h(c, t["bottom-grid"]), children: /* @__PURE__ */ e(l, { span: [4, 6, 12], className: t.gridColumn, children: /* @__PURE__ */ r("div", { className: t.columnContent, children: [
|
|
150
|
+
/* @__PURE__ */ e(i, { href: "#", unstyled: !0, children: "Terms" }),
|
|
151
|
+
" | ",
|
|
152
|
+
/* @__PURE__ */ e(i, { href: "#", children: "Privacy Policy" }),
|
|
153
|
+
/* @__PURE__ */ e("br", {}),
|
|
154
|
+
/* @__PURE__ */ e(o, { size: "xxs", weight: "extra-light", variant: "body", colorToken: "footer", className: t["copyright-text"], children: "©Copyright 1972-2025 Case Parts Company | All Rights Reserved." })
|
|
155
|
+
] }) }) })
|
|
156
|
+
] });
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
A as Footer
|
|
160
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Footer as FooterComponent } from './Footer';
|
|
3
|
+
/**
|
|
4
|
+
* Footer organism.
|
|
5
|
+
*
|
|
6
|
+
* The [`Footer`](./Footer.tsx) composes two stacked horizontal regions.
|
|
7
|
+
*
|
|
8
|
+
* Current props (inferred from implementation usage):
|
|
9
|
+
* - `homeRoute: string` – URL for the brand / home navigation link (if rendered).
|
|
10
|
+
* - `isOnline: boolean` – Flag that can toggle an online / offline indicator (e.g., support status).
|
|
11
|
+
*
|
|
12
|
+
* Extension ideas:
|
|
13
|
+
* - Supply structured link groups (support, company, legal).
|
|
14
|
+
* - Accept `children` or dedicated slots (`topContent`, `bottomContent`).
|
|
15
|
+
* - Add theming via design tokens instead of hard‑coded colors.
|
|
16
|
+
*/
|
|
17
|
+
declare const meta: Meta<typeof FooterComponent>;
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof FooterComponent>;
|
|
20
|
+
/**
|
|
21
|
+
* Playground
|
|
22
|
+
* Interactive controls for experimenting with the current prop surface.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Playground: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Online state (default).
|
|
27
|
+
*/
|
|
28
|
+
export declare const Online: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Offline state example.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Offline: Story;
|
|
33
|
+
/**
|
|
34
|
+
* Custom home route.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CustomHomeRoute: Story;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Footer as e } from "./Footer.js";
|
|
2
|
+
const t = {
|
|
3
|
+
title: "Case Parts/Organisms/Footer",
|
|
4
|
+
component: e,
|
|
5
|
+
args: {
|
|
6
|
+
homeRoute: "/",
|
|
7
|
+
isOnline: !0
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
homeRoute: {
|
|
11
|
+
control: "text",
|
|
12
|
+
description: "Destination URL for the primary / home link region."
|
|
13
|
+
},
|
|
14
|
+
isOnline: {
|
|
15
|
+
control: "boolean",
|
|
16
|
+
description: "Toggles online vs offline visual indicator (badge / text)."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
docs: {
|
|
21
|
+
description: {
|
|
22
|
+
component: "Structural footer wrapper with two horizontal bands. This story demonstrates prop variations. Enhance the underlying implementation to inject navigation groups or dynamic content as needed."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
tags: ["autodocs"]
|
|
27
|
+
}, n = {
|
|
28
|
+
name: "Playground"
|
|
29
|
+
}, r = {
|
|
30
|
+
args: {
|
|
31
|
+
isOnline: !0,
|
|
32
|
+
homeRoute: "/"
|
|
33
|
+
},
|
|
34
|
+
parameters: {
|
|
35
|
+
docs: {
|
|
36
|
+
description: {
|
|
37
|
+
story: "Shows the footer with `isOnline = true` (e.g., service available)."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, s = {
|
|
42
|
+
args: {
|
|
43
|
+
isOnline: !1,
|
|
44
|
+
homeRoute: "/"
|
|
45
|
+
},
|
|
46
|
+
parameters: {
|
|
47
|
+
docs: {
|
|
48
|
+
description: {
|
|
49
|
+
story: "Demonstrates how the footer appears when `isOnline = false` (e.g., after‑hours or maintenance indicator)."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, a = {
|
|
54
|
+
args: {
|
|
55
|
+
isOnline: !0,
|
|
56
|
+
homeRoute: "/dashboard"
|
|
57
|
+
},
|
|
58
|
+
parameters: {
|
|
59
|
+
docs: {
|
|
60
|
+
description: {
|
|
61
|
+
story: "Example using a non‑root `homeRoute` (e.g., directing users to a dashboard landing page)."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
a as CustomHomeRoute,
|
|
68
|
+
s as Offline,
|
|
69
|
+
r as Online,
|
|
70
|
+
n as Playground,
|
|
71
|
+
t as default
|
|
72
|
+
};
|
package/dist/styles/tokens.css
CHANGED
|
@@ -220,6 +220,7 @@
|
|
|
220
220
|
--text-text-secondary: var(--color-brand-primary-primary-teal-blue);
|
|
221
221
|
--text-text-success: var(--color-alerts-success);
|
|
222
222
|
--text-text-tertiary: var(--color-neutrals-neutral-2);
|
|
223
|
+
--text-text-footer: var(--color-brand-primary-primary-pale-gray);
|
|
223
224
|
/* number */
|
|
224
225
|
--radius-radius-none: var(--border-radius-none);
|
|
225
226
|
--radius-radius-minimal: var(--border-radius-xs);
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './assets/Text.css';const t = {
|
|
2
|
-
"text-body": "_text-body_1l0ox_1",
|
|
3
|
-
"text-display": "_text-display_1l0ox_4",
|
|
4
|
-
"text-xxs": "_text-xxs_1l0ox_8",
|
|
5
|
-
"text-xs": "_text-xs_1l0ox_12",
|
|
6
|
-
"text-sm": "_text-sm_1l0ox_16",
|
|
7
|
-
"text-md": "_text-md_1l0ox_20",
|
|
8
|
-
"text-lg": "_text-lg_1l0ox_24",
|
|
9
|
-
"text-xl": "_text-xl_1l0ox_28",
|
|
10
|
-
"text-2xl": "_text-2xl_1l0ox_32",
|
|
11
|
-
"text-3xl": "_text-3xl_1l0ox_36",
|
|
12
|
-
"text-4xl": "_text-4xl_1l0ox_40",
|
|
13
|
-
"text-5xl": "_text-5xl_1l0ox_44",
|
|
14
|
-
"text-6xl": "_text-6xl_1l0ox_48",
|
|
15
|
-
"text-thin": "_text-thin_1l0ox_53",
|
|
16
|
-
"text-extra-light": "_text-extra-light_1l0ox_56",
|
|
17
|
-
"text-light": "_text-light_1l0ox_59",
|
|
18
|
-
"text-regular": "_text-regular_1l0ox_62",
|
|
19
|
-
"text-medium": "_text-medium_1l0ox_65",
|
|
20
|
-
"text-semibold": "_text-semibold_1l0ox_68",
|
|
21
|
-
"text-bold": "_text-bold_1l0ox_71"
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
t
|
|
25
|
-
};
|