chore(slice-3): version 0.3, README status, label-input association fix (a11y §6.6)
ci / check (push) Has been cancelled
ci / check (pull_request) Has been cancelled

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 22:46:12 -07:00
parent 25ac540171
commit 877be249c7
4 changed files with 1998 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "wiggleverse-ecomm-frontend",
"private": true,
"version": "0.2.0",
"version": "0.3.0",
"type": "module",
"scripts": {
"dev": "vite",
+4 -1
View File
@@ -1,6 +1,7 @@
// The ecomm UI kit — React faces of the app.css primitives, matching the Claude Design
// export (ui/designs/ecomm-login-and-create-storefront-designs, hf-kit). Presentation
// only: no business rules live here (§6.2 — the SPA renders what the BFF returns).
import { useId } from "react";
import type { ReactNode } from "react";
export function Screen({
@@ -110,13 +111,15 @@ export function Field({
helper?: string;
inputProps: React.InputHTMLAttributes<HTMLInputElement>;
}) {
const id = useId();
return (
<div className="field">
<label className="field__label">
<label className="field__label" htmlFor={id}>
<span>{label}</span>
{optional && <span className="field__optional">optional</span>}
</label>
<input
id={id}
className={`field__input${error ? " field__input--error" : ""}`}
aria-invalid={!!error}
{...inputProps}