@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/CHANGELOG.md +6 -18
- package/catalog.json +463 -361
- package/cli/audit.mjs +1 -1
- package/cli/data.mjs +5 -0
- package/cli/packet.mjs +2 -0
- package/dist/agent-data.json +1 -1
- package/dist/application.d.ts +2 -0
- package/dist/application.js +2 -1
- package/dist/chart-core.d.ts +30 -0
- package/dist/chart-core.js +100 -0
- package/dist/charts.d.ts +3 -0
- package/dist/charts.js +3 -0
- package/dist/sparkline.d.ts +28 -0
- package/dist/sparkline.js +31 -0
- package/docs/charts.md +68 -0
- package/package.json +5 -1
- package/src/application.css +6 -1
- package/src/application.tsx +10 -0
- package/src/chart-core.ts +113 -0
- package/src/charts.css +58 -0
- package/src/charts.ts +6 -0
- package/src/sparkline.tsx +124 -0
- package/src/tokens.css +26 -0
- package/styles.css +1 -0
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"
|
|
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,
|