@caseparts-org/caseblocks 0.0.255 → 0.0.256
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/Upsell.css +1 -0
- package/dist/main-client.js +76 -74
- package/dist/main-server.d.ts +2 -0
- package/dist/main-server.js +27 -25
- package/dist/molecules/Markdown/Markdown.js +739 -729
- package/dist/molecules/Markdown/Markdown.stories.js +11 -7
- package/dist/molecules/Upsell/Upsell.d.ts +9 -0
- package/dist/molecules/Upsell/Upsell.js +34 -0
- package/dist/molecules/Upsell/Upsell.stories.d.ts +19 -0
- package/dist/molecules/Upsell/Upsell.stories.js +27 -0
- package/package.json +1 -1
|
@@ -16,16 +16,16 @@ This fits part [171], an invalid token [bad], and a help page at [FAQ](/faq).
|
|
|
16
16
|
Already linked should remain: [171](https://example.com/should-stay).
|
|
17
17
|
`;
|
|
18
18
|
function h(e) {
|
|
19
|
-
const [
|
|
19
|
+
const [o, i] = m(e.children ?? r);
|
|
20
20
|
return p(() => {
|
|
21
|
-
|
|
21
|
+
i(e.children ?? r);
|
|
22
22
|
}, [e.children]), /* @__PURE__ */ c("div", { style: { display: "grid", gap: 12 }, children: [
|
|
23
23
|
/* @__PURE__ */ a("label", { style: { fontWeight: 600 }, children: "Edit Markdown (preprocess + admonitions live):" }),
|
|
24
24
|
/* @__PURE__ */ a(
|
|
25
25
|
"textarea",
|
|
26
26
|
{
|
|
27
|
-
value:
|
|
28
|
-
onChange: (t) =>
|
|
27
|
+
value: o,
|
|
28
|
+
onChange: (t) => i(t.target.value),
|
|
29
29
|
rows: 14,
|
|
30
30
|
style: { width: "100%", fontFamily: "monospace" }
|
|
31
31
|
}
|
|
@@ -41,7 +41,7 @@ function h(e) {
|
|
|
41
41
|
throw new Error("invalid");
|
|
42
42
|
},
|
|
43
43
|
debug: !0,
|
|
44
|
-
children:
|
|
44
|
+
children: o
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
] });
|
|
@@ -110,7 +110,7 @@ export default greet;
|
|
|
110
110
|
This fits part [171], an invalid token [bad], and the installation guide at [FAQ](/faq). Already linked should remain: [171](https://example.com/should-stay).
|
|
111
111
|
|
|
112
112
|
Another valid numeric: [172].` })
|
|
113
|
-
},
|
|
113
|
+
}, k = {
|
|
114
114
|
args: {
|
|
115
115
|
children: `# Admonitions
|
|
116
116
|
|
|
@@ -130,6 +130,10 @@ Disconnect power before servicing this unit.
|
|
|
130
130
|
Uses (6) #12 Flat Head screws
|
|
131
131
|
:::
|
|
132
132
|
|
|
133
|
+
:::upsell[Custom Gasket Solutions]{icon="default"}
|
|
134
|
+
Need a different size or profile? Explore custom gasket materials and dimensions tailored to your application.
|
|
135
|
+
:::
|
|
136
|
+
|
|
133
137
|
:::custom-alert{title="Compatibility Note"}
|
|
134
138
|
Unknown type is preserved and rendered with neutral styling.
|
|
135
139
|
:::
|
|
@@ -143,7 +147,7 @@ This block should not be transformed.
|
|
|
143
147
|
}
|
|
144
148
|
};
|
|
145
149
|
export {
|
|
146
|
-
|
|
150
|
+
k as Admonitions,
|
|
147
151
|
y as Basic,
|
|
148
152
|
x as ItemDescription,
|
|
149
153
|
v as Playground,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from '../../atoms/Icon/Icon';
|
|
3
|
+
export type UpsellIcon = "default" | IconProps["iconKey"];
|
|
4
|
+
export type UpsellProps = ComponentPropsWithoutRef<"aside"> & {
|
|
5
|
+
icon?: UpsellIcon;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
subtext?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function Upsell({ icon, title, subtext, className, ...props }: UpsellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as m } from "../../atoms/Icon/Icon.js";
|
|
3
|
+
import { Text as c } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { c as r } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import '../../assets/Upsell.css';const p = "_upsell_14gph_1", u = "_icon_14gph_8", d = "_content_14gph_12", s = {
|
|
6
|
+
upsell: p,
|
|
7
|
+
icon: u,
|
|
8
|
+
content: d
|
|
9
|
+
}, _ = "fa-regular fa-lightbulb";
|
|
10
|
+
function x({
|
|
11
|
+
icon: e,
|
|
12
|
+
title: o,
|
|
13
|
+
subtext: t,
|
|
14
|
+
className: i,
|
|
15
|
+
...a
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ n("aside", { ...a, className: r(s.upsell, i), children: [
|
|
18
|
+
e ? /* @__PURE__ */ l(
|
|
19
|
+
m,
|
|
20
|
+
{
|
|
21
|
+
iconKey: e === "default" ? _ : e,
|
|
22
|
+
size: "md",
|
|
23
|
+
className: s.icon
|
|
24
|
+
}
|
|
25
|
+
) : null,
|
|
26
|
+
/* @__PURE__ */ n("div", { className: s.content, children: [
|
|
27
|
+
/* @__PURE__ */ l(c, { size: "sm", weight: "semibold", className: s.title, children: o }),
|
|
28
|
+
t ? /* @__PURE__ */ l(c, { as: "div", size: "sm", className: s.subtext, children: t }) : null
|
|
29
|
+
] })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
x as Upsell
|
|
34
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Upsell } from './Upsell';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Upsell;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
args: {
|
|
11
|
+
title: string;
|
|
12
|
+
subtext: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const WithoutIcon: Story;
|
|
18
|
+
export declare const WithDefaultIcon: Story;
|
|
19
|
+
export declare const WithCustomIcon: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Upsell as t } from "./Upsell.js";
|
|
2
|
+
const e = {
|
|
3
|
+
title: "Case Parts/Molecules/Upsell",
|
|
4
|
+
component: t,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
args: {
|
|
10
|
+
title: "Custom Gasket Solutions",
|
|
11
|
+
subtext: "Need a different size or profile? Our custom gasket section offers materials and dimensions tailored to your application."
|
|
12
|
+
}
|
|
13
|
+
}, s = {}, a = {
|
|
14
|
+
args: {
|
|
15
|
+
icon: "default"
|
|
16
|
+
}
|
|
17
|
+
}, i = {
|
|
18
|
+
args: {
|
|
19
|
+
icon: "fa-solid fa-ruler-combined"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
i as WithCustomIcon,
|
|
24
|
+
a as WithDefaultIcon,
|
|
25
|
+
s as WithoutIcon,
|
|
26
|
+
e as default
|
|
27
|
+
};
|