@tonycodes-ui/mortar 0.29.0 → 0.30.0

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/cli/audit.mjs CHANGED
@@ -1375,7 +1375,7 @@ export async function auditApp(path = ".", { data: bundled } = {}) {
1375
1375
  "error",
1376
1376
  file,
1377
1377
  line(m.index),
1378
- `Reaches into ${m[0]}; only "${PKG}", "${PKG}/styles.css", "${PKG}/brand", "${PKG}/email" and "${PKG}/data-grid" are public.`,
1378
+ `Reaches into ${m[0]}; only "${PKG}", "${PKG}/styles.css", "${PKG}/brand", "${PKG}/email", "${PKG}/data-grid" and "${PKG}/charts" are public.`,
1379
1379
  `Import from "${PKG}" instead, and remove any alias to the package's source.`,
1380
1380
  );
1381
1381
  }
package/cli/data.mjs CHANGED
@@ -40,6 +40,11 @@ export const GUIDES = {
40
40
  summary:
41
41
  "Transactional email from @tonycodes-ui/mortar/email: emailTheme, the Email components, the templates (verify email, magic link, password reset, invite, receipt, notification) and renderEmail.",
42
42
  },
43
+ charts: {
44
+ file: "docs/charts.md",
45
+ summary:
46
+ "Charts from @tonycodes-ui/mortar/charts: Sparkline, MetricGroup sparklines, the spoken summary, and the eight-slot series palette and its rules.",
47
+ },
43
48
  "data-grid": {
44
49
  file: "docs/data-grid.md",
45
50
  summary:
package/cli/packet.mjs CHANGED
@@ -283,6 +283,8 @@ export function buildPacket(data, { components: names = [], brief } = {}) {
283
283
  const native = !!brief && NATIVE_WORDS.test(brief);
284
284
  if (native) guides.push("native");
285
285
  if (selection.some((c) => c.export === "DataGrid")) guides.push("data-grid");
286
+ if (selection.some((c) => c.package?.endsWith("/charts")))
287
+ guides.push("charts");
286
288
  return {
287
289
  package: data.packageName,
288
290
  version: data.version,