mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 05:19:28 +08:00
* Add Brand Kits and style-only Motion Packages Extract reusable design tokens from public websites and provide the official Brand Kit catalogue. Use prebuilt showcases for instant catalogue previews and keep website artwork off the playback path. * Expose Brand Kits through MCP and restore gallery regressions Use the same extraction receipts and revision checks in Studio and MCP. Keep related template retries reachable and preserve shared locale labels. * Fix Brand Kit playback, uploads and catalogue navigation Authorize showcase scripts in the opaque sandbox with a nonce, chain file mutations with their returned revisions, and run the Brand Kit regressions in CI. * Clarify Brand Kit MCP access and share showcase dimensions Document the existing asset tool action and derive official cards, saved cards, and detail metadata from the maintained showcase contract. * Restore the Skills gallery header styles Consume shared discovery styles directly so the search field, introduction, and contribution button do not depend on template dialog internals.
25 lines
544 B
TypeScript
25 lines
544 B
TypeScript
/** Determinate task progress; appearance and motion belong to studio/application.css. */
|
|
export function ProgressBar({
|
|
value,
|
|
label,
|
|
}: {
|
|
value: number;
|
|
label: string;
|
|
}) {
|
|
const progress = Number.isFinite(value)
|
|
? Math.min(100, Math.max(0, value))
|
|
: 0;
|
|
return (
|
|
<div
|
|
className="om-progress"
|
|
role="progressbar"
|
|
aria-label={label}
|
|
aria-valuemin={0}
|
|
aria-valuemax={100}
|
|
aria-valuenow={progress}
|
|
>
|
|
<span style={{ transform: `scaleX(${progress / 100})` }} />
|
|
</div>
|
|
);
|
|
}
|