basalt-ui 1.1.1 → 1.2.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 +30 -0
- package/README.md +47 -5
- package/agent/rules/basalt-app.md +126 -0
- package/agent/rules/basalt-content.md +3 -1
- 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 +15 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +29 -7
- 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 +250 -37
- 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 +1 -1
- package/dist/surfaces.d.ts +15 -11
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +4 -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 +71 -7
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +284 -46
- 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/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 +5 -4
- package/package.json +24 -9
- 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 +55 -5
- 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 +416 -5
- package/src/guard/index.ts +367 -45
- 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 +1 -1
- package/src/surfaces.ts +17 -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 +395 -45
- 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
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
|
*/
|
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;AAG9F,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,mBA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
CHANGED
|
@@ -39,7 +39,7 @@ function readBasaltConfig(cwd) {
|
|
|
39
39
|
return {};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function walkSourceFiles(dir, out = []) {
|
|
43
43
|
let entries;
|
|
44
44
|
try {
|
|
45
45
|
entries = readdirSync(dir);
|
|
@@ -55,8 +55,8 @@ function walkTsFiles(dir, out = []) {
|
|
|
55
55
|
} catch {
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
|
-
if (isDir)
|
|
59
|
-
else if (/\.tsx
|
|
58
|
+
if (isDir) walkSourceFiles(abs, out);
|
|
59
|
+
else if (/\.(?:tsx?|css)$/.test(name)) out.push(abs);
|
|
60
60
|
}
|
|
61
61
|
return out;
|
|
62
62
|
}
|
|
@@ -76,7 +76,8 @@ const GUARD_KIND_EXPLANATIONS = {
|
|
|
76
76
|
"raw-motion-value": "raw-motion-value: hardcoded duration/spring/ease in `transition={{...}}` \u2014 use MOTION_DURATION / MOTION_SPRING / MOTION_EASE_STANDARD instead.",
|
|
77
77
|
"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
78
|
"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."
|
|
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
|
+
"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
81
|
};
|
|
81
82
|
function checkTheme(cwd = process.cwd()) {
|
|
82
83
|
const cfg = readBasaltConfig(cwd);
|
|
@@ -98,12 +99,13 @@ function checkTheme(cwd = process.cwd()) {
|
|
|
98
99
|
chartMissingAriaLabel: cfg.chartMissingAriaLabel ?? DEFAULT_GUARD_CONFIG.chartMissingAriaLabel,
|
|
99
100
|
rawFormControl: cfg.rawFormControl ?? DEFAULT_GUARD_CONFIG.rawFormControl,
|
|
100
101
|
sub16InputFont: cfg.sub16InputFont ?? DEFAULT_GUARD_CONFIG.sub16InputFont,
|
|
101
|
-
allowComment: "theme-allow"
|
|
102
|
+
allowComment: "theme-allow",
|
|
103
|
+
exemptRules: cfg.exemptRules ?? DEFAULT_GUARD_CONFIG.exemptRules
|
|
102
104
|
};
|
|
103
105
|
const findings = [];
|
|
104
106
|
let scannedCount = 0;
|
|
105
107
|
for (const root of roots) {
|
|
106
|
-
for (const f of
|
|
108
|
+
for (const f of walkSourceFiles(resolve(cwd, root))) {
|
|
107
109
|
const rel = relative(cwd, f).replace(/\\/g, "/");
|
|
108
110
|
if (SKIP.test(rel) || exempt.has(rel)) continue;
|
|
109
111
|
scannedCount += 1;
|
|
@@ -710,6 +712,25 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
710
712
|
pass(`CLI version (${cliVersion}) matches the installed basalt-ui in node_modules`);
|
|
711
713
|
}
|
|
712
714
|
}
|
|
715
|
+
const publicDir = resolve(cwd, "public");
|
|
716
|
+
if (existsSync(publicDir)) {
|
|
717
|
+
const iconFiles = [
|
|
718
|
+
"favicon.ico",
|
|
719
|
+
"favicon.svg",
|
|
720
|
+
"favicon-96x96.png",
|
|
721
|
+
"apple-touch-icon.png",
|
|
722
|
+
"web-app-manifest-192x192.png",
|
|
723
|
+
"web-app-manifest-512x512.png"
|
|
724
|
+
];
|
|
725
|
+
const missingIcons = iconFiles.filter((f) => !existsSync(resolve(publicDir, f)));
|
|
726
|
+
if (missingIcons.length > 0) {
|
|
727
|
+
warn(
|
|
728
|
+
`public/ is missing basaltAppPlugin icon file(s): ${missingIcons.join(", ")} \u2014 generate them (e.g. via realfavicongenerator.net) and place them at the public/ root.`
|
|
729
|
+
);
|
|
730
|
+
} else {
|
|
731
|
+
pass("public/ has all of basaltAppPlugin's default icon files");
|
|
732
|
+
}
|
|
733
|
+
}
|
|
713
734
|
lines.push("");
|
|
714
735
|
if (result.hardFailures === 0 && result.warnings === 0) {
|
|
715
736
|
lines.push("All checks passed.");
|
|
@@ -835,7 +856,8 @@ async function guardHook(cwd = process.cwd()) {
|
|
|
835
856
|
chartMissingAriaLabel: cfg.chartMissingAriaLabel ?? DEFAULT_GUARD_CONFIG.chartMissingAriaLabel,
|
|
836
857
|
rawFormControl: cfg.rawFormControl ?? DEFAULT_GUARD_CONFIG.rawFormControl,
|
|
837
858
|
sub16InputFont: cfg.sub16InputFont ?? DEFAULT_GUARD_CONFIG.sub16InputFont,
|
|
838
|
-
allowComment: "theme-allow"
|
|
859
|
+
allowComment: "theme-allow",
|
|
860
|
+
exemptRules: cfg.exemptRules ?? DEFAULT_GUARD_CONFIG.exemptRules
|
|
839
861
|
};
|
|
840
862
|
const roots = cfg.roots ?? DEFAULT_ROOTS;
|
|
841
863
|
const exempt = new Set(cfg.exempt ?? defaultExempt(cfg));
|
|
@@ -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
|
|
|
@@ -32,11 +32,37 @@
|
|
|
32
32
|
margin-bottom: 0;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/* Fixed-header clearance so an anchor-jumped/TOC-navigated heading isn't hidden under a sticky
|
|
35
|
+
/* Fixed-header clearance so an anchor-jumped/TOC-navigated heading isn't hidden under a sticky
|
|
36
|
+
* header. RESPONSIVE (docs/CONTENT-SPEC.md §5): BasaltShell's AppShell header itself switches
|
|
37
|
+
* height at the `sm` breakpoint (`shell/index.tsx`'s `header={{ height: { base, sm } }}`), so the
|
|
38
|
+
* clearance must too — the default below is the DESKTOP value (`>= sm`, the common path); the
|
|
39
|
+
* `max-width: 47.99375em` override below swaps in the MOBILE value. `47.99375em` is Mantine's own
|
|
40
|
+
* complement of a `min-width: 48em` breakpoint (`em(px - 0.1)` — verified against the installed
|
|
41
|
+
* `@mantine/core`'s `MantineClasses.mjs`, the same formula behind `visibleFrom`/`hiddenFrom`), NOT
|
|
42
|
+
* an independently hand-picked value — a plain `47.99em` leaves a viewport band (`47.99em` to just
|
|
43
|
+
* under `48em`) matched by NEITHER this rule nor AppShell's own `(min-width: 48em)` override.
|
|
44
|
+
* `48em` is a STATIC assumption, not a value this CSS module can read live: it is Mantine's default
|
|
45
|
+
* `theme.breakpoints.sm` (unmodified by `baseTheme`, `theme/index.ts`), and `shell/index.tsx` reads
|
|
46
|
+
* that theme value directly for its own `min-width` media query — but a media query condition
|
|
47
|
+
* cannot resolve a CSS custom property (`@media (min-width: var(--x))` is not valid CSS), so this
|
|
48
|
+
* static module has no way to follow a consumer's `createBasaltTheme(overrides)` that overrides
|
|
49
|
+
* `breakpoints.sm`. A consumer doing so desyncs this file's breakpoint from AppShell's actual
|
|
50
|
+
* header-switch point — the failure mode is a heading that scrolls to a clearance tuned for the
|
|
51
|
+
* WRONG header on the mismatched viewport band, not a total breakage. Both values also assume
|
|
52
|
+
* BasaltShell's own AppShell header heights — a `./content` consumer rendering Prose standalone (no
|
|
53
|
+
* BasaltShell) overrides `--vx-space-sticky-header-clearance`/`-mobile` itself. */
|
|
36
54
|
.root h2,
|
|
37
55
|
.root h3,
|
|
38
56
|
.root h4 {
|
|
39
|
-
scroll-margin-top:
|
|
57
|
+
scroll-margin-top: var(--vx-space-sticky-header-clearance);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 47.99375em) {
|
|
61
|
+
.root h2,
|
|
62
|
+
.root h3,
|
|
63
|
+
.root h4 {
|
|
64
|
+
scroll-margin-top: var(--vx-space-sticky-header-clearance-mobile);
|
|
65
|
+
}
|
|
40
66
|
}
|
|
41
67
|
|
|
42
68
|
/* Headings share family/weight/color across densities; size + margin differ below. */
|
|
@@ -56,7 +82,8 @@
|
|
|
56
82
|
* conventional voice for a quotation and separates it from body copy without spending weight or
|
|
57
83
|
* another color on it. */
|
|
58
84
|
.root blockquote {
|
|
59
|
-
padding:
|
|
85
|
+
padding: var(--vx-space-prose-quote-inset-y) 0 var(--vx-space-prose-quote-inset-y)
|
|
86
|
+
var(--vx-space-prose-quote-indent);
|
|
60
87
|
border-left: 2px solid var(--vx-divider);
|
|
61
88
|
color: var(--vx-muted);
|
|
62
89
|
font-style: italic;
|
|
@@ -85,8 +112,8 @@
|
|
|
85
112
|
font-family: var(--basalt-font-mono);
|
|
86
113
|
font-size: 0.85em;
|
|
87
114
|
background-color: color-mix(in srgb, var(--vx-ink) 7%, transparent);
|
|
88
|
-
padding:
|
|
89
|
-
border-radius:
|
|
115
|
+
padding: var(--vx-space-prose-inline-code-inset-y) var(--vx-space-prose-inline-code-inset-x);
|
|
116
|
+
border-radius: var(--vx-radius-fine);
|
|
90
117
|
color: var(--vx-ink2);
|
|
91
118
|
}
|
|
92
119
|
|
|
@@ -96,8 +123,8 @@
|
|
|
96
123
|
font-size: var(--vx-text-sm);
|
|
97
124
|
line-height: 1.5;
|
|
98
125
|
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
99
|
-
border-radius:
|
|
100
|
-
padding:
|
|
126
|
+
border-radius: var(--vx-radius-floating);
|
|
127
|
+
padding: var(--vx-space-prose-code-block-inset-y) var(--vx-space-prose-code-block-inset-x);
|
|
101
128
|
overflow-x: auto;
|
|
102
129
|
}
|
|
103
130
|
|
|
@@ -140,7 +167,7 @@
|
|
|
140
167
|
.root h6 .headingAnchor {
|
|
141
168
|
display: inline-flex;
|
|
142
169
|
vertical-align: middle;
|
|
143
|
-
margin-left:
|
|
170
|
+
margin-left: var(--vx-space-prose-heading-anchor-gap);
|
|
144
171
|
opacity: 0;
|
|
145
172
|
transition: opacity 120ms ease;
|
|
146
173
|
}
|
|
@@ -177,7 +204,7 @@
|
|
|
177
204
|
.root th,
|
|
178
205
|
.root td {
|
|
179
206
|
border: 1px solid var(--vx-surface-border);
|
|
180
|
-
padding:
|
|
207
|
+
padding: var(--vx-space-prose-table-cell-inset-y) var(--vx-space-prose-table-cell-inset-x);
|
|
181
208
|
text-align: left;
|
|
182
209
|
}
|
|
183
210
|
|
|
@@ -208,22 +235,22 @@
|
|
|
208
235
|
}
|
|
209
236
|
|
|
210
237
|
.root.chat p {
|
|
211
|
-
margin: 0 0
|
|
238
|
+
margin: 0 0 var(--vx-space-stack-sm);
|
|
212
239
|
}
|
|
213
240
|
|
|
214
241
|
.root.chat ul,
|
|
215
242
|
.root.chat ol {
|
|
216
|
-
margin:
|
|
217
|
-
padding-left:
|
|
243
|
+
margin: var(--vx-space-stack-xs) 0 var(--vx-space-prose-chat-list-gap-bottom);
|
|
244
|
+
padding-left: var(--vx-space-prose-chat-list-indent);
|
|
218
245
|
}
|
|
219
246
|
|
|
220
247
|
.root.chat li {
|
|
221
|
-
margin:
|
|
248
|
+
margin: var(--vx-space-prose-chat-list-item-gap) 0;
|
|
222
249
|
}
|
|
223
250
|
|
|
224
251
|
.root.chat li > ul,
|
|
225
252
|
.root.chat li > ol {
|
|
226
|
-
margin:
|
|
253
|
+
margin: var(--vx-space-prose-chat-nested-list-gap) 0;
|
|
227
254
|
}
|
|
228
255
|
|
|
229
256
|
.root.chat h1,
|
|
@@ -232,7 +259,7 @@
|
|
|
232
259
|
.root.chat h4,
|
|
233
260
|
.root.chat h5,
|
|
234
261
|
.root.chat h6 {
|
|
235
|
-
margin:
|
|
262
|
+
margin: var(--vx-space-prose-chat-heading-gap-top) 0 var(--vx-space-prose-chat-heading-gap-bottom);
|
|
236
263
|
}
|
|
237
264
|
|
|
238
265
|
.root.chat h1 {
|
|
@@ -255,11 +282,11 @@
|
|
|
255
282
|
.root.chat pre,
|
|
256
283
|
.root.chat table,
|
|
257
284
|
.root.chat > div {
|
|
258
|
-
margin:
|
|
285
|
+
margin: var(--vx-space-stack-sm) 0;
|
|
259
286
|
}
|
|
260
287
|
|
|
261
288
|
.root.chat hr {
|
|
262
|
-
margin:
|
|
289
|
+
margin: var(--vx-space-stack-md) 0;
|
|
263
290
|
}
|
|
264
291
|
|
|
265
292
|
/* ── Article density — the long-form reading density (default) ────────────────────────────────── */
|
|
@@ -270,46 +297,49 @@
|
|
|
270
297
|
}
|
|
271
298
|
|
|
272
299
|
.root.article p {
|
|
273
|
-
margin: 0 0
|
|
300
|
+
margin: 0 0 var(--vx-space-prose-article-paragraph-gap);
|
|
274
301
|
}
|
|
275
302
|
|
|
276
303
|
.root.article ul,
|
|
277
304
|
.root.article ol {
|
|
278
|
-
margin:
|
|
279
|
-
padding-left:
|
|
305
|
+
margin: var(--vx-space-prose-article-list-gap-top) 0 var(--vx-space-prose-article-list-gap-bottom);
|
|
306
|
+
padding-left: var(--vx-space-prose-article-list-indent);
|
|
280
307
|
}
|
|
281
308
|
|
|
282
309
|
.root.article li {
|
|
283
|
-
margin:
|
|
310
|
+
margin: var(--vx-space-stack-xs) 0;
|
|
284
311
|
}
|
|
285
312
|
|
|
286
313
|
.root.article li > ul,
|
|
287
314
|
.root.article li > ol {
|
|
288
|
-
margin:
|
|
315
|
+
margin: var(--vx-space-stack-xs) 0;
|
|
289
316
|
}
|
|
290
317
|
|
|
291
318
|
.root.article h1 {
|
|
292
319
|
font-size: var(--vx-text-h1);
|
|
293
|
-
margin:
|
|
320
|
+
margin: var(--vx-space-prose-article-h1-gap-top) 0 var(--vx-space-prose-article-h1-gap-bottom);
|
|
294
321
|
}
|
|
295
322
|
|
|
296
323
|
.root.article h2 {
|
|
297
324
|
font-size: var(--vx-text-h2);
|
|
298
|
-
margin:
|
|
325
|
+
margin: var(--vx-space-prose-article-heading-gap-top) 0
|
|
326
|
+
var(--vx-space-prose-article-heading-gap-bottom);
|
|
299
327
|
border-bottom: 1px solid var(--vx-divider);
|
|
300
|
-
padding-bottom:
|
|
328
|
+
padding-bottom: var(--vx-space-prose-article-h2-rule-gap);
|
|
301
329
|
}
|
|
302
330
|
|
|
303
331
|
.root.article h3 {
|
|
304
332
|
font-size: var(--vx-text-xl);
|
|
305
|
-
margin:
|
|
333
|
+
margin: var(--vx-space-prose-article-heading-gap-top) 0
|
|
334
|
+
var(--vx-space-prose-article-heading-gap-bottom);
|
|
306
335
|
}
|
|
307
336
|
|
|
308
337
|
.root.article h4,
|
|
309
338
|
.root.article h5,
|
|
310
339
|
.root.article h6 {
|
|
311
340
|
font-size: var(--vx-text-lg);
|
|
312
|
-
margin:
|
|
341
|
+
margin: var(--vx-space-prose-article-heading-gap-top) 0
|
|
342
|
+
var(--vx-space-prose-article-heading-gap-bottom);
|
|
313
343
|
}
|
|
314
344
|
|
|
315
345
|
/* Block objects — code blocks, callouts, diagrams, tables, quotes — interrupt the paragraph flow
|
|
@@ -322,9 +352,9 @@
|
|
|
322
352
|
.root.article pre,
|
|
323
353
|
.root.article table,
|
|
324
354
|
.root.article > div {
|
|
325
|
-
margin:
|
|
355
|
+
margin: var(--vx-space-prose-article-block-gap) 0;
|
|
326
356
|
}
|
|
327
357
|
|
|
328
358
|
.root.article hr {
|
|
329
|
-
margin:
|
|
359
|
+
margin: var(--vx-space-stack-xl) 0;
|
|
330
360
|
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
.root {
|
|
8
8
|
position: fixed;
|
|
9
9
|
inset: 0 0 auto 0;
|
|
10
|
+
/* SPACE_FIXED.readingProgressHeight (tokens/palette.ts) — a hairline-like indicator height,
|
|
11
|
+
* density-exempt like a divider, so it stays a literal (not a --vx-space-* var). */
|
|
10
12
|
height: 2px;
|
|
11
13
|
background: transparent;
|
|
12
14
|
z-index: 100;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.root {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
gap:
|
|
9
|
+
gap: var(--vx-space-toc-root-gap);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.header {
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
font-size: var(--vx-text-sm);
|
|
32
32
|
color: var(--vx-muted);
|
|
33
33
|
text-decoration: none;
|
|
34
|
-
padding:
|
|
34
|
+
padding: var(--vx-space-toc-link-inset-y) 0 var(--vx-space-toc-link-inset-y)
|
|
35
|
+
var(--vx-space-toc-link-indent);
|
|
36
|
+
/* Cancels the 1px hairline `.list` border-left so this row's own (transparent) border-left below
|
|
37
|
+
* lands flush with it — tied to that border WIDTH, not a spacing value, so it stays a literal. */
|
|
35
38
|
margin-left: -1px;
|
|
36
39
|
border-left: 2px solid transparent;
|
|
37
40
|
transition: color 120ms ease;
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
.sub {
|
|
45
|
-
padding-left:
|
|
48
|
+
padding-left: var(--vx-space-toc-sub-indent);
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.active {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-badge.d.ts","sourceRoot":"","sources":["../../src/dashboard/delta-badge.tsx"],"names":[],"mappings":"AAkBA,MAAM,MAAM,eAAe,GAAG;IAC5B,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,2FAA2F;IAC3F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAClC,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;sGACkG;IAClG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAID,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,MAAsB,EACtB,SAAgB,EAChB,MAAM,GACP,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"delta-badge.d.ts","sourceRoot":"","sources":["../../src/dashboard/delta-badge.tsx"],"names":[],"mappings":"AAkBA,MAAM,MAAM,eAAe,GAAG;IAC5B,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,2FAA2F;IAC3F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAClC,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;sGACkG;IAClG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAID,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,MAAsB,EACtB,SAAgB,EAChB,MAAM,GACP,EAAE,eAAe,+BAsCjB"}
|