@caseparts-org/caseblocks 0.0.255 → 0.0.257

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.
@@ -8,7 +8,7 @@ const w = {
8
8
  tags: ["autodocs"]
9
9
  }, r = `Kason 171 Latch
10
10
 
11
- :::important[Compatibility]
11
+ :::attention[Compatibility]
12
12
  Fits only selected revisions.
13
13
  :::
14
14
 
@@ -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 [i, o] = m(e.children ?? r);
19
+ const [o, i] = m(e.children ?? r);
20
20
  return p(() => {
21
- o(e.children ?? r);
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: i,
28
- onChange: (t) => o(t.target.value),
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: i
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
- }, b = {
113
+ }, k = {
114
114
  args: {
115
115
  children: `# Admonitions
116
116
 
@@ -118,7 +118,7 @@ Another valid numeric: [172].` })
118
118
  Confirm model and serial number before ordering.
119
119
  :::
120
120
 
121
- :::important[Compatibility]
121
+ :::attention[Compatibility]
122
122
  Fits only selected revisions.
123
123
  :::
124
124
 
@@ -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
- b as Admonitions,
150
+ k as Admonitions,
147
151
  y as Basic,
148
152
  x as ItemDescription,
149
153
  v as Playground,
@@ -1,4 +1,4 @@
1
- const y = /^[a-z][a-z0-9_-]*/, v = /^\s*(?:[a-z][a-z0-9_-]*="(?:[^"\\]|\\.)*"(?:[ \t]+[a-z][a-z0-9_-]*="(?:[^"\\]|\\.)*")*)?\s*$/, x = /([a-z][a-z0-9_-]*)="((?:[^"\\]|\\.)*)"/g, h = /^:::[ \t]*$/, A = /* @__PURE__ */ new Set(["note", "tip", "important", "caution", "warning"]), f = (t) => t.type === "text" && typeof t.value == "string" ? t.value : t.type === "break" ? `
1
+ const y = /^[a-z][a-z0-9_-]*/, v = /^\s*(?:[a-z][a-z0-9_-]*="(?:[^"\\]|\\.)*"(?:[ \t]+[a-z][a-z0-9_-]*="(?:[^"\\]|\\.)*")*)?\s*$/, x = /([a-z][a-z0-9_-]*)="((?:[^"\\]|\\.)*)"/g, h = /^:::[ \t]*$/, A = /* @__PURE__ */ new Set(["note", "tip", "attention", "caution", "warning"]), f = (t) => t.type === "text" && typeof t.value == "string" ? t.value : t.type === "break" ? `
2
2
  ` : (t.type === "inlineCode" || t.type === "html") && typeof t.value == "string" ? t.value : Array.isArray(t.children) && t.children.length > 0 ? t.children.map(f).join("") : "", p = (t) => {
3
3
  if (t.type !== "paragraph" || !t.children || t.children.length === 0) return null;
4
4
  const n = t.children.map(f).join("");
@@ -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
+ };
@@ -51,6 +51,11 @@
51
51
  --color-alerts-light-red: #fdf2f2;
52
52
  --color-alerts-light-teal-blue: #eaf2f9;
53
53
  --color-alerts-light-yellow: #fff6d9;
54
+ --color-alerts-medium-gray: #d5d5d5;
55
+ --color-alerts-medium-green: #bbd8bb;
56
+ --color-alerts-medium-orange: #dfcfc4;
57
+ --color-alerts-medium-red: #eed7d7;
58
+ --color-alerts-medium-yellow: #e7e2ce;
54
59
  --color-alerts-masked-edit-mode: #00bce2;
55
60
  --color-alerts-success: #00aa00;
56
61
  --color-alerts-warning: #f06721;
@@ -160,15 +165,20 @@
160
165
  /* Value */
161
166
  /* color */
162
167
  --border-border-black-box: var(--surface-surface-tertiary-btn);
168
+ --border-border-attention-medium: var(--color-alerts-medium-yellow);
169
+ --border-border-caution-medium: var(--color-alerts-medium-orange);
163
170
  --border-border-error-warning: var(--color-alerts-error-warning);
164
171
  --border-border-help: var(--color-alerts-caution-tips);
172
+ --border-border-note-medium: var(--color-alerts-medium-gray);
165
173
  --border-border-primary: var(--color-neutrals-neutral-2);
166
174
  --border-border-primary-btn: var(--color-brand-primary-primary-teal-blue);
167
175
  --border-border-primary-chit: var(--color-brand-primary-primary-teal-blue);
168
176
  --border-border-secondary: var(--color-brand-secondary-md-teal-blue);
169
177
  --border-border-secondary-btn: var(--color-neutrals-neutral-2);
170
178
  --border-border-success: var(--color-alerts-success);
179
+ --border-border-tip-medium: var(--color-alerts-medium-green);
171
180
  --border-border-warning: var(--color-alerts-warning);
181
+ --border-border-warning-medium: var(--color-alerts-medium-red);
172
182
  --icons-icon-caution-tips: #ffd041;
173
183
  --icons-icon-default: var(--color-brand-primary-primary-black);
174
184
  --icons-icon-error-warning: var(--color-alerts-error-warning);
@@ -205,10 +215,15 @@
205
215
  --surface-surface-search-bar: var(--color-neutrals-neutral-1);
206
216
  --surface-surface-secondary: var(--color-neutrals-neutral-1);
207
217
  --surface-surface-secondary-btn: var(--color-brand-primary-white);
218
+ --surface-surface-attention: var(--color-alerts-light-yellow);
219
+ --surface-surface-caution: var(--color-alerts-light-orange);
220
+ --surface-surface-note: var(--surface-surface-secondary);
221
+ --surface-surface-tip: var(--color-alerts-light-green);
208
222
  --surface-surface-tertiary: var(--color-brand-primary-primary-black);
209
223
  --surface-surface-tertiary-btn: var(--color-brand-primary-primary-black);
210
224
  --surface-surface-tertiary-btn-focus: var(--color-brand-primary-white);
211
225
  --surface-surface-text-links: var(--color-brand-primary-white);
226
+ --surface-surface-warning: var(--color-alerts-light-red);
212
227
  --surface-surface-searchBar: var(--color-neutrals-neutral-1);
213
228
  --text-text-caution: var(--color-brand-primary-primary-tangerine);
214
229
  --text-text-disabled: var(--color-neutrals-text-disabled);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.255",
4
+ "version": "0.0.257",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",