basalt-ui 1.1.1 → 1.3.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/AGENTS.md +2 -2
- package/CHANGELOG.md +46 -0
- package/README.md +64 -8
- package/agent/rules/basalt-app.md +126 -0
- package/agent/rules/basalt-content.md +3 -1
- package/agent/rules/basalt-tokens.md +14 -5
- package/agent/skills/basalt-app/SKILL.md +28 -7
- package/dist/agent/part-list.d.ts.map +1 -1
- package/dist/agent/part-list.js +17 -7
- package/dist/agent/stick-to-bottom.js +2 -2
- package/dist/agent-chat/thread-detail-panel.d.ts.map +1 -1
- package/dist/agent-chat/thread-detail-panel.js +37 -33
- package/dist/agent-chat/thread-message.d.ts.map +1 -1
- package/dist/agent-chat/thread-message.js +8 -5
- package/dist/agent-chat/thread-outcome-card.js +3 -3
- package/dist/agent-chat/thread-workspace.js +1 -1
- package/dist/charts/primitives/ChartLegend.js +2 -0
- package/dist/charts/primitives/ChartTooltip.js +2 -1
- package/dist/cli/index.d.ts +29 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +80 -9
- package/dist/connectivity/connectivity-indicator.d.ts.map +1 -1
- package/dist/connectivity/connectivity-indicator.js +3 -3
- package/dist/content/article-card.module.css +7 -5
- package/dist/content/article-layout.module.css +16 -12
- package/dist/content/callout.module.css +4 -4
- package/dist/content/code-block.module.css +8 -7
- package/dist/content/guide.module.css +3 -3
- package/dist/content/mermaid.module.css +2 -2
- package/dist/content/prose.module.css +59 -29
- package/dist/content/reading-progress.module.css +2 -0
- package/dist/content/toc.module.css +6 -3
- package/dist/dashboard/delta-badge.d.ts.map +1 -1
- package/dist/dashboard/delta-badge.js +10 -2
- package/dist/dashboard/empty-state.d.ts.map +1 -1
- package/dist/dashboard/empty-state.js +3 -16
- package/dist/dashboard/settings-section.js +2 -2
- package/dist/dashboard/settings-section.module.css +2 -2
- package/dist/dashboard/stat-card.js +2 -1
- package/dist/data/virtual-list.d.ts.map +1 -1
- package/dist/data/virtual-list.js +12 -2
- package/dist/forms/FormErrorSummary.js +2 -2
- package/dist/guard/index.d.ts +20 -4
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +266 -38
- package/dist/guard/types.d.ts +24 -3
- package/dist/guard/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/provider/index.d.ts +30 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +32 -7
- package/dist/provider/lab-theme.d.ts +39 -0
- package/dist/provider/lab-theme.d.ts.map +1 -0
- package/dist/provider/lab-theme.js +52 -0
- package/dist/shell/app-header.module.css +2 -2
- package/dist/shell/app-mobile-nav.module.css +1 -1
- package/dist/shell/app-sidebar-account.d.ts.map +1 -1
- package/dist/shell/app-sidebar-account.js +4 -2
- package/dist/shell/app-sidebar.d.ts.map +1 -1
- package/dist/shell/app-sidebar.js +4 -2
- package/dist/shell/app-sidebar.module.css +36 -26
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +11 -4
- package/dist/shell/sidebar-search.module.css +16 -4
- package/dist/styles.css +22 -11
- package/dist/surfaces.d.ts +21 -11
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +10 -3
- package/dist/theme/controls.module.css +1 -1
- package/dist/theme/floating.module.css +1 -1
- package/dist/theme/index.d.ts +116 -11
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +703 -566
- package/dist/theme/nav-link.module.css +1 -1
- package/dist/theme/use-basalt-spacing.d.ts +3 -0
- package/dist/theme/use-basalt-spacing.d.ts.map +1 -0
- package/dist/theme/use-basalt-spacing.js +8 -0
- package/dist/theme-lab/derive-controls.d.ts +13 -0
- package/dist/theme-lab/derive-controls.d.ts.map +1 -0
- package/dist/theme-lab/derive-controls.js +137 -0
- package/dist/theme-lab/derive-state.d.ts +55 -0
- package/dist/theme-lab/derive-state.d.ts.map +1 -0
- package/dist/theme-lab/derive-state.js +81 -0
- package/dist/theme-lab/index.d.ts +12 -2
- package/dist/theme-lab/index.d.ts.map +1 -1
- package/dist/theme-lab/index.js +13 -62
- package/dist/theme-toggle/index.d.ts.map +1 -1
- package/dist/theme-toggle/index.js +3 -2
- package/dist/tokens/derive.d.ts +89 -0
- package/dist/tokens/derive.d.ts.map +1 -0
- package/dist/tokens/derive.js +250 -0
- package/dist/tokens/hct.d.ts +34 -0
- package/dist/tokens/hct.d.ts.map +1 -0
- package/dist/tokens/hct.js +159 -0
- package/dist/tokens/index.d.ts +143 -7
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +322 -48
- package/dist/tokens/palette.d.ts +984 -167
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +617 -119
- package/dist/tokens.css +248 -0
- package/dist/vite-color-mix.d.ts +30 -0
- package/dist/vite-color-mix.d.ts.map +1 -0
- package/dist/vite-color-mix.js +80 -0
- package/dist/vite.d.ts +82 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +312 -0
- package/llms.txt +14 -4
- package/package.json +41 -10
- package/src/agent/part-list.tsx +13 -7
- package/src/agent/stick-to-bottom.tsx +2 -2
- package/src/agent-chat/thread-detail-panel.tsx +13 -10
- package/src/agent-chat/thread-message.tsx +8 -5
- package/src/agent-chat/thread-outcome-card.tsx +2 -2
- package/src/agent-chat/thread-workspace.tsx +2 -2
- package/src/charts/primitives/ChartLegend.tsx +2 -2
- package/src/charts/primitives/ChartTooltip.tsx +2 -2
- package/src/cli/check-theme.test.ts +18 -0
- package/src/cli/index.ts +129 -6
- package/src/cli/tokens-css.test.ts +90 -0
- package/src/connectivity/connectivity-indicator.tsx +8 -2
- package/src/content/article-card.module.css +7 -5
- package/src/content/article-layout.module.css +16 -12
- package/src/content/callout.module.css +4 -4
- package/src/content/code-block.module.css +8 -7
- package/src/content/guide.module.css +3 -3
- package/src/content/mermaid.module.css +2 -2
- package/src/content/prose.module.css +59 -29
- package/src/content/prose.module.css.test.ts +55 -0
- package/src/content/reading-progress.module.css +2 -0
- package/src/content/toc.module.css +6 -3
- package/src/dashboard/delta-badge.tsx +10 -4
- package/src/dashboard/empty-state.tsx +3 -16
- package/src/dashboard/settings-section.module.css +2 -2
- package/src/dashboard/settings-section.tsx +2 -2
- package/src/dashboard/stat-card.tsx +2 -2
- package/src/data/virtual-list.tsx +12 -2
- package/src/forms/FormErrorSummary.tsx +1 -1
- package/src/guard/check-source.test.ts +483 -15
- package/src/guard/index.ts +426 -47
- package/src/guard/types.ts +24 -2
- package/src/index.ts +1 -0
- package/src/provider/index.test.tsx +100 -0
- package/src/provider/index.tsx +79 -7
- package/src/provider/lab-theme.test.ts +147 -0
- package/src/provider/lab-theme.ts +166 -0
- package/src/shell/app-header.module.css +2 -2
- package/src/shell/app-mobile-nav.module.css +1 -1
- package/src/shell/app-sidebar-account.tsx +9 -2
- package/src/shell/app-sidebar.module.css +36 -26
- package/src/shell/app-sidebar.tsx +12 -2
- package/src/shell/index.tsx +14 -3
- package/src/shell/sidebar-search.module.css +16 -4
- package/src/styles.css +22 -11
- package/src/surfaces.ts +24 -10
- package/src/theme/contrast.test.ts +19 -3
- package/src/theme/controls.module.css +1 -1
- package/src/theme/density-option.test.ts +96 -0
- package/src/theme/density-relations.test.ts +428 -0
- package/src/theme/derive-theme.test.ts +101 -0
- package/src/theme/floating.module.css +1 -1
- package/src/theme/fonts-option.test.ts +69 -0
- package/src/theme/index.ts +930 -563
- package/src/theme/nav-link.module.css +1 -1
- package/src/theme/radius-option.test.ts +86 -0
- package/src/theme/radius.test.ts +132 -0
- package/src/theme/spacing.test.ts +432 -0
- package/src/theme/use-basalt-spacing.test.tsx +51 -0
- package/src/theme/use-basalt-spacing.ts +38 -0
- package/src/theme-lab/derive-controls.test.ts +94 -0
- package/src/theme-lab/derive-controls.tsx +227 -0
- package/src/theme-lab/derive-state.test.ts +71 -0
- package/src/theme-lab/derive-state.ts +163 -0
- package/src/theme-lab/index.tsx +29 -68
- package/src/theme-lab/theme-lab.test.ts +4 -18
- package/src/theme-toggle/index.tsx +9 -4
- package/src/tokens/build-fonts-css.test.ts +51 -0
- package/src/tokens/build-radius-css.test.ts +25 -0
- package/src/tokens/density.test.ts +274 -0
- package/src/tokens/derive-radius.test.ts +62 -0
- package/src/tokens/derive.test.ts +30 -0
- package/src/tokens/derive.ts +481 -0
- package/src/tokens/hct.ts +231 -0
- package/src/tokens/index.ts +534 -48
- package/src/tokens/palette.test.ts +114 -0
- package/src/tokens/palette.ts +1118 -180
- package/src/vite-color-mix.test.ts +46 -0
- package/src/vite-color-mix.ts +137 -0
- package/src/vite.test.ts +192 -0
- package/src/vite.ts +502 -1
|
@@ -25,14 +25,17 @@ const MICRO_LABEL_STYLE = {
|
|
|
25
25
|
function TextRenderer({ part }) {
|
|
26
26
|
return /* @__PURE__ */ jsx(Markdown, { streaming: true, density: "chat", children: part.text });
|
|
27
27
|
}
|
|
28
|
-
const RAIL_STYLE = {
|
|
28
|
+
const RAIL_STYLE = {
|
|
29
|
+
borderLeft: `2px solid ${VX.divider}`,
|
|
30
|
+
paddingLeft: "var(--vx-space-agent-rail-inset-x)"
|
|
31
|
+
};
|
|
29
32
|
const CODE_BLOCK_STYLE = {
|
|
30
33
|
margin: 0,
|
|
31
|
-
marginTop:
|
|
34
|
+
marginTop: "var(--vx-space-agent-part-gap-top)",
|
|
32
35
|
fontFamily: "var(--basalt-font-mono)",
|
|
33
36
|
backgroundColor: alpha(VX.ink, 0.06),
|
|
34
|
-
borderRadius:
|
|
35
|
-
padding:
|
|
37
|
+
borderRadius: "var(--vx-radius-card)",
|
|
38
|
+
padding: "var(--vx-space-agent-code-inset)",
|
|
36
39
|
whiteSpace: "pre-wrap",
|
|
37
40
|
overflowWrap: "anywhere"
|
|
38
41
|
};
|
|
@@ -90,7 +93,7 @@ function MessageBlock({
|
|
|
90
93
|
Box,
|
|
91
94
|
{
|
|
92
95
|
style: {
|
|
93
|
-
padding: "
|
|
96
|
+
padding: "var(--vx-space-agent-message-inset-y) var(--vx-space-agent-message-inset-x)",
|
|
94
97
|
backgroundColor: author === "user" ? VX.surface.subtle : VX.surface.panel,
|
|
95
98
|
borderRadius: VX.radiusCard,
|
|
96
99
|
boxShadow: VX.shadowCard
|
|
@@ -59,12 +59,12 @@ function OutcomeBody({ thread }) {
|
|
|
59
59
|
Badge,
|
|
60
60
|
{
|
|
61
61
|
size: "xs",
|
|
62
|
-
radius: 6,
|
|
63
62
|
styles: {
|
|
64
63
|
root: {
|
|
65
64
|
backgroundColor: alpha(badge.statusToken, 0.13),
|
|
66
|
-
padding: "
|
|
67
|
-
height: "auto"
|
|
65
|
+
padding: "var(--vx-space-badge-inset-y) var(--vx-space-badge-inset-x)",
|
|
66
|
+
height: "auto",
|
|
67
|
+
borderRadius: "var(--vx-radius-ctrl)"
|
|
68
68
|
},
|
|
69
69
|
label: {
|
|
70
70
|
fontFamily: "var(--basalt-font-mono)",
|
|
@@ -49,7 +49,7 @@ function ThreadWorkspace({
|
|
|
49
49
|
if (store.activeId === null) return;
|
|
50
50
|
runs.retry(store.activeId);
|
|
51
51
|
};
|
|
52
|
-
const feed = /* @__PURE__ */ jsxs(
|
|
52
|
+
const feed = /* @__PURE__ */ jsxs(Flex, { direction: "column", h: "100%", style: { overflow: "hidden" }, children: [
|
|
53
53
|
/* @__PURE__ */ jsx(Box, { style: { flex: 1, minHeight: 0 }, children: store.threads.length === 0 ? emptyState ?? /* @__PURE__ */ jsx(FeedEmptyState, {}) : /* @__PURE__ */ jsx(ThreadFeed, { threads, activeId: store.activeId, onSelect: handleSelect }) }),
|
|
54
54
|
/* @__PURE__ */ jsx(Divider, { color: "var(--vx-divider)" }),
|
|
55
55
|
/* @__PURE__ */ jsx(Box, { p: "sm", children: /* @__PURE__ */ jsx(
|
|
@@ -106,6 +106,7 @@ function LegendSwatch({ item, idPrefix }) {
|
|
|
106
106
|
width: 11,
|
|
107
107
|
height: 11,
|
|
108
108
|
borderRadius: 3,
|
|
109
|
+
// theme-allow: sub-scale legend-swatch corner, below the 4px radius floor
|
|
109
110
|
backgroundColor: item.color,
|
|
110
111
|
opacity: item.fillOpacity ?? 0.7,
|
|
111
112
|
flexShrink: 0
|
|
@@ -144,6 +145,7 @@ function LegendChildSwatch({ item }) {
|
|
|
144
145
|
width: 10,
|
|
145
146
|
height: 10,
|
|
146
147
|
borderRadius: 2,
|
|
148
|
+
// theme-allow: sub-scale legend-swatch corner, below the 4px radius floor
|
|
147
149
|
backgroundColor: item.color,
|
|
148
150
|
opacity: item.fillOpacity ?? 0.7,
|
|
149
151
|
flexShrink: 0
|
|
@@ -6,7 +6,7 @@ const TOOLTIP_STYLES = {
|
|
|
6
6
|
pointerEvents: "none",
|
|
7
7
|
zIndex: 9999,
|
|
8
8
|
backgroundColor: VX.surface.panel,
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: "var(--vx-radius-floating)",
|
|
10
10
|
padding: "0",
|
|
11
11
|
fontSize: VX.text.xs,
|
|
12
12
|
lineHeight: "18px",
|
|
@@ -110,6 +110,7 @@ function TooltipRow({
|
|
|
110
110
|
width: 8,
|
|
111
111
|
height: 8,
|
|
112
112
|
borderRadius: 2,
|
|
113
|
+
// theme-allow: sub-scale tooltip micro-corner, below the 4px radius floor
|
|
113
114
|
backgroundColor: color,
|
|
114
115
|
flexShrink: 0
|
|
115
116
|
}
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuardKind } from '../guard/index.js';
|
|
1
2
|
import { RULE_NAMES, SKILL_NAMES } from '../surfaces.js';
|
|
2
3
|
/** Shape of the optional `"basalt"` key in a consumer's package.json. */
|
|
3
4
|
export type BasaltConfig = {
|
|
@@ -101,6 +102,18 @@ export type BasaltConfig = {
|
|
|
101
102
|
* Default: `<first basalt.root>/lib/series.ts` — see `resolveSeriesModulePath`.
|
|
102
103
|
*/
|
|
103
104
|
seriesModulePath?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Per-rule, per-path exemptions — complements whole-file `exempt` (which skips ALL rules for a
|
|
107
|
+
* file) and the hardcoded per-kind `appliesTo` scoping (e.g. `raw-visx-axis` → chart files
|
|
108
|
+
* only). Each value is a list of path-segment patterns matched against a finding's relative
|
|
109
|
+
* path: a pattern matches when the path split on `/` includes it as a WHOLE segment (`'agent'`
|
|
110
|
+
* matches `src/agent/x.tsx` but not `src/agenting.ts`; a trailing `/` is stripped, so `'agent'`
|
|
111
|
+
* and `'agent/'` are equivalent). Default: `{}` (no exemptions).
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* { exemptRules: { 'inline-display': ['agent'] } } // inline-display never fires under src/agent/**
|
|
115
|
+
*/
|
|
116
|
+
exemptRules?: Partial<Record<GuardKind, string[]>>;
|
|
104
117
|
};
|
|
105
118
|
/**
|
|
106
119
|
* Theme guard — thin FS walker over the headless `../guard` core. Reads BasaltConfig, builds a
|
|
@@ -272,6 +285,8 @@ type DoctorResult = {
|
|
|
272
285
|
* stale).
|
|
273
286
|
* 3. The running CLI's own version matches the installed basalt-ui (catches a stale
|
|
274
287
|
* `bunx basalt-ui` npm fetch; best-effort, skipped if node_modules is absent).
|
|
288
|
+
* 4. `basaltAppPlugin`'s (basalt-ui/vite) default icon filenames exist under public/ (only when
|
|
289
|
+
* a public/ dir exists at all — skipped otherwise).
|
|
275
290
|
*
|
|
276
291
|
* Returns the exit code: 0 = all good, 1 = one or more hard failures.
|
|
277
292
|
*/
|
|
@@ -299,6 +314,20 @@ export type InfoOutput = {
|
|
|
299
314
|
* `basalt info --json` → stable JSON (InfoOutput shape)
|
|
300
315
|
*/
|
|
301
316
|
export declare function info(flags: string[]): number;
|
|
317
|
+
/**
|
|
318
|
+
* tokens:css — emit the `--vx-*` stylesheet, optionally retargeted.
|
|
319
|
+
*
|
|
320
|
+
* The escape hatch from installing anything: a static site runs this once (`bunx basalt-ui
|
|
321
|
+
* tokens:css --selector-attribute data-theme --out src/tokens.css`) and consumes basalt's token
|
|
322
|
+
* system as plain CSS, with no package in its dependency tree at all. `basalt-ui/tokens.css` is the
|
|
323
|
+
* same artifact for a consumer that does install; this command exists for the ones that shouldn't
|
|
324
|
+
* have to just to change a selector.
|
|
325
|
+
*
|
|
326
|
+
* It parses flags and calls `buildPaletteCss` — nothing else. No emission logic, no post-processing
|
|
327
|
+
* of the returned string: the CLI and the API must not be able to disagree about what basalt's
|
|
328
|
+
* tokens are.
|
|
329
|
+
*/
|
|
330
|
+
export declare function tokensCss(flags: string[], cwd?: string): number;
|
|
302
331
|
/**
|
|
303
332
|
* guard-hook — PreToolUse stdin adapter.
|
|
304
333
|
*
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAwB,SAAS,EAAE,MAAM,UAAU,CAAA;AAE/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAA2C,MAAM,aAAa,CAAA;AAI9F,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG;IACzB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,uGAAuG;IACvG,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO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,CAAA;AACnF,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA"}
|
package/dist/cli/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { fileURLToPath } from "node:url";
|
|
|
13
13
|
import { checkSource, DEFAULT_GUARD_CONFIG, GUARD_RULES } from "../guard/index.js";
|
|
14
14
|
import { evaluateGuardHook } from "../guard/guard-hook.js";
|
|
15
15
|
import { RULE_NAMES, SKILL_NAMES, SURFACES, TOKEN_LAYER_BOUNDARY_SURFACES } from "../surfaces.js";
|
|
16
|
+
import { buildPaletteCss } from "../tokens/index.js";
|
|
16
17
|
const DEFAULT_ROOT = "src";
|
|
17
18
|
const DEFAULT_ROOTS = [DEFAULT_ROOT];
|
|
18
19
|
function resolveRoots(cfg) {
|
|
@@ -39,7 +40,7 @@ function readBasaltConfig(cwd) {
|
|
|
39
40
|
return {};
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function walkSourceFiles(dir, out = []) {
|
|
43
44
|
let entries;
|
|
44
45
|
try {
|
|
45
46
|
entries = readdirSync(dir);
|
|
@@ -55,8 +56,8 @@ function walkTsFiles(dir, out = []) {
|
|
|
55
56
|
} catch {
|
|
56
57
|
continue;
|
|
57
58
|
}
|
|
58
|
-
if (isDir)
|
|
59
|
-
else if (/\.tsx
|
|
59
|
+
if (isDir) walkSourceFiles(abs, out);
|
|
60
|
+
else if (/\.(?:tsx?|css)$/.test(name)) out.push(abs);
|
|
60
61
|
}
|
|
61
62
|
return out;
|
|
62
63
|
}
|
|
@@ -76,7 +77,8 @@ const GUARD_KIND_EXPLANATIONS = {
|
|
|
76
77
|
"raw-motion-value": "raw-motion-value: hardcoded duration/spring/ease in `transition={{...}}` \u2014 use MOTION_DURATION / MOTION_SPRING / MOTION_EASE_STANDARD instead.",
|
|
77
78
|
"unframed-chart": "unframed-chart: hand-rolled ChartLegend built from an inline array literal \u2014 pass a derived legend (deriveLegend(series)), or compose ChartFrame, which derives it for you.",
|
|
78
79
|
"raw-form-control": "raw-form-control: raw <input>/<select>/<textarea> bypasses the entire theme \u2014 use TextInput / NumberInput / Select / Textarea from @mantine/core.",
|
|
79
|
-
"sub-16-input-font": "sub-16-input-font: fontSize below 16 on a form control is dead code against the `!important` iOS floor in styles.css \u2014 drop the override or be honest about 16px."
|
|
80
|
+
"sub-16-input-font": "sub-16-input-font: fontSize below 16 on a form control is dead code against the `!important` iOS floor in styles.css \u2014 drop the override or be honest about 16px.",
|
|
81
|
+
"raw-font-family": "raw-font-family: route the font stack through createBasaltTheme(overrides, { fonts }) / the --basalt-font-sans|head|mono vars instead of a hardcoded fontFamily literal."
|
|
80
82
|
};
|
|
81
83
|
function checkTheme(cwd = process.cwd()) {
|
|
82
84
|
const cfg = readBasaltConfig(cwd);
|
|
@@ -98,12 +100,13 @@ function checkTheme(cwd = process.cwd()) {
|
|
|
98
100
|
chartMissingAriaLabel: cfg.chartMissingAriaLabel ?? DEFAULT_GUARD_CONFIG.chartMissingAriaLabel,
|
|
99
101
|
rawFormControl: cfg.rawFormControl ?? DEFAULT_GUARD_CONFIG.rawFormControl,
|
|
100
102
|
sub16InputFont: cfg.sub16InputFont ?? DEFAULT_GUARD_CONFIG.sub16InputFont,
|
|
101
|
-
allowComment: "theme-allow"
|
|
103
|
+
allowComment: "theme-allow",
|
|
104
|
+
exemptRules: cfg.exemptRules ?? DEFAULT_GUARD_CONFIG.exemptRules
|
|
102
105
|
};
|
|
103
106
|
const findings = [];
|
|
104
107
|
let scannedCount = 0;
|
|
105
108
|
for (const root of roots) {
|
|
106
|
-
for (const f of
|
|
109
|
+
for (const f of walkSourceFiles(resolve(cwd, root))) {
|
|
107
110
|
const rel = relative(cwd, f).replace(/\\/g, "/");
|
|
108
111
|
if (SKIP.test(rel) || exempt.has(rel)) continue;
|
|
109
112
|
scannedCount += 1;
|
|
@@ -710,6 +713,25 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
710
713
|
pass(`CLI version (${cliVersion}) matches the installed basalt-ui in node_modules`);
|
|
711
714
|
}
|
|
712
715
|
}
|
|
716
|
+
const publicDir = resolve(cwd, "public");
|
|
717
|
+
if (existsSync(publicDir)) {
|
|
718
|
+
const iconFiles = [
|
|
719
|
+
"favicon.ico",
|
|
720
|
+
"favicon.svg",
|
|
721
|
+
"favicon-96x96.png",
|
|
722
|
+
"apple-touch-icon.png",
|
|
723
|
+
"web-app-manifest-192x192.png",
|
|
724
|
+
"web-app-manifest-512x512.png"
|
|
725
|
+
];
|
|
726
|
+
const missingIcons = iconFiles.filter((f) => !existsSync(resolve(publicDir, f)));
|
|
727
|
+
if (missingIcons.length > 0) {
|
|
728
|
+
warn(
|
|
729
|
+
`public/ is missing basaltAppPlugin icon file(s): ${missingIcons.join(", ")} \u2014 generate them (e.g. via realfavicongenerator.net) and place them at the public/ root.`
|
|
730
|
+
);
|
|
731
|
+
} else {
|
|
732
|
+
pass("public/ has all of basaltAppPlugin's default icon files");
|
|
733
|
+
}
|
|
734
|
+
}
|
|
713
735
|
lines.push("");
|
|
714
736
|
if (result.hardFailures === 0 && result.warnings === 0) {
|
|
715
737
|
lines.push("All checks passed.");
|
|
@@ -793,6 +815,51 @@ basalt-ui v${pkgVersion} \u2014 published surface
|
|
|
793
815
|
console.log("");
|
|
794
816
|
return 0;
|
|
795
817
|
}
|
|
818
|
+
function flagValue(flags, name) {
|
|
819
|
+
const i = flags.indexOf(name);
|
|
820
|
+
if (i === -1) return void 0;
|
|
821
|
+
const value = flags[i + 1];
|
|
822
|
+
return value === void 0 || value.startsWith("--") ? void 0 : value;
|
|
823
|
+
}
|
|
824
|
+
function tokensCss(flags, cwd = process.cwd()) {
|
|
825
|
+
const attribute = flagValue(flags, "--selector-attribute");
|
|
826
|
+
const darkValue = flagValue(flags, "--dark-value");
|
|
827
|
+
const lightValue = flagValue(flags, "--light-value");
|
|
828
|
+
const defaultScheme = flagValue(flags, "--default-scheme");
|
|
829
|
+
const only = flagValue(flags, "--only");
|
|
830
|
+
if (defaultScheme !== void 0 && !["dark", "light", "none"].includes(defaultScheme)) {
|
|
831
|
+
console.error(
|
|
832
|
+
`tokens:css: --default-scheme must be dark, light or none (got '${defaultScheme}')`
|
|
833
|
+
);
|
|
834
|
+
return 1;
|
|
835
|
+
}
|
|
836
|
+
if (only !== void 0 && !["core", "all"].includes(only)) {
|
|
837
|
+
console.error(`tokens:css: --only must be core or all (got '${only}')`);
|
|
838
|
+
return 1;
|
|
839
|
+
}
|
|
840
|
+
const scheme = {
|
|
841
|
+
...attribute === void 0 ? {} : { attribute },
|
|
842
|
+
...darkValue === void 0 ? {} : { darkValue },
|
|
843
|
+
...lightValue === void 0 ? {} : { lightValue }
|
|
844
|
+
};
|
|
845
|
+
const css = buildPaletteCss({
|
|
846
|
+
...Object.keys(scheme).length === 0 ? {} : { scheme },
|
|
847
|
+
...defaultScheme === void 0 ? {} : { defaultScheme },
|
|
848
|
+
...flags.includes("--media-fallback") ? { mediaFallback: true } : {},
|
|
849
|
+
...only === void 0 ? {} : { only }
|
|
850
|
+
});
|
|
851
|
+
const out = flagValue(flags, "--out");
|
|
852
|
+
if (out === void 0) {
|
|
853
|
+
process.stdout.write(`${css}
|
|
854
|
+
`);
|
|
855
|
+
return 0;
|
|
856
|
+
}
|
|
857
|
+
const target = isAbsolute(out) ? out : resolve(cwd, out);
|
|
858
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
859
|
+
writeFileSync(target, css);
|
|
860
|
+
console.log(`wrote ${css.split("\n").length} lines \u2192 ${relative(cwd, target) || target}`);
|
|
861
|
+
return 0;
|
|
862
|
+
}
|
|
796
863
|
async function guardHook(cwd = process.cwd()) {
|
|
797
864
|
let raw;
|
|
798
865
|
try {
|
|
@@ -835,7 +902,8 @@ async function guardHook(cwd = process.cwd()) {
|
|
|
835
902
|
chartMissingAriaLabel: cfg.chartMissingAriaLabel ?? DEFAULT_GUARD_CONFIG.chartMissingAriaLabel,
|
|
836
903
|
rawFormControl: cfg.rawFormControl ?? DEFAULT_GUARD_CONFIG.rawFormControl,
|
|
837
904
|
sub16InputFont: cfg.sub16InputFont ?? DEFAULT_GUARD_CONFIG.sub16InputFont,
|
|
838
|
-
allowComment: "theme-allow"
|
|
905
|
+
allowComment: "theme-allow",
|
|
906
|
+
exemptRules: cfg.exemptRules ?? DEFAULT_GUARD_CONFIG.exemptRules
|
|
839
907
|
};
|
|
840
908
|
const roots = cfg.roots ?? DEFAULT_ROOTS;
|
|
841
909
|
const exempt = new Set(cfg.exempt ?? defaultExempt(cfg));
|
|
@@ -867,7 +935,7 @@ async function guardHook(cwd = process.cwd()) {
|
|
|
867
935
|
}
|
|
868
936
|
return 0;
|
|
869
937
|
}
|
|
870
|
-
const USAGE = "Usage: basalt-ui <init [--with-router] [--with-query] | sync [--force] [--check] | check-theme | check-coverage | info [--json] | doctor | guard-hook | help>\n\nEvery subcommand accepts --help / -h to print this message and exit without running.";
|
|
938
|
+
const USAGE = "Usage: basalt-ui <init [--with-router] [--with-query] | sync [--force] [--check] | check-theme | check-coverage | info [--json] | doctor | guard-hook | tokens:css | help>\n\ntokens:css [--out <path>] [--selector-attribute <attr>] [--dark-value <v>] [--light-value <v>]\n [--default-scheme <dark|light|none>] [--media-fallback] [--only <core|all>]\n Emit the --vx-* stylesheet (stdout unless --out). Defaults reproduce basalt-ui/tokens.css.\n\nEvery subcommand accepts --help / -h to print this message and exit without running.";
|
|
871
939
|
function run(argv, cwd = process.cwd()) {
|
|
872
940
|
const [cmd, ...flags] = argv;
|
|
873
941
|
if (cmd === "help" || cmd === "--help" || cmd === "-h" || flags.includes("--help") || flags.includes("-h")) {
|
|
@@ -892,6 +960,8 @@ function run(argv, cwd = process.cwd()) {
|
|
|
892
960
|
return doctor(cwd);
|
|
893
961
|
case "guard-hook":
|
|
894
962
|
return guardHook(cwd);
|
|
963
|
+
case "tokens:css":
|
|
964
|
+
return tokensCss(flags, cwd);
|
|
895
965
|
default:
|
|
896
966
|
console.error(USAGE);
|
|
897
967
|
return 1;
|
|
@@ -910,5 +980,6 @@ export {
|
|
|
910
980
|
managedFiles,
|
|
911
981
|
normalizeForLedger,
|
|
912
982
|
run,
|
|
913
|
-
sync
|
|
983
|
+
sync,
|
|
984
|
+
tokensCss
|
|
914
985
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectivity-indicator.d.ts","sourceRoot":"","sources":["../../src/connectivity/connectivity-indicator.tsx"],"names":[],"mappings":"AA0KA;;;;;GAKG;AACH,wBAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"connectivity-indicator.d.ts","sourceRoot":"","sources":["../../src/connectivity/connectivity-indicator.tsx"],"names":[],"mappings":"AA0KA;;;;;GAKG;AACH,wBAAgB,qBAAqB,gCA8EpC"}
|
|
@@ -149,7 +149,7 @@ function ConnectivityIndicator() {
|
|
|
149
149
|
{
|
|
150
150
|
variant: "transparent",
|
|
151
151
|
color: ICON_COLOR[status],
|
|
152
|
-
size:
|
|
152
|
+
size: 28,
|
|
153
153
|
onClick: toggle,
|
|
154
154
|
onMouseEnter: scheduleOpen,
|
|
155
155
|
onMouseLeave: scheduleClose,
|
|
@@ -174,14 +174,14 @@ function ConnectivityIndicator() {
|
|
|
174
174
|
Badge,
|
|
175
175
|
{
|
|
176
176
|
size: "sm",
|
|
177
|
-
radius: 6,
|
|
178
177
|
styles: {
|
|
179
178
|
root: {
|
|
180
179
|
backgroundColor: alpha(statusCfg.token, 0.13),
|
|
181
180
|
color: statusCfg.token,
|
|
182
181
|
fontFamily: "var(--basalt-font-mono)",
|
|
183
182
|
fontWeight: 600,
|
|
184
|
-
fontSize: VX.text.xs
|
|
183
|
+
fontSize: VX.text.xs,
|
|
184
|
+
borderRadius: "var(--vx-radius-ctrl)"
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
children: statusCfg.label
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.card {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
|
-
gap:
|
|
10
|
+
gap: var(--vx-space-stack-sm);
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
color: inherit;
|
|
13
13
|
}
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.clickable:focus-visible {
|
|
53
|
+
/* Focus-ring width/offset — paired with (and sized off) the outline's own 2px stroke, not a
|
|
54
|
+
* spacing gap; out of scope like a border-shorthand width. */
|
|
53
55
|
outline: 2px solid var(--vx-accent);
|
|
54
56
|
outline-offset: 2px;
|
|
55
57
|
}
|
|
@@ -83,12 +85,12 @@
|
|
|
83
85
|
.tags {
|
|
84
86
|
display: flex;
|
|
85
87
|
flex-wrap: wrap;
|
|
86
|
-
gap:
|
|
88
|
+
gap: var(--vx-space-article-card-tags-gap);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.tag {
|
|
90
|
-
padding:
|
|
91
|
-
border-radius:
|
|
92
|
+
padding: var(--vx-space-article-card-tag-inset-y) var(--vx-space-article-card-tag-inset-x);
|
|
93
|
+
border-radius: var(--vx-radius-fine);
|
|
92
94
|
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
93
95
|
color: var(--vx-muted);
|
|
94
96
|
font-size: var(--vx-text-micro);
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
* meta baseline regardless of how many lines each description clamps to. */
|
|
101
103
|
.meta {
|
|
102
104
|
margin-top: auto;
|
|
103
|
-
padding-top:
|
|
105
|
+
padding-top: var(--vx-space-article-card-meta-gap-top);
|
|
104
106
|
font-family: var(--basalt-font-mono);
|
|
105
107
|
font-size: var(--vx-text-micro);
|
|
106
108
|
letter-spacing: 0.06em;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
.root {
|
|
10
10
|
display: grid;
|
|
11
|
-
grid-template-columns: minmax(0, var(--vx-prose-measure))
|
|
11
|
+
grid-template-columns: minmax(0, var(--vx-prose-measure)) var(--vx-space-article-toc-rail-width);
|
|
12
12
|
justify-content: center;
|
|
13
|
-
column-gap:
|
|
13
|
+
column-gap: var(--vx-space-article-column-gap);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.root.noToc {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
grid-column: 1;
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
gap:
|
|
35
|
-
padding-bottom:
|
|
36
|
-
margin-bottom:
|
|
34
|
+
gap: var(--vx-space-article-header-gap);
|
|
35
|
+
padding-bottom: var(--vx-space-article-header-padding-bottom);
|
|
36
|
+
margin-bottom: var(--vx-space-article-header-margin-bottom);
|
|
37
37
|
border-bottom: 1px solid var(--vx-divider);
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
.metaRow {
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
|
-
gap:
|
|
59
|
+
gap: var(--vx-space-article-meta-row-gap);
|
|
60
60
|
font-family: var(--basalt-font-mono);
|
|
61
61
|
font-size: var(--vx-text-micro);
|
|
62
62
|
letter-spacing: 0.06em;
|
|
@@ -72,7 +72,11 @@
|
|
|
72
72
|
.tocRail {
|
|
73
73
|
grid-column: 2;
|
|
74
74
|
position: sticky;
|
|
75
|
-
|
|
75
|
+
/* DESKTOP-only value on purpose (no `< sm` override needed): the rail is already `display: none`
|
|
76
|
+
* below the 1200px `@media` breakpoint just above, well above the `sm` (48em/768px) breakpoint
|
|
77
|
+
* that switches BasaltShell's header — and, by extension, this clearance — to its mobile value
|
|
78
|
+
* (see `content/prose.module.css` for the responsive split; docs/CONTENT-SPEC.md §5). */
|
|
79
|
+
top: var(--vx-space-sticky-header-clearance);
|
|
76
80
|
align-self: start;
|
|
77
81
|
}
|
|
78
82
|
|
|
@@ -80,9 +84,9 @@
|
|
|
80
84
|
grid-column: 1;
|
|
81
85
|
display: grid;
|
|
82
86
|
grid-template-columns: 1fr 1fr;
|
|
83
|
-
gap:
|
|
84
|
-
margin-top:
|
|
85
|
-
padding-top:
|
|
87
|
+
gap: var(--vx-space-article-footer-gap);
|
|
88
|
+
margin-top: var(--vx-space-article-footer-margin-top);
|
|
89
|
+
padding-top: var(--vx-space-article-footer-padding-top);
|
|
86
90
|
border-top: 1px solid var(--vx-divider);
|
|
87
91
|
}
|
|
88
92
|
|
|
@@ -96,7 +100,7 @@
|
|
|
96
100
|
.navCell {
|
|
97
101
|
display: flex;
|
|
98
102
|
flex-direction: column;
|
|
99
|
-
gap:
|
|
103
|
+
gap: var(--vx-space-stack-xs);
|
|
100
104
|
text-decoration: none;
|
|
101
105
|
color: inherit;
|
|
102
106
|
}
|
|
@@ -117,7 +121,7 @@
|
|
|
117
121
|
.navTarget {
|
|
118
122
|
display: flex;
|
|
119
123
|
align-items: center;
|
|
120
|
-
gap:
|
|
124
|
+
gap: var(--vx-space-article-nav-target-gap);
|
|
121
125
|
font-family: var(--basalt-font-head);
|
|
122
126
|
font-stretch: 88%;
|
|
123
127
|
font-weight: 550;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.root {
|
|
8
8
|
border-radius: var(--vx-radius-card);
|
|
9
|
-
padding:
|
|
9
|
+
padding: var(--vx-space-callout-inset-y) var(--vx-space-callout-inset-x);
|
|
10
10
|
border-left: 2px solid var(--callout-ink);
|
|
11
11
|
background: color-mix(in srgb, var(--callout-ink) 8%, transparent);
|
|
12
12
|
}
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
.titleRow {
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
|
-
gap:
|
|
42
|
-
margin-bottom:
|
|
41
|
+
gap: var(--vx-space-callout-title-row-gap);
|
|
42
|
+
margin-bottom: var(--vx-space-stack-xs);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.icon {
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.body p {
|
|
76
|
-
margin: 0 0
|
|
76
|
+
margin: 0 0 var(--vx-space-stack-sm);
|
|
77
77
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.container {
|
|
8
8
|
position: relative;
|
|
9
|
-
border-radius:
|
|
9
|
+
border-radius: var(--vx-radius-floating);
|
|
10
10
|
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
|
-
gap:
|
|
19
|
-
padding:
|
|
18
|
+
gap: var(--vx-space-code-block-header-gap);
|
|
19
|
+
padding: var(--vx-space-code-block-header-inset-y) var(--vx-space-code-block-header-inset-right)
|
|
20
|
+
var(--vx-space-code-block-header-inset-y) var(--vx-space-code-block-content-inset-x);
|
|
20
21
|
border-bottom: 1px solid var(--vx-divider);
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
.headerRight {
|
|
33
34
|
display: flex;
|
|
34
35
|
align-items: center;
|
|
35
|
-
gap:
|
|
36
|
+
gap: var(--vx-space-code-block-header-right-gap);
|
|
36
37
|
flex-shrink: 0;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
font-family: var(--basalt-font-mono);
|
|
52
53
|
font-size: var(--vx-text-sm);
|
|
53
54
|
line-height: 1.6;
|
|
54
|
-
padding:
|
|
55
|
+
padding: var(--vx-space-code-block-body-inset-y) var(--vx-space-code-block-content-inset-x);
|
|
55
56
|
overflow-x: auto;
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -74,8 +75,8 @@ html[data-mantine-color-scheme='light'] .body :global(.shiki span) {
|
|
|
74
75
|
/* Floating copy button — shown only when there is no header (no title), revealed on hover/focus. */
|
|
75
76
|
.floatingCopy {
|
|
76
77
|
position: absolute;
|
|
77
|
-
top:
|
|
78
|
-
right:
|
|
78
|
+
top: var(--vx-space-code-block-floating-copy-offset);
|
|
79
|
+
right: var(--vx-space-code-block-floating-copy-offset);
|
|
79
80
|
opacity: 0;
|
|
80
81
|
transition: opacity 120ms ease;
|
|
81
82
|
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.body {
|
|
16
|
-
padding-bottom:
|
|
16
|
+
padding-bottom: var(--vx-space-guide-body-gap-bottom);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.footer {
|
|
20
|
-
margin-top:
|
|
21
|
-
padding-top:
|
|
20
|
+
margin-top: var(--vx-space-guide-footer-gap-top);
|
|
21
|
+
padding-top: var(--vx-space-guide-footer-inset-top);
|
|
22
22
|
border-top: 1px solid var(--vx-divider);
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
.container {
|
|
9
9
|
display: flex;
|
|
10
10
|
justify-content: center;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: var(--vx-radius-floating);
|
|
12
12
|
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
13
|
-
padding:
|
|
13
|
+
padding: var(--vx-space-mermaid-container-inset);
|
|
14
14
|
overflow-x: auto;
|
|
15
15
|
}
|
|
16
16
|
|