@@ -93,13 +93,13 @@ import { getFieldErrors, handleSubmit } from '@app-builder/utils/form';
9393
9494### Form Components
9595
96- | Component | Props | Purpose |
97- | -----------| -------| ---------|
98- | ` FormInput ` | ` type ` , ` name ` , ` defaultValue ` , ` onChange ` , ` onBlur ` , ` valid ` | Text/number input with error border |
99- | ` FormLabel ` | ` name ` , ` valid ` | Label linked to input via ` htmlFor ` |
100- | ` FormErrorOrDescription ` | ` errors? ` , ` description? ` | Shows errors or help text |
101- | ` FormTextArea ` | Same as FormInput | Multi-line input |
102- | ` FormError ` | ` field ` , ` asString? ` , ` translations? ` | Translates Zod error codes to i18n |
96+ | Component | Props | Purpose |
97+ | ------------------------ | ------------------------------------------------------------- | ----------------------------------- |
98+ | ` FormInput ` | ` type ` , ` name ` , ` defaultValue ` , ` onChange ` , ` onBlur ` , ` valid ` | Text/number input with error border |
99+ | ` FormLabel ` | ` name ` , ` valid ` | Label linked to input via ` htmlFor ` |
100+ | ` FormErrorOrDescription ` | ` errors? ` , ` description? ` | Shows errors or help text |
101+ | ` FormTextArea ` | Same as FormInput | Multi-line input |
102+ | ` FormError ` | ` field ` , ` asString? ` , ` translations? ` | Translates Zod error codes to i18n |
103103
104104### Number Fields
105105
@@ -161,14 +161,14 @@ export function DeleteConfirmModal({ onDelete }: { onDelete: () => void }) {
161161
162162### Modal Components
163163
164- | Component | Purpose |
165- | -----------| ---------|
166- | ` Modal.Root ` | Root state manager. Props: ` open ` , ` onOpenChange ` |
167- | ` Modal.Trigger ` | Opens the modal. Use ` asChild ` to wrap custom trigger |
168- | ` Modal.Content ` | Dialog container. Props: ` size ` (` small ` /` medium ` /` large ` /` xlarge ` ) |
169- | ` Modal.Title ` | Dialog title (required for accessibility) |
170- | ` Modal.Close ` | Closes on click. Use ` asChild ` to wrap custom button |
171- | ` Modal.Footer ` | Standard buttons in the footer, asClosed for the buttons that close the modal, with optional icon and isLoading state |
164+ | Component | Purpose |
165+ | --------------- | --------------------------------------------------------------------------------------------------------------------- |
166+ | ` Modal.Root ` | Root state manager. Props: ` open ` , ` onOpenChange ` |
167+ | ` Modal.Trigger ` | Opens the modal. Use ` asChild ` to wrap custom trigger |
168+ | ` Modal.Content ` | Dialog container. Props: ` size ` (` small ` /` medium ` /` large ` /` xlarge ` ) |
169+ | ` Modal.Title ` | Dialog title (required for accessibility) |
170+ | ` Modal.Close ` | Closes on click. Use ` asChild ` to wrap custom button |
171+ | ` Modal.Footer ` | Standard buttons in the footer, asClosed for the buttons that close the modal, with optional icon and isLoading state |
172172
173173### Modal with Form
174174
@@ -196,7 +196,7 @@ Wrap `<form>` around `Modal.Title`, content, and `Modal.Footer`:
196196Right-side sliding panel for detail views. Import from app-builder components.
197197
198198``` typescript
199- import { Panel } from ' @app-builder/components/Panel ' ;
199+ import { Panel } from ' ui-design-system ' ;
200200import { useTranslation } from ' react-i18next' ;
201201
202202export function DetailPanel({ open , onOpenChange }: { open: boolean ; onOpenChange: (open : boolean ) => void }) {
@@ -225,11 +225,10 @@ export function DetailPanel({ open, onOpenChange }: { open: boolean; onOpenChang
225225
226226### Panel Sizes
227227
228- | Size | Max Width |
229- | ------| -----------|
230- | small | 'max-w-[ calc(100vw_ /_ 3)] ' |
231- | medium | 'max-w-[ 50vw] ' |
232- | large | 'max-w-[ calc(100vw_ * _ (2_ /_ 3))] ' |
233-
228+ | Size | Max Width |
229+ | ------ | ------------------------------- |
230+ | small | 'max-w-[ calc(100vw_ /_ 3)] ' |
231+ | medium | 'max-w-[ 50vw] ' |
232+ | large | 'max-w-[ calc(100vw_ * _ (2_ /_ 3))] ' |
234233
235234Features: slide animation, focus trapping, Escape to close, portal rendering.
0 commit comments