basalt-ui 2.18.0 → 2.19.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 +40 -0
- package/MIGRATING.md +76 -12
- package/agent/agents/basalt-design-reviewer.md +2 -2
- package/dist/commands/notifications/center.d.ts.map +1 -1
- package/dist/commands/notifications/center.js +18 -26
- package/dist/content/callout.d.ts +1 -1
- package/dist/content/callout.d.ts.map +1 -1
- package/dist/content/callout.js +10 -1
- package/dist/content/callout.module.css +15 -3
- package/dist/content/callout.module.css.d.ts +1 -0
- package/dist/dashboard/bar-list.d.ts.map +1 -1
- package/dist/dashboard/bar-list.js +31 -18
- package/dist/dashboard/bar-list.module.css +33 -15
- package/dist/dashboard/bar-list.module.css.d.ts +1 -0
- package/dist/dashboard/meter-model.d.ts +49 -1
- package/dist/dashboard/meter-model.d.ts.map +1 -1
- package/dist/dashboard/meter-model.js +47 -3
- package/dist/dashboard/meter-parts.d.ts.map +1 -1
- package/dist/dashboard/meter-parts.js +143 -9
- package/dist/dashboard/meter.d.ts +16 -5
- package/dist/dashboard/meter.d.ts.map +1 -1
- package/dist/dashboard/meter.module.css +127 -9
- package/dist/dashboard/meter.module.css.d.ts +11 -0
- package/dist/dashboard/stat-card-parts.d.ts +3 -1
- package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
- package/dist/dashboard/stat-card-parts.js +18 -3
- package/dist/dashboard/stat-card.d.ts +6 -5
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +48 -77
- package/dist/dashboard/stat-card.module.css +27 -7
- package/dist/dashboard/widget-header.d.ts.map +1 -1
- package/dist/dashboard/widget-header.js +2 -1
- package/dist/dashboard/widget-header.module.css +28 -1
- package/dist/theme/chrome-vars.d.ts +29 -17
- package/dist/theme/chrome-vars.d.ts.map +1 -1
- package/dist/theme/chrome-vars.js +18 -8
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +9 -5
- package/dist/theme/status-dot.d.ts +6 -0
- package/dist/theme/status-dot.d.ts.map +1 -0
- package/dist/theme/status-dot.js +9 -0
- package/dist/theme/status-dot.module.css +9 -0
- package/dist/theme/status-dot.module.css.d.ts +8 -0
- package/dist/theme/status-verdict.d.ts +9 -0
- package/dist/theme/status-verdict.d.ts.map +1 -0
- package/dist/theme/status-verdict.js +13 -0
- package/dist/theme/status-verdict.module.css +23 -0
- package/dist/theme/status-verdict.module.css.d.ts +9 -0
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/commands/notifications/center.tsx +29 -32
- package/src/content/callout.module.css +15 -3
- package/src/content/callout.module.css.d.ts +1 -0
- package/src/content/callout.tsx +15 -2
- package/src/dashboard/bar-list.module.css +33 -15
- package/src/dashboard/bar-list.module.css.d.ts +1 -0
- package/src/dashboard/bar-list.tsx +29 -16
- package/src/dashboard/meter-model.ts +97 -4
- package/src/dashboard/meter-parts.tsx +195 -11
- package/src/dashboard/meter.module.css +127 -9
- package/src/dashboard/meter.module.css.d.ts +11 -0
- package/src/dashboard/meter.tsx +16 -5
- package/src/dashboard/stat-card-parts.tsx +22 -2
- package/src/dashboard/stat-card.module.css +27 -7
- package/src/dashboard/stat-card.tsx +18 -52
- package/src/dashboard/widget-header.module.css +28 -1
- package/src/dashboard/widget-header.tsx +4 -1
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +88 -16
- package/src/theme/chrome-vars.ts +48 -23
- package/src/theme/index.ts +10 -6
- package/src/theme/status-dot.module.css +9 -0
- package/src/theme/status-dot.module.css.d.ts +8 -0
- package/src/theme/status-dot.tsx +19 -0
- package/src/theme/status-verdict.module.css +23 -0
- package/src/theme/status-verdict.module.css.d.ts +9 -0
- package/src/theme/status-verdict.tsx +27 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed CSS-module declaration (the S4 CSS-modules path). Named string props — not an index
|
|
3
|
+
* signature — so dot access stays verbatim under the package's strict flags.
|
|
4
|
+
*/
|
|
5
|
+
declare const classes: {
|
|
6
|
+
readonly verdict: string
|
|
7
|
+
readonly hidden: string
|
|
8
|
+
}
|
|
9
|
+
export default classes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `StatusVerdict` — a `StatusDot` plus its word in muted ink. With `phrase`, the visible word is
|
|
3
|
+
* hidden from assistive tech and the full phrase is read instead, so a screen reader never hears a
|
|
4
|
+
* bare "Over". INTERNAL: not on any barrel; `StatCard` and the notification centre compose it.
|
|
5
|
+
*/
|
|
6
|
+
import { StatusDot } from './status-dot'
|
|
7
|
+
import classes from './status-verdict.module.css'
|
|
8
|
+
|
|
9
|
+
export type StatusVerdictProps = {
|
|
10
|
+
color: string
|
|
11
|
+
/** The short visible word ("Over", "Error"). */
|
|
12
|
+
word: string
|
|
13
|
+
/** A longer phrase for assistive tech, read in place of the word. */
|
|
14
|
+
phrase?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function StatusVerdict({ color, word, phrase }: StatusVerdictProps) {
|
|
18
|
+
return (
|
|
19
|
+
<span className={classes.verdict}>
|
|
20
|
+
<StatusDot color={color} />
|
|
21
|
+
<span data-verdict-word="" {...(phrase !== undefined && { 'aria-hidden': true })}>
|
|
22
|
+
{word}
|
|
23
|
+
</span>
|
|
24
|
+
{phrase !== undefined && <span className={classes.hidden}>{phrase}</span>}
|
|
25
|
+
</span>
|
|
26
|
+
)
|
|
27
|
+
}
|