basalt-ui 2.15.0 → 2.16.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 +29 -0
- package/MIGRATING.md +74 -12
- package/agent/agents/basalt-design-reviewer.md +1 -1
- package/agent/rules/basalt-mantine.md +1 -1
- package/configs/card-inset.test.ts +57 -0
- package/configs/oxlint-basalt.json +1 -1
- package/configs/oxlint-plugin.js +42 -18
- package/configs/oxlint-plugin.test.ts +37 -6
- package/dist/agent/chat/thread-message.js +1 -1
- package/dist/agent/chat/thread-outcome-card.js +1 -1
- package/dist/charts/ChartCard.js +1 -1
- package/dist/charts/chart-card.module.css +2 -2
- package/dist/cli/shot/board.js +1 -1
- package/dist/cli/shot/measure.d.ts +21 -2
- package/dist/cli/shot/measure.d.ts.map +1 -1
- package/dist/cli/shot/measure.js +20 -5
- package/dist/cli/shot/types.d.ts +3 -2
- package/dist/cli/shot/types.d.ts.map +1 -1
- package/dist/dashboard/settings-section.d.ts.map +1 -1
- package/dist/dashboard/settings-section.js +5 -2
- package/dist/dashboard/stat-card.js +12 -12
- package/dist/dashboard/stat-card.module.css +4 -4
- package/dist/dashboard/widget-header.module.css +3 -3
- package/dist/guard/guard-hook.d.ts.map +1 -1
- package/dist/guard/index.d.ts +4 -2
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +18 -4
- package/dist/guard/vx-names.d.ts.map +1 -1
- package/dist/guard/vx-names.js +1 -0
- package/dist/shell/app-mobile-nav.module.css +2 -2
- package/dist/shell/app-sidebar-account.js +1 -1
- package/dist/shell/app-sidebar.js +2 -2
- package/dist/shell/app-sidebar.module.css +8 -8
- package/dist/shell/index.js +5 -1
- package/dist/shell/page-bar.js +1 -1
- package/dist/table/data-table.d.ts.map +1 -1
- package/dist/table/data-table.js +3 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +31 -21
- package/dist/tokens/core.d.ts +10 -4
- package/dist/tokens/core.d.ts.map +1 -1
- package/dist/tokens/core.js +16 -10
- package/dist/tokens/ctl-vars.d.ts +15 -0
- package/dist/tokens/ctl-vars.d.ts.map +1 -0
- package/dist/tokens/ctl-vars.js +22 -0
- package/dist/tokens/palette.d.ts +37 -29
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +32 -21
- package/dist/tokens/space-scale.d.ts +14 -0
- package/dist/tokens/space-scale.d.ts.map +1 -0
- package/dist/tokens/space-scale.js +10 -0
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/agent/chat/thread-message.tsx +1 -1
- package/src/agent/chat/thread-outcome-card.tsx +2 -2
- package/src/charts/ChartCard.tsx +1 -1
- package/src/charts/chart-card.module.css +2 -2
- package/src/cli/shot/board.ts +1 -1
- package/src/cli/shot/measure.ts +33 -6
- package/src/cli/shot/types.ts +3 -2
- package/src/dashboard/settings-section.tsx +5 -2
- package/src/dashboard/stat-card.module.css +4 -4
- package/src/dashboard/stat-card.tsx +13 -13
- package/src/dashboard/widget-header.module.css +3 -3
- package/src/guard/guard-hook.ts +3 -1
- package/src/guard/index.ts +27 -13
- package/src/guard/vx-names.ts +1 -0
- package/src/shell/app-mobile-nav.module.css +2 -2
- package/src/shell/app-sidebar-account.tsx +1 -1
- package/src/shell/app-sidebar.module.css +8 -8
- package/src/shell/app-sidebar.tsx +2 -2
- package/src/shell/index.tsx +10 -4
- package/src/shell/page-bar.tsx +1 -1
- package/src/table/data-table.tsx +10 -4
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +57 -45
- package/src/theme/ctl-theme.tsx +1 -1
- package/src/theme/index.ts +43 -23
- package/src/tokens/core.ts +16 -8
- package/src/tokens/ctl-vars.ts +32 -0
- package/src/tokens/palette.ts +40 -29
- package/src/tokens/space-scale.ts +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/shot/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAA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E,SAAS,CAAA;CACrB,CAAA;AAEH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,UAAU,GACX,EAAE,gBAAgB,+BAelB;AAED,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAA;AAElD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,UAAU,GACX,EAAE,eAAe,+BAwBjB"}
|
|
@@ -28,7 +28,10 @@ function SettingsSection({
|
|
|
28
28
|
Card,
|
|
29
29
|
{
|
|
30
30
|
className: cx(classNames?.root, className),
|
|
31
|
-
style: {
|
|
31
|
+
style: {
|
|
32
|
+
padding: "var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)",
|
|
33
|
+
...style
|
|
34
|
+
},
|
|
32
35
|
children: [
|
|
33
36
|
/* @__PURE__ */ jsx("div", { className: cx(classes.header, classNames?.header), children: /* @__PURE__ */ jsx(
|
|
34
37
|
WidgetHeader,
|
|
@@ -86,7 +89,7 @@ function DangerZone({
|
|
|
86
89
|
{
|
|
87
90
|
className: cx(classNames?.root, className),
|
|
88
91
|
style: {
|
|
89
|
-
padding: "var(--
|
|
92
|
+
padding: "var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)",
|
|
90
93
|
boxShadow: `${VX.shadowCard}, 0 0 0 1px ${alpha(VX.status.bad, 0.25)}`,
|
|
91
94
|
...style
|
|
92
95
|
},
|
|
@@ -119,24 +119,24 @@ function StatCard({
|
|
|
119
119
|
{
|
|
120
120
|
className: cx(classNames?.root, className),
|
|
121
121
|
style: {
|
|
122
|
-
// Card inset = the `cardInsetY`/`cardInsetX` role tokens (
|
|
123
|
-
//
|
|
124
|
-
//
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
// the full-bleed sparkline to the card's rounded corners
|
|
129
|
-
// renders outside its border box and is NOT clipped by its own
|
|
130
|
-
// shadow-card ring is unaffected (verified — only an ANCESTOR's overflow
|
|
131
|
-
// descendant's shadow). Mantine's Card root already sets `overflow: hidden`; this
|
|
132
|
-
// explicit for intent.
|
|
122
|
+
// Card inset = the `cardInsetY`/`cardInsetX` role tokens (12/16 at level 0, the `sm`/`md`
|
|
123
|
+
// rungs of the spacing grid), matching every other basalt card because `ChartCard` reads
|
|
124
|
+
// the SAME two vars. Below `sm` the horizontal one steps a rung down (to 12) on its own:
|
|
125
|
+
// the responsive half of the ladder lives in `spaceMobileDecls` (`tokens/index.ts`), which
|
|
126
|
+
// is the only home that can reach an inline style like this one.
|
|
127
|
+
//
|
|
128
|
+
// `overflow: hidden` clips the full-bleed sparkline to the card's rounded corners. An
|
|
129
|
+
// element's own `box-shadow` renders outside its border box and is NOT clipped by its own
|
|
130
|
+
// `overflow`, so the shadow-card ring is unaffected (verified — only an ANCESTOR's overflow
|
|
131
|
+
// clips a descendant's shadow). Mantine's Card root already sets `overflow: hidden`; this
|
|
132
|
+
// is explicit for intent.
|
|
133
133
|
//
|
|
134
134
|
// NO `minHeight`. It was 118px, which is ~25px of dead space under a card holding a title
|
|
135
135
|
// row, a hero row and a 26px trend — and it was dead space the card could not use, since the
|
|
136
136
|
// body is `height: 100%` and the sparkline is `margin-top: auto`. The content is what states
|
|
137
137
|
// the height now (~88-96px), and four cards in a `SimpleGrid` still match because a grid row
|
|
138
138
|
// stretches its items.
|
|
139
|
-
padding: "var(--vx-space-card-inset-y, 0.
|
|
139
|
+
padding: "var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)",
|
|
140
140
|
overflow: "hidden",
|
|
141
141
|
// Anchors the tone rail. Set unconditionally so a card's stacking context does not change
|
|
142
142
|
// depending on whether it happens to have crossed a threshold this render.
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
|
|
124
124
|
.sparklineBleed {
|
|
125
125
|
margin-top: auto;
|
|
126
|
-
margin-inline: calc(-1 * var(--
|
|
127
|
-
margin-bottom: calc(-1 * var(--
|
|
126
|
+
margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
|
|
127
|
+
margin-bottom: calc(-1 * var(--vx-space-card-inset-y, 0.75rem));
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/* Asks for `StatCard`'s `SPARKLINE_RIGHT_WIDTH`/`_HEIGHT` (handed down as custom properties, so this
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
flex: none;
|
|
160
160
|
align-self: stretch;
|
|
161
161
|
margin-top: auto;
|
|
162
|
-
margin-inline: calc(-1 * var(--
|
|
163
|
-
margin-bottom: calc(-1 * var(--
|
|
162
|
+
margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
|
|
163
|
+
margin-bottom: calc(-1 * var(--vx-space-card-inset-y, 0.75rem));
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
/*
|
|
104
104
|
* The icon slot PINS its glyph's box. A consumer's icon arrives at whatever size its own component
|
|
105
|
-
* chose (the playground's is 18px), and an 18px mark beside a
|
|
105
|
+
* chose (the playground's is 18px), and an 18px mark beside a 13px title is a bullet, not a label
|
|
106
106
|
* icon — so the tier states the size here rather than asking every call site to pass one.
|
|
107
107
|
*/
|
|
108
108
|
/*
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
overflow-wrap: anywhere;
|
|
175
175
|
font-family: var(--basalt-font-mono);
|
|
176
176
|
font-size: var(--vx-text-kpi);
|
|
177
|
-
font-weight:
|
|
177
|
+
font-weight: 500;
|
|
178
178
|
letter-spacing: -0.02em;
|
|
179
179
|
color: var(--vx-ink);
|
|
180
180
|
}
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
z-index: 10;
|
|
289
289
|
width: max-content;
|
|
290
290
|
max-width: 260px;
|
|
291
|
-
padding:
|
|
291
|
+
padding: var(--vx-space-stack-sm) var(--vx-space-row-inset-x);
|
|
292
292
|
border-radius: var(--vx-radius-card);
|
|
293
293
|
background-color: var(--vx-surface-panel);
|
|
294
294
|
box-shadow: var(--vx-shadow-card);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard-hook.d.ts","sourceRoot":"","sources":["../../src/guard/guard-hook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"guard-hook.d.ts","sourceRoot":"","sources":["../../src/guard/guard-hook.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAmDrE;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,EAAE,OAAO,GAAG,MAAM,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,qCAAqC;AACrC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;CACzC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,WAAW,EAChB,IAAI,CAAC,EAAE,wBAAwB,GAC9B,eAAe,CA0BjB"}
|
package/dist/guard/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ./guard — headless policy core. Mantine-free
|
|
2
|
+
* ./guard — headless policy core. Mantine-free and light: it may import dependency-free leaves
|
|
3
|
+
* (`tokens/space-scale`, `common/*`), never `tokens/palette` or `derive` (colour math on every
|
|
4
|
+
* Write/Edit).
|
|
3
5
|
*
|
|
4
6
|
* GUARD_RULES: the closed registry of all 26 violation kinds.
|
|
5
7
|
* checkSource: pure (text, relPath, cfg) → Finding[]. No FS, no walk, no console.
|
|
@@ -212,7 +214,7 @@ export declare const GUARD_RULES: {
|
|
|
212
214
|
readonly pattern: RegExp;
|
|
213
215
|
readonly enabled: (cfg: GuardConfig) => boolean;
|
|
214
216
|
readonly appliesTo: (relPath: string) => boolean;
|
|
215
|
-
readonly message: "withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py=\"
|
|
217
|
+
readonly message: "withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py=\"sm\" px=\"md\".";
|
|
216
218
|
};
|
|
217
219
|
readonly 'off-system-surface-var': {
|
|
218
220
|
readonly kind: "off-system-surface-var";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guard/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guard/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7E,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,CAAA;AAgU9D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,M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OAAO,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,WAAW,GACf,mBAAmB,EAAE,CA+BvB;AAED,kGAAkG;AAClG,eAAO,MAAM,uBAAuB,6BAA6B,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAM9F"}
|
package/dist/guard/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { vxFamilyOf } from "../common/vx-family.js";
|
|
|
2
2
|
import { BASALT_VX_FAMILIES } from "../common/vx-families.js";
|
|
3
3
|
import { FONTS_CSS_HINT } from "./fonts-hint.js";
|
|
4
4
|
import { BASALT_VX_NAMES } from "./vx-names.js";
|
|
5
|
+
import { SPACE_SCALE_LEVEL0 } from "../tokens/space-scale.js";
|
|
5
6
|
const HEX = /#(?!(?<=&#)\d+;)[0-9a-fA-F]{3,8}\b/g;
|
|
6
7
|
const FUNC = /\b(?:rgba?|hsla?)\((?!\s*\$\{)/g;
|
|
7
8
|
const LOCALSTORAGE_THEME = /localStorage\s*\.\s*getItem\s*\(\s*['"]theme['"]\s*\)/g;
|
|
@@ -124,7 +125,7 @@ const INLINE_SPACING = new RegExp(
|
|
|
124
125
|
`(?<![\\w-])(?:${SPACING_PROP})\\s*:\\s*(?!var\\()['"]?[-+]?(?!0(?![.\\d]))${SPACING_NUMBER}`,
|
|
125
126
|
"g"
|
|
126
127
|
);
|
|
127
|
-
const MICRO_SPACING_CEILING_PX =
|
|
128
|
+
const MICRO_SPACING_CEILING_PX = SPACE_SCALE_LEVEL0.xs - 1;
|
|
128
129
|
const STYLE_ATTRIBUTE_OPENER = /\b(?:style|styles|sx|css)\s*=\s*\{?\s*$/;
|
|
129
130
|
const OBJECT_DECLARATION = /\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*(?::([^=]*))?=\s*$/;
|
|
130
131
|
const STYLE_OBJECT_NAME = /(?:Style|Styles|Css)$|^(?:style|styles|css|sx)$/;
|
|
@@ -233,7 +234,9 @@ const BASALT_ANY_IMPORT = /\b(?:from|import)\s+['"]basalt-ui(?:\/[^'"]*)?['"]/;
|
|
|
233
234
|
const MANTINE_FORM_IMPORT = /from\s+['"]@mantine\/form['"]/;
|
|
234
235
|
const STYLES_INPUT_PART = /\bstyles\s*=\s*\{\{\s*input\s*:\s*\{([^}]*)\}/g;
|
|
235
236
|
const SUB_16_FONT_SIZE = /font-?[Ss]ize\s*:\s*['"]?(-?\d+(?:\.\d+)?)(?:px)?['"]?(?=[,\s}]|$)/g;
|
|
236
|
-
const DEFAULT_SPACING_STEPS =
|
|
237
|
+
const DEFAULT_SPACING_STEPS = Object.values(SPACE_SCALE_LEVEL0).toSorted(
|
|
238
|
+
(a, b) => a - b
|
|
239
|
+
);
|
|
237
240
|
const DEFAULT_FORBIDDEN_ACCENTS = ["teal", "violet", "grape", "indigo", "pink"];
|
|
238
241
|
const DEFAULT_GUARD_CONFIG = {
|
|
239
242
|
spacingSteps: DEFAULT_SPACING_STEPS,
|
|
@@ -253,7 +256,18 @@ const DEFAULT_GUARD_CONFIG = {
|
|
|
253
256
|
exemptRules: {},
|
|
254
257
|
severity: {}
|
|
255
258
|
};
|
|
256
|
-
const GRACE_PERIOD_KINDS = {
|
|
259
|
+
const GRACE_PERIOD_KINDS = {
|
|
260
|
+
"raw-spacing": {
|
|
261
|
+
since: "2.16.0",
|
|
262
|
+
promote: "2.17.0",
|
|
263
|
+
why: "The spacing scale moved to 8/12/16/20/24 in 2.16.0: a prop value equal to a NEW step (p={16}) is newly a finding."
|
|
264
|
+
},
|
|
265
|
+
"inline-spacing": {
|
|
266
|
+
since: "2.16.0",
|
|
267
|
+
promote: "2.17.0",
|
|
268
|
+
why: "The scale moved to 8/12/16/20/24 and the CSS micro ceiling dropped 10 \u2192 7 in 2.16.0: a literal 8px/10px in CSS is newly a finding."
|
|
269
|
+
}
|
|
270
|
+
};
|
|
257
271
|
function severityOf(kind, cfg) {
|
|
258
272
|
return cfg.severity?.[kind] ?? (Object.hasOwn(GRACE_PERIOD_KINDS, kind) ? "warn" : "error");
|
|
259
273
|
}
|
|
@@ -802,7 +816,7 @@ const GUARD_RULES = {
|
|
|
802
816
|
enabled: (cfg) => cfg.cardWithBorder,
|
|
803
817
|
// JSX-tag-shaped (`<Card withBorder>`) — never appears in CSS text.
|
|
804
818
|
appliesTo: (relPath) => !relPath.endsWith(".css"),
|
|
805
|
-
message: 'withBorder on a Card/Paper double-draws the edge \u2014 card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) \u2014 and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py="
|
|
819
|
+
message: 'withBorder on a Card/Paper double-draws the edge \u2014 card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) \u2014 and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py="sm" px="md".'
|
|
806
820
|
},
|
|
807
821
|
"off-system-surface-var": {
|
|
808
822
|
kind: "off-system-surface-var",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vx-names.d.ts","sourceRoot":"","sources":["../../src/guard/vx-names.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"vx-names.d.ts","sourceRoot":"","sources":["../../src/guard/vx-names.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EA8N5C,CAAA"}
|
package/dist/guard/vx-names.js
CHANGED
|
@@ -108,6 +108,7 @@ const BASALT_VX_NAMES = [
|
|
|
108
108
|
"--vx-space-control-gap",
|
|
109
109
|
"--vx-space-control-height",
|
|
110
110
|
"--vx-space-control-height-ctl",
|
|
111
|
+
"--vx-space-control-height-dense",
|
|
111
112
|
"--vx-space-control-height-tag",
|
|
112
113
|
"--vx-space-control-height-widget",
|
|
113
114
|
"--vx-space-guide-body-gap-bottom",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.menuItem :global(.mantine-Menu-itemLabel) {
|
|
161
|
-
font-size: var(--mantine-font-size-
|
|
161
|
+
font-size: var(--mantine-font-size-sm) !important;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/* An active destination reads the same in the More surface as it does in the sheet. */
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
* touch target with a `min-height` floor and symmetric inset, so growing one side of it would make
|
|
246
246
|
* that row read as a different size from its siblings. */
|
|
247
247
|
.menuDropdown .menuSectionStart {
|
|
248
|
-
margin-top:
|
|
248
|
+
margin-top: var(--vx-space-stack-sm);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
/*
|
|
@@ -75,7 +75,7 @@ function SidebarAccount(props) {
|
|
|
75
75
|
...style !== void 0 && { style },
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ jsx("span", { className: classes.footerIconSlot, children: /* @__PURE__ */ jsx(IconUser, {}) }),
|
|
78
|
-
/* @__PURE__ */ jsx(Text, { className: classes.accountText, fz: VX.text.
|
|
78
|
+
/* @__PURE__ */ jsx(Text, { className: classes.accountText, fz: VX.text.sm, children: "Sign in" })
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
@@ -282,7 +282,7 @@ function AppSidebar(props) {
|
|
|
282
282
|
"aria-current": settingsCurrent(entry),
|
|
283
283
|
children: [
|
|
284
284
|
/* @__PURE__ */ jsx("span", { className: classes.footerIconSlot, children: entry.icon ?? /* @__PURE__ */ jsx(IconGear, {}) }),
|
|
285
|
-
/* @__PURE__ */ jsx(Text, { className: classes.footerText, fz: VX.text.
|
|
285
|
+
/* @__PURE__ */ jsx(Text, { className: classes.footerText, fz: VX.text.sm, children: entry.label }),
|
|
286
286
|
index === 0 ? ringMark : null,
|
|
287
287
|
entry.active && entry.current !== "page" ? /* @__PURE__ */ jsx(IconCheck, {}) : null
|
|
288
288
|
]
|
|
@@ -293,7 +293,7 @@ function AppSidebar(props) {
|
|
|
293
293
|
] }) : /* @__PURE__ */ jsx(Group, { gap: "xs", wrap: "nowrap", children: /* @__PURE__ */ jsxs(Menu, { position: "right-start", withArrow: true, width: step.sidebarSettingsMenuWidth, zIndex: 500, children: [
|
|
294
294
|
/* @__PURE__ */ jsx(Menu.Target, { children: /* @__PURE__ */ jsxs(UnstyledButton, { className: classes.footerBtn, "aria-label": "Settings", children: [
|
|
295
295
|
/* @__PURE__ */ jsx(IconGear, {}),
|
|
296
|
-
/* @__PURE__ */ jsx(Text, { className: classes.footerText, fz: VX.text.
|
|
296
|
+
/* @__PURE__ */ jsx(Text, { className: classes.footerText, fz: VX.text.sm, children: "Settings" }),
|
|
297
297
|
ringMark
|
|
298
298
|
] }) }),
|
|
299
299
|
/* @__PURE__ */ jsxs(Menu.Dropdown, { children: [
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.link {
|
|
38
|
-
font-size: var(--vx-text-
|
|
38
|
+
font-size: var(--vx-text-sm);
|
|
39
39
|
border-radius: var(--vx-radius-ctrl) !important;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.link :global(.mantine-NavLink-label) {
|
|
43
|
-
font-size: var(--vx-text-
|
|
43
|
+
font-size: var(--vx-text-sm);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.link :global(.mantine-NavLink-section[data-position='left']) {
|
|
@@ -229,8 +229,8 @@
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/*
|
|
232
|
-
* Footer settings row — IDENTICAL geometry to a nav row (
|
|
233
|
-
*
|
|
232
|
+
* Footer settings row — IDENTICAL geometry to a nav row (the row inset tokens, control radius, nav
|
|
233
|
+
* icon gap, `sm` type): muted text + faint icon at rest, ink-6% tint + ink on hover, exactly like an inactive
|
|
234
234
|
* nav item, so the footer never reads as a separate control family.
|
|
235
235
|
*/
|
|
236
236
|
.footerBtn {
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
gap: var(--vx-space-nav-icon-gap);
|
|
242
242
|
padding: var(--vx-space-row-inset-y) var(--vx-space-row-inset-x);
|
|
243
243
|
border-radius: var(--vx-radius-ctrl);
|
|
244
|
-
font-size: var(--vx-text-
|
|
244
|
+
font-size: var(--vx-text-sm);
|
|
245
245
|
/* The nav row's line-height, so a footer row is exactly as tall as a nav row (Mantine's `Text`
|
|
246
246
|
* would otherwise bring its own 1.55 and add ~3px). */
|
|
247
247
|
line-height: var(--vx-space-row-line-height);
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
|
|
330
330
|
/* Identity name — weight 600, ink. */
|
|
331
331
|
.accountName {
|
|
332
|
-
font-size: var(--vx-text-
|
|
332
|
+
font-size: var(--vx-text-sm);
|
|
333
333
|
font-weight: 600;
|
|
334
334
|
color: var(--vx-ink);
|
|
335
335
|
}
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.childList :global(.mantine-NavLink-label) {
|
|
647
|
-
font-size: var(--vx-text-
|
|
647
|
+
font-size: var(--vx-text-xs);
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
/*
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
.subnavDropdown :global(.mantine-NavLink-label) {
|
|
692
|
-
font-size: var(--vx-text-
|
|
692
|
+
font-size: var(--vx-text-sm);
|
|
693
693
|
}
|
|
694
694
|
|
|
695
695
|
/*
|
package/dist/shell/index.js
CHANGED
|
@@ -84,7 +84,11 @@ function ShellBody({
|
|
|
84
84
|
style
|
|
85
85
|
}) {
|
|
86
86
|
const { step } = useBasaltSpacing();
|
|
87
|
-
const inset = {
|
|
87
|
+
const inset = {
|
|
88
|
+
base: step.appShellInsetMobile,
|
|
89
|
+
sm: step.appShellInset,
|
|
90
|
+
md: step.appShellInsetExpanded
|
|
91
|
+
};
|
|
88
92
|
const aside = useAsideRegion();
|
|
89
93
|
const sizeClass = useSizeClass();
|
|
90
94
|
const [storedCollapsed, setStoredCollapsed, collapseIsSet] = collapseStore(storageKey)();
|
package/dist/shell/page-bar.js
CHANGED
|
@@ -199,7 +199,7 @@ function PageBar({
|
|
|
199
199
|
const hasPills = filters !== void 0 || panel !== null || filtersEndActions.length > 0;
|
|
200
200
|
const row2 = hasRow2 ? /* @__PURE__ */ jsxs("div", { className: cx(classes.row2, classNames?.row2), "data-basalt-hit-scope": true, children: [
|
|
201
201
|
tabs !== void 0 && /* @__PURE__ */ jsx("div", { className: classes.tabs, "data-basalt-page-bar-line": "tabs", children: /* @__PURE__ */ jsx(CtlSlot, { children: tabs }) }),
|
|
202
|
-
hasPills && /* @__PURE__ */ jsxs("div", { className: classes.pills, "data-basalt-page-bar-line": "pills", children: [
|
|
202
|
+
hasPills && /* @__PURE__ */ jsxs("div", { className: classes.pills, "data-basalt-page-bar-line": "pills", "data-basalt-dense": true, children: [
|
|
203
203
|
filters !== void 0 && /* @__PURE__ */ jsx("div", { className: classes.filters, children: /* @__PURE__ */ jsx(CtlSlot, { children: filters }) }),
|
|
204
204
|
panel !== null && /* @__PURE__ */ jsx(
|
|
205
205
|
FilterPill,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/table/data-table.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAA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;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BAyrBhF"}
|
package/dist/table/data-table.js
CHANGED
|
@@ -251,6 +251,8 @@ const TABLE_TOOLBAR_STYLE = { flex: "0 1 auto", minWidth: 0 };
|
|
|
251
251
|
const SEARCH_WIDTH = 220;
|
|
252
252
|
const SEARCH_DEBOUNCE_MS = 250;
|
|
253
253
|
const TABLE_SEARCH_STYLE = {
|
|
254
|
+
// `width` as well as the basis — see the `SEARCH_WIDTH` JSDoc.
|
|
255
|
+
width: SEARCH_WIDTH,
|
|
254
256
|
flex: `0 1 ${SEARCH_WIDTH}px`,
|
|
255
257
|
minWidth: "12ch",
|
|
256
258
|
maxWidth: "100%"
|
|
@@ -806,6 +808,7 @@ function BasaltDataTable(props) {
|
|
|
806
808
|
Group,
|
|
807
809
|
{
|
|
808
810
|
className: cx(classNames?.toolbar),
|
|
811
|
+
"data-basalt-dense": true,
|
|
809
812
|
gap: "xs",
|
|
810
813
|
wrap: "wrap",
|
|
811
814
|
align: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EA0CV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAe,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EA0CV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAe,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,K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OAgBG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAYD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,EACrD,OAAO,CAAC,EAAE,wBAAwB,GACjC,oBAAoB,CAiCtB"}
|
package/dist/theme/index.js
CHANGED
|
@@ -14,7 +14,8 @@ import {
|
|
|
14
14
|
SPACE_FIXED
|
|
15
15
|
} from "../tokens/palette.js";
|
|
16
16
|
import { DEFAULT_DERIVE_CONFIG, isDefaultDeriveConfig, resolveDeriveConfig } from "../tokens/derive.js";
|
|
17
|
-
import { pxRem, VX } from "../tokens/core.js";
|
|
17
|
+
import { pxRem, TEXT_LINE, VX } from "../tokens/core.js";
|
|
18
|
+
import { CTL_HEIGHT_VARS } from "../tokens/ctl-vars.js";
|
|
18
19
|
import { SIZE_CLASS_BREAKPOINTS } from "../tokens/size-classes.js";
|
|
19
20
|
import controlsClasses from "./controls.module.css";
|
|
20
21
|
import floatingClasses from "./floating.module.css";
|
|
@@ -161,7 +162,7 @@ function buildTheme(data, options = {}) {
|
|
|
161
162
|
// buttons ≥28px sit at ~6px). `radius.md` = 0.375rem = 6px, mirrored by `--vx-radius-ctrl` — every
|
|
162
163
|
// control without its own explicit `radius` prop (Button, ActionIcon, TextInput, NumberInput,
|
|
163
164
|
// PasswordInput, Select, Textarea) falls back to this default. Card/Paper bypass this scale
|
|
164
|
-
// entirely — they resolve straight to `var(--vx-radius-card)` (
|
|
165
|
+
// entirely — they resolve straight to `var(--vx-radius-card)` (10px, see the
|
|
165
166
|
// `components.Card`/`Paper` overrides below).
|
|
166
167
|
defaultRadius: "md",
|
|
167
168
|
// Named weight ladder (v9 fontWeights).
|
|
@@ -179,6 +180,11 @@ function buildTheme(data, options = {}) {
|
|
|
179
180
|
lg: rem(VX.text.lg),
|
|
180
181
|
xl: rem(VX.text.xl)
|
|
181
182
|
},
|
|
183
|
+
// Dense rungs get grid-aligned line boxes (13/20, 12/16); md and up keep Mantine's ratios.
|
|
184
|
+
lineHeights: {
|
|
185
|
+
xs: lineRatio(TEXT_LINE.xs, VX.text.xs),
|
|
186
|
+
sm: lineRatio(TEXT_LINE.sm, VX.text.sm)
|
|
187
|
+
},
|
|
182
188
|
// Deliberate, OWNED spacing + radius scales — the single edit point, not inherited Mantine
|
|
183
189
|
// defaults. Denser than Mantine's stock lg/xl for a tighter, data-driven surface. 10 12 16 18 24.
|
|
184
190
|
// Reads `spacing.scale`, NOT `spacing.anchors` — a scale stop tracks density independently of
|
|
@@ -232,7 +238,7 @@ function buildTheme(data, options = {}) {
|
|
|
232
238
|
// resolves to the SAME three tokens:
|
|
233
239
|
// • background → `--vx-surface-panel` (the panel surface, NOT the page body).
|
|
234
240
|
// • depth → `--vx-shadow-card` (whisper shadow + ring, replaces `withBorder`).
|
|
235
|
-
// • radius → `--vx-radius-card` (
|
|
241
|
+
// • radius → `--vx-radius-card` (10px).
|
|
236
242
|
// This is the single source the user's "strict surface across components" demands; the
|
|
237
243
|
// `raw-surface` guard then stops consumers re-overriding any of it inline.
|
|
238
244
|
Card: ext({
|
|
@@ -322,19 +328,20 @@ function buildTheme(data, options = {}) {
|
|
|
322
328
|
// `--nl-padding` var), so the spec padding is forced inline here, where it wins
|
|
323
329
|
// deterministically on every render path.
|
|
324
330
|
padding: "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)",
|
|
325
|
-
// The
|
|
326
|
-
// root's inherited line-height (which, left at the default 1.55, alone
|
|
327
|
-
// ~37px). The
|
|
331
|
+
// The dense-row step (`sm`) on the ROOT, not just the label: the body element sizes
|
|
332
|
+
// itself from the root's inherited line-height (which, left at the default 1.55, alone
|
|
333
|
+
// pushed rows to ~37px). The row line-height (1.54, a 20px line at 13px) keeps rows
|
|
334
|
+
// compact as the scale grows. Reads
|
|
328
335
|
// `--vx-space-row-line-height` (density-tracking, ADDITIVE law — see `deriveSpacing`'s
|
|
329
336
|
// doc in `tokens/palette.ts` for why this one differs from the padding's multiplier).
|
|
330
|
-
fontSize: VX.text.
|
|
337
|
+
fontSize: VX.text.sm,
|
|
331
338
|
lineHeight: "var(--vx-space-row-line-height)",
|
|
332
339
|
// Nav rows sit in the 5-6px radius tier (docs/DESIGN-SPEC.md §4), not square.
|
|
333
340
|
borderRadius: "var(--vx-radius-ctrl)"
|
|
334
341
|
},
|
|
335
342
|
// Mantine pins the label at `font-size-sm` explicitly, so the root value alone
|
|
336
343
|
// doesn't reach it.
|
|
337
|
-
label: { fontSize: VX.text.
|
|
344
|
+
label: { fontSize: VX.text.sm, lineHeight: "var(--vx-space-row-line-height)" }
|
|
338
345
|
}
|
|
339
346
|
}),
|
|
340
347
|
// Field idiom (docs/DESIGN-SPEC.md §5): field surface + `shadow-raised` depth + faint placeholder,
|
|
@@ -488,12 +495,12 @@ function buildTheme(data, options = {}) {
|
|
|
488
495
|
//
|
|
489
496
|
// The track's padding is `SPACE_FIXED.segmentedTrackInset`, a plain literal — NOT a
|
|
490
497
|
// `--vx-space-*` var — because it is density-EXEMPT: it is load-bearing for the nested-corner
|
|
491
|
-
// law (`RADIUS.
|
|
492
|
-
// `tokens/palette.ts`), and `radius.
|
|
498
|
+
// law (`RADIUS.ctrl === RADIUS_STEP.fine + segmentedTrackInset`, see that constant's doc in
|
|
499
|
+
// `tokens/palette.ts`), and `radius.ctrl`/`RADIUS_STEP.fine` below already track the
|
|
493
500
|
// RADIUS knob together, so the inset between them must stay fixed at exactly 2 regardless of
|
|
494
501
|
// density.
|
|
495
502
|
SegmentedControl: ext({
|
|
496
|
-
defaultProps: { radius: radius.
|
|
503
|
+
defaultProps: { radius: radius.ctrl },
|
|
497
504
|
classNames: {
|
|
498
505
|
label: segmentedControlClasses.label,
|
|
499
506
|
control: segmentedControlClasses.control,
|
|
@@ -530,7 +537,7 @@ function buildTheme(data, options = {}) {
|
|
|
530
537
|
// ink-12% fill sat one shade from the track and read as a hover state.
|
|
531
538
|
boxShadow: "var(--vx-shadow-raised)",
|
|
532
539
|
outline: "1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)",
|
|
533
|
-
borderRadius: "var(--vx-radius-
|
|
540
|
+
borderRadius: "var(--vx-radius-fine)"
|
|
534
541
|
},
|
|
535
542
|
// Conditionally spread the WHOLE key (never a present `label: undefined`) — the package
|
|
536
543
|
// builds under `exactOptionalPropertyTypes`, which treats a key present-but-`undefined` as
|
|
@@ -601,12 +608,12 @@ function buildTheme(data, options = {}) {
|
|
|
601
608
|
},
|
|
602
609
|
styles: {
|
|
603
610
|
itemTitle: {
|
|
604
|
-
fontSize: VX.text.
|
|
611
|
+
fontSize: VX.text.sm,
|
|
605
612
|
fontWeight: 600,
|
|
606
613
|
color: "var(--vx-ink)"
|
|
607
614
|
},
|
|
608
615
|
itemContent: {
|
|
609
|
-
fontSize: VX.text.
|
|
616
|
+
fontSize: VX.text.sm,
|
|
610
617
|
color: "var(--vx-muted)"
|
|
611
618
|
}
|
|
612
619
|
}
|
|
@@ -658,7 +665,7 @@ function buildTheme(data, options = {}) {
|
|
|
658
665
|
boxShadow: "var(--vx-shadow-overlay)"
|
|
659
666
|
},
|
|
660
667
|
item: {
|
|
661
|
-
fontSize: VX.text.
|
|
668
|
+
fontSize: VX.text.sm,
|
|
662
669
|
borderRadius: "var(--vx-radius-ctrl)",
|
|
663
670
|
padding: "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)"
|
|
664
671
|
},
|
|
@@ -774,7 +781,7 @@ function buildTheme(data, options = {}) {
|
|
|
774
781
|
textTransform: "uppercase",
|
|
775
782
|
color: "var(--vx-faint)"
|
|
776
783
|
},
|
|
777
|
-
td: { height: spacing.step.tableRowHeight }
|
|
784
|
+
td: { height: spacing.step.tableRowHeight, fontSize: VX.text.sm }
|
|
778
785
|
}
|
|
779
786
|
}),
|
|
780
787
|
// The v9 thumb indicator is a center dot painted in the TRACK color — over the remapped
|
|
@@ -903,11 +910,9 @@ const CTL_SLIDER_TRACK_SIZE = 6;
|
|
|
903
910
|
function ctlSizeVars() {
|
|
904
911
|
const ctlHeight = "calc(var(--vx-space-control-height-ctl) * var(--mantine-scale))";
|
|
905
912
|
return {
|
|
906
|
-
|
|
913
|
+
...heightVars(ctlHeight),
|
|
907
914
|
"--button-padding-x-ctl": `calc(${pxRem(CTL_PADDING_X)} * var(--mantine-scale))`,
|
|
908
|
-
"--input-height-ctl": ctlHeight,
|
|
909
915
|
"--input-padding-y-ctl": `calc(${pxRem(CTL_INPUT_PADDING_Y)} * var(--mantine-scale))`,
|
|
910
|
-
"--ai-size-ctl": ctlHeight,
|
|
911
916
|
"--ai-size-icon": "calc(var(--vx-space-control-height-widget) * var(--mantine-scale))",
|
|
912
917
|
// A shorthand pair (`<y> <x>`), the shape SegmentedControl's own `--sc-padding-*` vars take.
|
|
913
918
|
// `y` stays a bare literal (the label's own box height is now enforced by the `size === 'ctl'`
|
|
@@ -918,7 +923,6 @@ function ctlSizeVars() {
|
|
|
918
923
|
"--combobox-chevron-size-ctl": pxRem(CTL_CHEVRON_SIZE),
|
|
919
924
|
"--ni-chevron-size-ctl": pxRem(CTL_NUMBER_CHEVRON_SIZE),
|
|
920
925
|
"--ni-right-section-width-ctl": `calc(${pxRem(CTL_NUMBER_RIGHT_SECTION_WIDTH)} * var(--mantine-scale))`,
|
|
921
|
-
"--badge-height-ctl": ctlHeight,
|
|
922
926
|
"--badge-padding-x-ctl": `calc(${pxRem(CTL_PADDING_X)} * var(--mantine-scale))`,
|
|
923
927
|
"--badge-fz-ctl": `calc(${pxRem(VX.text.xs)} * var(--mantine-scale))`,
|
|
924
928
|
// `= VX.text.sm` per `docs/CONTROLS-SPEC.md` §5 — same `calc(<rem> * var(--mantine-scale))`
|
|
@@ -926,7 +930,7 @@ function ctlSizeVars() {
|
|
|
926
930
|
"--mantine-font-size-ctl": `calc(${pxRem(VX.text.sm)} * var(--mantine-scale))`,
|
|
927
931
|
"--mantine-line-height-ctl": "var(--mantine-line-height-sm)",
|
|
928
932
|
// Radio / Checkbox / Switch — the three components whose DEFAULT (`sm`, a 20px indicator) sat
|
|
929
|
-
// beside a
|
|
933
|
+
// beside a 13px option label in every popover and sheet basalt draws. Every prefix here was
|
|
930
934
|
// read out of the installed `@mantine/core` source, and `ctl-tier-coverage.test.ts` now scans
|
|
931
935
|
// those three components too, so a future minor that adds a `getSize` call fails the build
|
|
932
936
|
// instead of resolving the new var to its initial value. Note there is NO
|
|
@@ -945,6 +949,12 @@ function ctlSizeVars() {
|
|
|
945
949
|
"--slider-size-ctl": `calc(${pxRem(CTL_SLIDER_TRACK_SIZE)} * var(--mantine-scale))`
|
|
946
950
|
};
|
|
947
951
|
}
|
|
952
|
+
function heightVars(height) {
|
|
953
|
+
return Object.fromEntries(CTL_HEIGHT_VARS.map((name) => [name, height]));
|
|
954
|
+
}
|
|
955
|
+
function lineRatio(linePx, fontPx) {
|
|
956
|
+
return String(Math.round(linePx / fontPx * 1e4) / 1e4);
|
|
957
|
+
}
|
|
948
958
|
function buildCssVariablesResolver(data) {
|
|
949
959
|
const { INK, NEUTRAL, SURFACE } = data;
|
|
950
960
|
return (theme) => ({
|