- Translate to English every doc the code branches did not touch: AGENT.md, developer guide, vibe, CHANGELOG, docs index, module pages, all skills except ipal-seo-check (14 pages follow after the security/SEO merge). Placeholder marker is now [TO FILL: …]; skill resources renamed to section-code.md / nav-code.md. AGENT.md and the ipal-skills pointer block say the docs are in English. - docs/seeding.md: create-only, natural keys, never delete, no users or secrets, empty-field globals, fallbackLocale: false, dry run, backup and restore, production update guard, seeds vs migrations, Coolify Terminal. Seed templates gain --dry-run, the SEED_UPDATE production guard (IPAL_SEED_ALLOW_PROD_UPDATE), skip of edited records and a summary. "Seeding on production" rule block in AGENT.md. - Coolify is the single deployment path (deployment, env, developer guide, ipal-setup): build vs runtime env, migrations on container start (prodMigrations), health check and rolling updates, rollback, backups and restore, DNS/Let's Encrypt/CAA. R2: custom domain needs a Cloudflare zone; default is media served by the app (R2_PUBLIC_URL empty). - docsConsistency: no Polish prose outside code/quoted data (pending pages listed); IPAL_* names may also be read by shipped skill templates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
// src/components/forms/formClasses.ts — the ONLY place forms are styled. Every
|
|
// panel form (RenderForm / BuilderForm) uses it. Values = the project's design
|
|
// tokens (DESIGN.md); the plugin ships no styles. Delete keys you don't need.
|
|
import type { BuilderFormClassNames } from '@intecion/ipal-kit/client'
|
|
|
|
export const formClasses: BuilderFormClassNames = {
|
|
form: 'grid gap-6',
|
|
progress: 'text-sm text-muted', // "Step 1 of 3"
|
|
step: 'grid gap-4',
|
|
stepTitle: 'text-h3 font-semibold',
|
|
stepDescription: 'text-muted',
|
|
fields: 'grid grid-cols-12 gap-4',
|
|
field: 'col-span-12',
|
|
fieldHalf: 'md:col-span-6', // width ≤ 50 in the panel
|
|
label: 'mb-1 block font-medium',
|
|
input: 'w-full rounded-md border border-border px-3 py-2',
|
|
textarea: 'w-full rounded-md border border-border px-3 py-2',
|
|
select: 'w-full rounded-md border border-border px-3 py-2',
|
|
checkboxLabel: 'flex items-start gap-2',
|
|
choices: 'grid gap-2', // radio / checkbox group <fieldset>
|
|
legend: 'mb-1 font-medium',
|
|
choice: 'flex items-center gap-2',
|
|
error: 'mt-1 text-sm text-danger',
|
|
formError: 'text-danger',
|
|
actions: 'flex gap-3',
|
|
back: 'btn btn-secondary', // same classes as Button.tsx variants
|
|
submit: 'btn btn-primary',
|
|
success: 'rounded-md bg-surface p-6',
|
|
}
|