@caseparts-org/caseblocks 0.0.256 → 0.0.258

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,8 +1,8 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { Admonition as o } from "./Admonition.js";
2
+ import { Admonition as e } from "./Admonition.js";
3
3
  const r = {
4
4
  title: "Case Parts/Molecules/Admonition",
5
- component: o,
5
+ component: e,
6
6
  tags: ["autodocs"],
7
7
  parameters: {
8
8
  layout: "centered"
@@ -11,7 +11,7 @@ const r = {
11
11
  admonitionType: { control: "text" },
12
12
  variant: {
13
13
  control: { type: "radio" },
14
- options: ["note", "tip", "important", "caution", "warning", "unknown"]
14
+ options: ["note", "tip", "attention", "caution", "warning", "unknown"]
15
15
  },
16
16
  title: { control: "text" },
17
17
  icon: { control: "text" },
@@ -21,12 +21,11 @@ const r = {
21
21
  admonitionType: "warning",
22
22
  variant: "warning",
23
23
  title: "Electrical Hazard",
24
- icon: "fa-solid fa-bolt",
25
24
  body: "Disconnect power before servicing this unit."
26
25
  }
27
- }, a = {
26
+ }, s = {
28
27
  render: (t) => /* @__PURE__ */ n("div", { style: { width: 640 }, children: /* @__PURE__ */ n(
29
- o,
28
+ e,
30
29
  {
31
30
  admonitionType: t.admonitionType,
32
31
  variant: t.variant,
@@ -36,6 +35,34 @@ const r = {
36
35
  }
37
36
  ) })
38
37
  }, l = {
38
+ render: () => /* @__PURE__ */ n(
39
+ "div",
40
+ {
41
+ style: {
42
+ display: "grid",
43
+ gap: 16,
44
+ gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
45
+ maxWidth: 960
46
+ },
47
+ children: [
48
+ ["note", "Confirm model and serial number before ordering."],
49
+ ["tip", "Use the provided measurements for the most accurate fit."],
50
+ ["attention", "Fits only selected revisions."],
51
+ ["caution", "Inspect the mounting surface before installation."],
52
+ ["warning", "Disconnect power before servicing this unit."],
53
+ ["unknown", "Custom types use neutral styling while retaining their label."]
54
+ ].map(([t, i]) => /* @__PURE__ */ n(
55
+ e,
56
+ {
57
+ admonitionType: t,
58
+ variant: t,
59
+ children: /* @__PURE__ */ n("p", { children: i })
60
+ },
61
+ t
62
+ ))
63
+ }
64
+ )
65
+ }, c = {
39
66
  args: {
40
67
  admonitionType: "custom-alert",
41
68
  variant: "unknown",
@@ -43,9 +70,25 @@ const r = {
43
70
  icon: "info",
44
71
  body: "This renders neutral styling while preserving the custom type."
45
72
  }
73
+ }, d = {
74
+ args: {
75
+ admonitionType: "attention",
76
+ variant: "attention",
77
+ body: "This uses the attention default icon."
78
+ }
79
+ }, m = {
80
+ args: {
81
+ admonitionType: "note",
82
+ variant: "note",
83
+ icon: !1,
84
+ body: "This omits the default icon."
85
+ }
46
86
  };
47
87
  export {
48
- a as Playground,
49
- l as UnknownType,
88
+ l as Admonitions,
89
+ d as DefaultIcon,
90
+ s as Playground,
91
+ c as UnknownType,
92
+ m as WithoutIcon,
50
93
  r as default
51
94
  };
@@ -8678,7 +8678,7 @@ const Ef = "_markdown_1kgcy_1", or = {
8678
8678
  className: t,
8679
8679
  admonitionType: o,
8680
8680
  variant: l,
8681
- icon: a,
8681
+ icon: a === "none" ? !1 : a,
8682
8682
  title: u,
8683
8683
  children: n
8684
8684
  }
@@ -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
 
@@ -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
 
@@ -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("");
@@ -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.256",
4
+ "version": "0.0.258",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",