Files
openmotion/packages/design-system/react/ProgressBar.tsx
Tom Huang 15411ea999 Add Brand Kits and style-only Motion Packages (#480)
* 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.
2026-11-16 23:51:49 +08:00

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>
);
}